On 03/05/2012 07:53 AM, Fred Maillou wrote:
> Hello,
> 
> Using shorewall-4.5.1-Beta2, I have seen that DSCP values CS6 and
> CS7 are provoking a configuration check error.  All other DSCP
> values are OK.
> 
> tcrules:
> 
> DSCP(CS7)    172.30.159.102    0.0.0.0/0    all 
> 
> # shorewall check
> 
> [...]
> ERROR: Invalid DSCP (CS7) : /tmp/shorewall/tcrules (line 2)



-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm
index 8df624f..62232a0 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 );
 				      }
 		     );

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to