GIT.Harvie.CZ
/
svn
/
Prometheus-QoS
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iptables --burst-limit added + some preliminary packet statistics in html output...
[svn/Prometheus-QoS/.git]
/
parsehosts.c
diff --git
a/parsehosts.c
b/parsehosts.c
index 5014ffb8287cb168d2c6b5df709745ddb25eff7d..9ae1d811f827bf9971e642a8015fffef70b256da 100644
(file)
--- a/
parsehosts.c
+++ b/
parsehosts.c
@@
-258,10
+258,15
@@
void parse_hosts(char *hosts)
ip->max = ip->min;
\r
}
\r
}
\r
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
/* 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
update_network(ip->addr, ip);
\r
\r
if_exists(group,groups,(group->min == ip->min))
\r
This page took
0.184487 seconds
and
4
git commands to generate.