From c05071afc4a84dd2deb27faff58ac06a5229447b Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 5 May 2009 08:24:02 -0700 Subject: [PATCH] Another class number decimal/hex fix --- Shorewall/Perl/Shorewall/Tc.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 5d2702605..ff5720c34 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -619,7 +619,7 @@ sub validate_tc_class( $$$$$$ ) { if ( $classnumber ) { fatal_error "Duplicate Class NUMBER ($classnumber)" if $tcref->{$classnumber}; } else { - $classnumber = $config{WIDE_TC_MARKS} ? $tcref->{nextclass}++ : $devnum . $markval; + $classnumber = $config{WIDE_TC_MARKS} ? $tcref->{nextclass}++ : hex_value( $devnum . $markval ); fatal_error "Duplicate MARK ($mark)" if $tcref->{$classnumber}; } } @@ -1056,7 +1056,7 @@ sub setup_traffic_shaping() { emit "run_tc filter add dev $device parent $devicenumber:0 protocol ip prio " . ( $priority | 10 ) . " u32 match ip tos $tos $mask flowid $classid"; } - save_progress_message_short qq(" TC Class $class defined."); + save_progress_message_short qq(" TC Class $classid defined."); emit ''; }