More cleanup of traffic shaping integration

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2813 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-10-06 14:21:04 +00:00
parent e6a9b655ac
commit 26628652cd
2 changed files with 3 additions and 5 deletions

View File

@ -3297,6 +3297,7 @@ setup_traffic_shaping()
else
ensure_and_save_command tc filter add dev $device protocol ip parent 1:0 prio 1 handle $mark fw classid 1:1$mark
fi
#options
list_search "tcp-ack" $options && ensure_and_save_command tc filter add dev $device parent 1:0 protocol ip prio 10 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 0xff at 33 flowid 1:1$mark
list_search "tos-minimize-delay" $options && ensure_and_save_command tc filter add dev $device parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0xff flowid 1:1$mark
list_search "tos-minimize-cost" $options && ensure_and_save_command tc filter add dev $device parent 1:0 protocol ip prio 10 u32 match ip tos 0x02 0xff flowid 1:1$mark
@ -8602,7 +8603,7 @@ define_firewall() # $1 = Command (Start or Restart)
ecn=$(find_file ecn)
[ -f $ecn ] && [ -n "$MANGLE_ENABLED" ] && setup_ecn $ecn
setup_tc
[ -n "$MANGLE_ENABLED" ] && setup_tc
echo "Activating Rules..."; activate_rules
@ -8676,7 +8677,7 @@ refresh_firewall()
#
# Refresh Traffic Control
#
refresh_tc
[ -n "$MANGLE_ENABLED" ] && refresh_tc
report "Shorewall Refreshed"

View File

@ -8,9 +8,6 @@
#
# I M P O R T A N T ! ! ! !
#
# FOR ENTRIES IN THIS FILE TO HAVE ANY EFFECT, YOU MUST SET
# TC_ENABLED=Yes in /etc/shorewall/shorewall.conf
#
# Unlike rules in the /etc/shorewall/rules file, evaluation
# of rules in this file will continue after a match. So the
# final mark for each packet will be the one assigned by the