X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=parseiptables.c;h=8544df788461c6a0aa29d6a83a89b7e68876a8d0;hb=68184e0de9058fbf917d3c4b8fd287f1c4588b4e;hp=cad83642137ca3e86e8c266452b1120f5d634bc3;hpb=7ae5a5939e4328ed4a1d8c025ea6769265574260;p=svn%2FPrometheus-QoS%2F.git diff --git a/parseiptables.c b/parseiptables.c index cad8364..8544df7 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,14 +177,16 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) } else {*/ - ip->traffic += traffic; + ip->traffic += traffic; + ip->traffic_down += traffic; /* } */ -/* ip->direct += ip->traffic-ip->upload; /*-ip->proxy;*/ + ip->direct += traffic; /*-ip->proxy;*/ ip->pktsdown += pkts; } else { ip->upload += traffic; + ip->traffic_up += traffic; ip->pktsup += pkts; if(include_upload) {