proxy taffic shaping will be obsolete feature in 0.8.4
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Wed, 20 Nov 2013 21:54:22 +0000 (21:54 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Wed, 20 Nov 2013 21:54:22 +0000 (21:54 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@237 251d49ef-1d17-4917-a970-b30cf55b089b

parseiptables.c
prometheus.c

index ea9ef96..cfd1add 100644 (file)
@@ -173,22 +173,22 @@ void get_traffic_statistics(const char *whichiptables, int ipv6)
     {\r
      ip->traffic += traffic;\r
     }\r
-    ip->direct = ip->traffic-ip->upload-ip->proxy;\r
-    ip->pktsdown = pkts;\r
+    ip->direct += ip->traffic-ip->upload-ip->proxy;\r
+    ip->pktsdown += pkts;\r
    }\r
    else\r
    {\r
-    ip->upload = traffic;\r
-    ip->pktsup = pkts;\r
+    ip->upload += traffic;\r
+    ip->pktsup += pkts;\r
     if(include_upload)\r
     {\r
      ip->traffic += traffic;\r
     }\r
     else \r
     {\r
-     if(traffic > ip->traffic)\r
+     if(ip->upload > ip->traffic)\r
      {\r
-      ip->traffic = traffic;     \r
+      ip->traffic = ip->upload;\r
      }\r
     }\r
    }\r
index dea239a..b6807fd 100644 (file)
@@ -98,7 +98,7 @@ char        *ip6prefix = NULL; /* Prefix for global /48 IPv6 subnet */
 char       *wan_medium = "100Mbit"; /* 10Mbit/100Mbit ethernet */\r
 char         *qos_leaf = "sfq perturb 5"; /* leaf discipline */\r
 char    *qos_free_zone = NULL; /* QoS free zone */\r
-int          qos_proxy = TRUE; /* include proxy port to QoS */\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
@@ -310,7 +310,7 @@ void get_config(char *config_filename)
   ioption("use-jquery-popups",use_jquery_popups);\r
   option("qos-free-zone",qos_free_zone);\r
   ioption("qos-free-delay",qos_free_delay);\r
-  ioption("qos-proxy-enable",qos_proxy);\r
+/*  ioption("qos-proxy-enable",qos_proxy); */\r
   option("qos-proxy-ip",proxy_ip);\r
   option("htb-leaf-discipline",qos_leaf);\r
   ioption("qos-proxy-port",proxy_port);\r
This page took 0.156561 seconds and 4 git commands to generate.