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
special class for overlimit packets (will be configurable)
[svn/Prometheus-QoS/.git]
/
parsehosts.c
diff --git
a/parsehosts.c
b/parsehosts.c
index 9ae1d811f827bf9971e642a8015fffef70b256da..7e12a41b34d1280821ef1c916e417675fade4b4a 100644
(file)
--- a/
parsehosts.c
+++ b/
parsehosts.c
@@
-259,8
+259,9
@@
void parse_hosts(char *hosts)
}
\r
}
\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
+ average pkt 1/2 MTU = 6 kbit*/
\r
+ ip->pps_limit = ip->max/6;
\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
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
This page took
0.13029 seconds
and
4
git commands to generate.