X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=parseiptables.c;h=eca2ced6221c4af51d98be83b5a9c0adf9376c86;hp=f34e5f976cc6386e93582148dd856b6d64071347;hb=21c4f9f3d7fd2c08978d591e8f98a35f50bdfaca;hpb=39a89851f15ae468a2c764454b18248b07da9a30 diff --git a/parseiptables.c b/parseiptables.c index f34e5f9..eca2ced 100644 --- a/parseiptables.c +++ b/parseiptables.c @@ -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