From: <abe...@us...> - 2012-12-29 21:30:23
|
Revision: 5844 http://astlinux.svn.sourceforge.net/astlinux/?rev=5844&view=rev Author: abelbeck Date: 2012-12-29 21:30:16 +0000 (Sat, 29 Dec 2012) Log Message: ----------- AIF traffic-shaper, change ingress shaping to use 'estimator 500ms 2sec police avrate - drop' Modified Paths: -------------- branches/1.0/package/arnofw/traffic-shaper/60traffic-shaper.plugin.sh Modified: branches/1.0/package/arnofw/traffic-shaper/60traffic-shaper.plugin.sh =================================================================== --- branches/1.0/package/arnofw/traffic-shaper/60traffic-shaper.plugin.sh 2012-12-28 23:58:16 UTC (rev 5843) +++ branches/1.0/package/arnofw/traffic-shaper/60traffic-shaper.plugin.sh 2012-12-29 21:30:16 UTC (rev 5844) @@ -198,12 +198,12 @@ # filter *everything* to it (0.0.0.0/0), drop everything that's # coming in too fast: - tc filter add dev $1 parent ffff: protocol ip prio 100 u32 match ip src \ - 0.0.0.0/0 police rate ${DOWNLINK}kbit burst $((1*$DOWNLINK/10))k drop flowid :1 + tc filter add dev $1 parent ffff: protocol ip prio 100 estimator 500ms 2sec \ + u32 match ip src 0.0.0.0/0 police avrate ${DOWNLINK}kbit drop flowid :1 if [ "$IPV6_SUPPORT" = "1" ]; then - tc filter add dev $1 parent ffff: protocol ipv6 prio 101 u32 match ip6 src \ - ::/0 police rate ${DOWNLINK}kbit burst $((1*$DOWNLINK/10))k drop flowid :1 + tc filter add dev $1 parent ffff: protocol ipv6 prio 101 estimator 500ms 2sec \ + u32 match ip6 src ::/0 police avrate ${DOWNLINK}kbit drop flowid :1 fi } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |