X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=parseiptables.c;h=ea9ef965b44dd26ceb4309cd266b6076749d0c7a;hb=a25842fafee4469c8acbacd673fc4c905bcab3f9;hp=1f22d132226dcfefc637f6ba8cc02b890c81282f;hpb=fd3363912e0be224354fc22547b6b7f9174ee87d;p=svn%2FPrometheus-QoS%2F.git diff --git a/parseiptables.c b/parseiptables.c index 1f22d13..ea9ef96 100644 --- a/parseiptables.c +++ b/parseiptables.c @@ -1,4 +1,4 @@ -/* Modified by: xChaos, 20130115 */ +/* Modified by: xChaos, 20131029 */ #include "cll1-0.6.2.h" #include "ipstruct.h" @@ -41,7 +41,7 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) unsigned long pkts = 0; char *ipaddr = NULL,*ptr; - valid_columns(ptr, line->str, ' ', col) + valid_columns(ptr, line->str, ' ', col) if(valid) switch(col) { case 1: if(eq(ptr,"Chain")) @@ -150,7 +150,7 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) if_exists(ip, ips, eqi(ip->addr,ipaddr)); else { - TheIP(ipaddr); + TheIP(ipaddr, FALSE); if(eq(ip->addr,"0.0.0.0/0")) { ip->name = "(unregistered)";