From 61a95844339324ad1e7989c23883878ab5878b41 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 4 Jul 2012 14:45:24 -0700 Subject: [PATCH] Only require MANGLE_ENABLED to process the tcrules file. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Tc.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 28c29d170..095be3fd4 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -2160,7 +2160,7 @@ sub setup_tc() { setup_traffic_shaping if @tcdevices && $config{TC_ENABLED} ne 'Shared'; } - if ( $config{TC_ENABLED} ) { + if ( $config{MANGLE_ENABLED} ) { our @tccmd = ( { match => sub ( $ ) { $_[0] eq 'SAVE' } , target => 'CONNMARK --save-mark --mask' , mark => $config{TC_EXPERT} ? HIGHMARK : SMALLMARK, @@ -2254,9 +2254,7 @@ sub setup_tc() { clear_comment; } - } - if ( $config{MANGLE_ENABLED} ) { if ( my $fn = open_file 'secmarks' ) { first_entry "$doing $fn...";