From 10c563078682280587c0df5a7171499184b7d884 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 13 Jan 2010 10:50:14 -0800 Subject: [PATCH] A few more instances of TC_MASK Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Accounting.pm | 4 ++-- Shorewall/Perl/Shorewall/Actions.pm | 2 +- Shorewall/Perl/Shorewall/Rules.pm | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Accounting.pm b/Shorewall/Perl/Shorewall/Accounting.pm index e6648b33c..956a15878 100644 --- a/Shorewall/Perl/Shorewall/Accounting.pm +++ b/Shorewall/Perl/Shorewall/Accounting.pm @@ -35,7 +35,7 @@ use strict; our @ISA = qw(Exporter); our @EXPORT = qw( setup_accounting ); our @EXPORT_OK = qw( ); -our $VERSION = '4.4_1'; +our $VERSION = '4.4_6'; # # Called by the compiler to [re-]initialize this module's state @@ -84,7 +84,7 @@ sub process_accounting_rule( ) { $ports = '' if $ports eq 'any' || $ports eq 'all'; $sports = '' if $sports eq 'any' || $sports eq 'all'; - my $rule = do_proto( $proto, $ports, $sports ) . do_user ( $user ) . do_test ( $mark, 0xFF ); + my $rule = do_proto( $proto, $ports, $sports ) . do_user ( $user ) . do_test ( $mark, $globals{TC_MASK} ); my $rule2 = 0; unless ( $action eq 'COUNT' ) { diff --git a/Shorewall/Perl/Shorewall/Actions.pm b/Shorewall/Perl/Shorewall/Actions.pm index 12278a872..b5a0d428e 100644 --- a/Shorewall/Perl/Shorewall/Actions.pm +++ b/Shorewall/Perl/Shorewall/Actions.pm @@ -609,7 +609,7 @@ sub process_action( $$$$$$$$$$$ ) { expand_rule ( $chainref , NO_RESTRICT , - do_proto( $proto, $ports, $sports ) . do_ratelimit( $rate, $action ) . do_user $user . do_test( $mark, 0xFF ) , + do_proto( $proto, $ports, $sports ) . do_ratelimit( $rate, $action ) . do_user $user . do_test( $mark, $globals{TC_MASK} ) , $source , $dest , '', #Original Dest diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index b3b732604..8fe3a7909 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -146,7 +146,7 @@ sub process_tos() { expand_rule $chainref , $restriction , - do_proto( $proto, $ports, $sports ) . do_test( $mark , 0xFF ) , + do_proto( $proto, $ports, $sports ) . do_test( $mark , $globals{TC_MASK} ) , $src , $dst , '' , @@ -1159,7 +1159,7 @@ sub process_rule1 ( $$$$$$$$$$$$$ ) { # # Generate Fixed part of the rule # - $rule = join( '', do_proto($proto, $ports, $sports), do_ratelimit( $ratelimit, $basictarget ) , do_user( $user ) , do_test( $mark , 0xFF ) , do_connlimit( $connlimit ), do_time( $time ) ); + $rule = join( '', do_proto($proto, $ports, $sports), do_ratelimit( $ratelimit, $basictarget ) , do_user( $user ) , do_test( $mark , $globals{TC_MASK} ) , do_connlimit( $connlimit ), do_time( $time ) ); unless ( $section eq 'NEW' ) { fatal_error "Entries in the $section SECTION of the rules file not permitted with FASTACCEPT=Yes" if $config{FASTACCEPT}; @@ -1292,7 +1292,7 @@ sub process_rule1 ( $$$$$$$$$$$$$ ) { # - the target will be ACCEPT. # unless ( $actiontype & NATONLY ) { - $rule = join( '', do_proto( $proto, $ports, $sports ), do_ratelimit( $ratelimit, 'ACCEPT' ), do_user $user , do_test( $mark , 0xFF ) ); + $rule = join( '', do_proto( $proto, $ports, $sports ), do_ratelimit( $ratelimit, 'ACCEPT' ), do_user $user , do_test( $mark , $globals{TC_MASK} ) ); $loglevel = ''; $dest = $server; $action = 'ACCEPT';