Work around the 'flowid' vs 'classid' fiasco in 'tc'

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7990 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-01-02 02:54:26 +00:00
parent 2fa119b30a
commit 1e6140a59c
2 changed files with 2 additions and 2 deletions

View File

@ -472,7 +472,7 @@ sub setup_traffic_shaping() {
if ( $inband ) { if ( $inband ) {
emit ( "run_tc qdisc add dev $device handle ffff: ingress", emit ( "run_tc qdisc add dev $device handle ffff: ingress",
"run_tc filter add dev $device parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate ${inband}kbit burst 10k drop flowid :1" "run_tc filter add dev $device parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate ${inband}kbit burst 10k drop classid :1"
); );
} }

View File

@ -191,7 +191,7 @@ setup_traffic_shaping()
if [ $(rate_to_kbit ${inband}) -gt 0 ]; then if [ $(rate_to_kbit ${inband}) -gt 0 ]; then
run_tc qdisc add dev $device handle ffff: ingress run_tc qdisc add dev $device handle ffff: ingress
run_tc filter add dev $device parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate ${inband} burst 10k drop flowid :1 run_tc filter add dev $device parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate ${inband} burst 10k drop classid :1
fi fi
eval ${dev}_devnum=$devnum eval ${dev}_devnum=$devnum