From a420ef04d9506c0d9a52a53804bbd0d38a0fd9b5 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 23 Jul 2017 12:08:27 -0700 Subject: [PATCH] Correct tcfilter source port handling when BASIC_FILTERS=Yes Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Tc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 452a3b9cf..49dc7f6a4 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -1434,7 +1434,7 @@ sub process_tc_filter2( $$$$$$$$$ ) { while ( @sportlist ) { my ( $sport, $smask ) = ( shift @sportlist, shift @sportlist ); - $rule .= "\\\n cmp\\( u16 at 0 layer 2 mask $smask eq 0x$sport \\)"; + $rule .= "\\\n cmp\\( u16 at 0 layer 2 mask 0x$smask eq 0x$sport \\)"; $rule .= ' or' if @sportlist; }