X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=parseiptables.c;h=eca2ced6221c4af51d98be83b5a9c0adf9376c86;hp=cad83642137ca3e86e8c266452b1120f5d634bc3;hb=fa54950d31dc0d7e15e945750d4dcbaca2de613e;hpb=7ae5a5939e4328ed4a1d8c025ea6769265574260 diff --git a/parseiptables.c b/parseiptables.c index cad8364..eca2ced 100644 --- a/parseiptables.c +++ b/parseiptables.c @@ -1,4 +1,4 @@ -/* Modified by: xChaos, 20131029 */ +/* Modified by: xChaos, 20131208 */ #include "cll1-0.6.2.h" #include "ipstruct.h" @@ -98,7 +98,6 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) } else if(!ipv6) { - /* if(downloadflag) { if(strstr(proxy_ip,ptr)) @@ -108,8 +107,7 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) } else - { -*/ + { */ if(!downloadflag) { ipaddr = ptr; @@ -179,9 +177,9 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) } else {*/ - ip->traffic += traffic; + ip->traffic += traffic; /* } */ -/* ip->direct += ip->traffic-ip->upload; /*-ip->proxy;*/ + ip->direct += traffic; /*-ip->proxy;*/ ip->pktsdown += pkts; } else