Minor cleanup of TC change

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6537 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-06-13 21:42:17 +00:00
parent c9593ebf2f
commit a2d51eb156

View File

@ -498,7 +498,7 @@ sub setup_traffic_shaping() {
# add filters
#
if ( "$capabilities{CLASSIFY_TARGET}" && known_interface $device ) {
push @deferred_rules, " -o $device -m mark --mark $mark/0xFF -j CLASSIFY --set-class $classid";
push @deferred_rules, match_dest_dev( $device ) . "-m mark --mark $mark/0xFF -j CLASSIFY --set-class $classid";
} else {
emit "run_tc filter add dev $device protocol ip parent $devnum:0 prio 1 handle $mark fw classid $classid";
}
@ -537,9 +537,6 @@ sub setup_tc() {
ensure_mangle_chain 'tcfor';
ensure_mangle_chain 'tcpost';
}
}
if ( $capabilities{MANGLE_ENABLED} ) {
my $mark_part = '';