X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=parseiptables.c;h=946707d3bd084aa4fca852e241eb8723bb4998d3;hb=af37be1dccdd5c9b86113a6e02ed794da3102ec4;hp=1f22d132226dcfefc637f6ba8cc02b890c81282f;hpb=fd3363912e0be224354fc22547b6b7f9174ee87d;p=svn%2FPrometheus-QoS%2F.git diff --git a/parseiptables.c b/parseiptables.c index 1f22d13..946707d 100644 --- a/parseiptables.c +++ b/parseiptables.c @@ -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)";