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 ); },