mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-18 03:29:12 +01:00
Fix use of names for DSCP.
- From Thibaut Chèze Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
8fe7963631
commit
448d957e48
@ -5054,7 +5054,7 @@ sub do_dscp( $ ) {
|
||||
my $invert = $dscp =~ s/^!// ? '! ' : '';
|
||||
my $value = numeric_value( $dscp );
|
||||
|
||||
$value = $dscpmap{$value} unless defined $value;
|
||||
$value = $dscpmap{$dscp} unless defined $value;
|
||||
|
||||
fatal_error( "Invalid DSCP ($dscp)" ) unless defined $value && $value < 0x2f && ! ( $value & 1 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user