Fix use of names for DSCP.

- From Thibaut Chèze

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-03-30 07:20:10 -07:00
parent 8fe7963631
commit 448d957e48

View File

@ -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 );