there seems to be hardcoded maximum limit 10000 packets/sec in iptables
[svn/Prometheus-QoS/.git] / parsehosts.c
index 5014ffb8287cb168d2c6b5df709745ddb25eff7d..9ae1d811f827bf9971e642a8015fffef70b256da 100644 (file)
@@ -258,10 +258,15 @@ void parse_hosts(char *hosts)
        ip->max = ip->min;\r
       }\r
      }\r
-     \r
+\r
      /* MTU is 1450 bytes = 11600 bits ~= 12 kbit, max is in kb/s */\r
      ip->pps_limit = ip->max/12;\r
-     ip->mark = FIRSTIPCLASS+1+class_count++;\r
+     if(ip->pps_limit > 10000) /* this limit seems to be hardcoded in iptables */\r
+     {\r
+      ip->pps_limit = 0; /* do not apply packet limits */\r
+     }\r
+\r
+     ip->mark = FIRSTIPCLASS+1+class_count++;     \r
      update_network(ip->addr, ip);\r
 \r
      if_exists(group,groups,(group->min == ip->min)) \r
This page took 0.126911 seconds and 4 git commands to generate.