From a84e131115c00f450ad7bd2957ff1fef6642bfa3 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 5 Mar 2012 09:50:15 -0800 Subject: [PATCH] Fix bug in DSCP implementation. 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 8df624f64..62232a05f 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -382,7 +382,7 @@ sub process_tc_rule( ) { require_capability 'DSCP_TARGET', 'The DSCP action', 's'; my $dscp = numeric_value( $1); $dscp = $dscpmap{$1} unless defined $dscp; - fatal_error( "Invalid DSCP ($1)" ) unless defined $dscp && $dscp < 0x2f && ! ( $dscp & 1 ); + fatal_error( "Invalid DSCP ($1)" ) unless defined $dscp && $dscp <= 0x38 && ! ( $dscp & 1 ); $target .= ' --set-dscp ' . in_hex( $dscp ); } );