/* globals declared in prometheus.c */\r
extern struct IP *ips, *ip, *sharedip;\r
extern char *mark;\r
-extern char *proxy_ip;\r
+/* extern char *proxy_ip; */\r
extern int free_min;\r
extern int free_max;\r
extern int include_upload;\r
\r
for_each(line,lines)\r
{\r
- int col, accept = 0, proxyflag = 0, valid = 1, setchainname = 0, commonflag = 0; \r
+ int col, accept = 0, /*proxyflag = 0, */valid = 1, setchainname = 0, commonflag = 0; \r
unsigned long long traffic = 0;\r
unsigned long pkts = 0;\r
char *ipaddr = NULL,*ptr;\r
}\r
else if(!ipv6)\r
{\r
- if(downloadflag)\r
+\r
+/* if(downloadflag)\r
{ \r
if(strstr(proxy_ip,ptr))\r
{\r
proxyflag = 1;\r
}\r
- }\r
- else\r
+\r
+ } \r
+ else \r
+ { \r
+*/\r
+ if(!downloadflag)\r
{\r
ipaddr = ptr;\r
}\r
{\r
printf("(IPv4) ");\r
}\r
- \r
+/* \r
if(proxyflag)\r
{\r
printf("(proxy) ");\r
}\r
- else if(!downloadflag)\r
+ else\r
+*/ \r
+ if(!downloadflag)\r
{\r
printf("(up) ");\r
}\r
\r
if(downloadflag)\r
{\r
+/*\r
if(proxyflag)\r
{\r
ip->proxy = traffic;\r
}\r
else\r
- {\r
+ {*/\r
ip->traffic += traffic;\r
- }\r
- ip->direct += ip->traffic-ip->upload-ip->proxy;\r
+/* } */\r
+/* ip->direct += ip->traffic-ip->upload; /*-ip->proxy;*/\r
ip->pktsdown += pkts;\r
}\r
else\r
/* int qos_proxy = TRUE; include proxy port to QoS */\r
int found_lmsid = FALSE; /* show links to users in LMS information system */\r
int include_upload = TRUE; /* upload+download=total traffic */\r
-char *proxy_ip = "192.168.1.1/32"; /* our IP with proxy port */\r
-int proxy_port = 3128; /* proxy port number */\r
+/* char *proxy_ip = "192.168.1.1/32"; our IP with proxy port */\r
+/* int proxy_port = 3128; proxy port number */\r
long long int line = 1024; /* WAN/ISP download in kbps */\r
long long int up = 1024; /* WAN/ISP upload in kbps */\r
int free_min = 256; /* minimum guaranted bandwidth for all undefined hosts */\r
option("qos-free-zone",qos_free_zone);\r
ioption("qos-free-delay",qos_free_delay);\r
/* ioption("qos-proxy-enable",qos_proxy); */\r
- option("qos-proxy-ip",proxy_ip);\r
+/* option("qos-proxy-ip",proxy_ip);*/\r
option("htb-leaf-discipline",qos_leaf);\r
- ioption("qos-proxy-port",proxy_port);\r
+/* ioption("qos-proxy-port",proxy_port); */\r
ioption("free-rate",free_min);\r
ioption("free-ceil",free_max);\r
ioption("htb-burst",burst);\r