From 2243553b28a6e214891f1e207cd4f73aad73e99a Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 2 May 2007 15:03:44 +0000 Subject: [PATCH] Use --or-mark like shorewall-shell git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6190 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Tc.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Tc.pm b/Shorewall-perl/Shorewall/Tc.pm index 7550433d8..5c6bd05aa 100644 --- a/Shorewall-perl/Shorewall/Tc.pm +++ b/Shorewall-perl/Shorewall/Tc.pm @@ -203,7 +203,9 @@ sub process_tc_rule( $$$$$$$$$$ ) { validate_mark $mark; fatal_error 'Marks < 256 may not be set in the PREROUTING chain when HIGH_ROUTE_MARKS=Yes' - if $cmd && $chain eq 'tcpre' && numeric_value( $cmd ) < 0xFF && $config{HIGH_ROUTE_MARKS}; + if $cmd && $chain eq 'tcpre' && numeric_value( $cmd ) <= 0xFF && $config{HIGH_ROUTE_MARKS}; + + $target =~ s/set-mark/or-mark/ if numeric_value( $cmd ) > 0xFF && ( $chain eq 'tcpre' || $chain eq 'tcout' ); } }