From 374489c3cfef9b222b1416829013563d3e627d32 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 21 Nov 2012 10:19:24 -0800 Subject: [PATCH] Revert "Fix RHEL5 issue with route marking." This reverts commit 77f342b0e009dec37326b91bffab7d249ae95b08. --- Shorewall/Perl/Shorewall/Providers.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 1a40536f0..e5f0e3eda 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -118,14 +118,13 @@ sub initialize( $ ) { # sub setup_route_marking() { my $mask = in_hex( $globals{PROVIDER_MASK} ); - my $testmask = have_capability( 'XCONNMARK_MATCH' ) ? "/$mask" : ''; require_capability( $_ , q(The provider 'track' option) , 's' ) for qw/CONNMARK_MATCH CONNMARK/; if ( $config{RESTORE_ROUTEMARKS} ) { add_ijump $mangle_table->{$_} , j => 'CONNMARK', targetopts => "--restore-mark --mask $mask" for qw/PREROUTING OUTPUT/; } else { - add_ijump $mangle_table->{$_} , j => 'CONNMARK', targetopts => "--restore-mark --mask $mask", connmark => "! --mark 0${testmask}" for qw/PREROUTING OUTPUT/; + add_ijump $mangle_table->{$_} , j => 'CONNMARK', targetopts => "--restore-mark --mask $mask", connmark => "! --mark 0/$mask" for qw/PREROUTING OUTPUT/; } my $chainref = new_chain 'mangle', 'routemark';