From 242080c59c5231fc5358de904686e2b65a8e9033 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 7 Sep 2015 13:10:44 -0700 Subject: [PATCH] Rename SMALL_MASK to SMALL_MAX Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- Shorewall/Perl/Shorewall/Config.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index b302f6105..27fe8f29e 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -4855,7 +4855,7 @@ sub validate_mark( $ ) { sub verify_small_mark( $ ) { my $val = validate_mark ( (my $mark) = $_[0] ); - fatal_error "Mark value ($mark) too large" if numeric_value( $mark ) > $globals{SMALL_MASK}; + fatal_error "Mark value ($mark) too large" if numeric_value( $mark ) > $globals{SMALL_MAX}; $val; } diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index e3d5aa495..7e3fe431e 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -5855,7 +5855,7 @@ sub get_configuration( $$$$ ) { $val = $config{PROVIDER_OFFSET}; - $globals{SMALL_MASK} = $val ? make_mask( $val ) : $globals{TC_MASK}; + $globals{SMALL_MAX} = $val ? make_mask( $val ) : $globals{TC_MASK}; if ( supplied ( $val = $config{ZONE2ZONE} ) ) { fatal_error "Invalid ZONE2ZONE value ( $val )" unless $val =~ /^[2-]$/;