From 84437ea6898703dd63ee9f536a95f1ba2c733039 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 1 Jul 2014 06:52:58 -0700 Subject: [PATCH] =?UTF-8?q?Apply=20Thibaut=20Ch=C3=A8ze's=20patch=20for=20?= =?UTF-8?q?DSCP=20names?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 60e2e51d0..cee9956ca 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -423,7 +423,7 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$$ ) { function => sub () { require_capability 'DSCP_TARGET', 'The DSCP action', 's'; my $dscp = numeric_value( $params ); - $dscp = $dscpmap{$1} unless defined $dscp; + $dscp = $dscpmap{$params} unless defined $dscp; fatal_error( "Invalid DSCP ($params)" ) unless defined $dscp && $dscp <= 0x38 && ! ( $dscp & 1 ); $target = 'DSCP --set-dscp ' . in_hex( $dscp ); },