From f54acb665afd1e80ed360775908b7038f3a65d50 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 29 Sep 2017 14:24:45 -0700 Subject: [PATCH] Correct handling of mark range in MARK target. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 809e2ddaa..17f6d4279 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -4142,10 +4142,10 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$$$ ) { expand_rule( $chainref, $restriction, $prerule , + do_proto( $proto, $ports, $sports ) . $match . do_user( $user ) . - do_test( $testval, $globals{TC_MASK} ) . - do_test( $testval, $globals{TC_MASK} ) . + do_test( $testval, $mask ) . do_length( $length ) . do_tos( $tos ) . do_connbytes( $connbytes ) . @@ -4153,6 +4153,7 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$$$ ) { do_headers( $headers ) . do_probability( $probability ) . do_dscp( $dscp ) . + do_time( $time ) . do_condition( $condition, $chainref->{name} ) . state_match( $state ) . $raw_matches ,