diff --git a/Shorewall-perl/Shorewall/Config.pm b/Shorewall-perl/Shorewall/Config.pm index 6b73feac6..a04661d5f 100644 --- a/Shorewall-perl/Shorewall/Config.pm +++ b/Shorewall-perl/Shorewall/Config.pm @@ -537,7 +537,7 @@ sub in_hex2( $ ) { } sub in_hex3( $ ) { - sprintf '%03x', $_[0]; + sprintf '0x%03x', $_[0]; } sub in_hex4( $ ) { diff --git a/Shorewall-perl/Shorewall/Tc.pm b/Shorewall-perl/Shorewall/Tc.pm index 6f98bbaea..8bfabd383 100644 --- a/Shorewall-perl/Shorewall/Tc.pm +++ b/Shorewall-perl/Shorewall/Tc.pm @@ -565,7 +565,8 @@ sub process_tc_filter( $$$$$$ ) { # # And link to it using the current contents of $rule # - emit( "run_tc $rule link $tnum:0 offset at 0 mask 0x0F00 shift 6 plus 0 eat" ); + emit( "run_tc $rule\\" , + " link $tnum:0 offset at 0 mask 0x0F00 shift 6 plus 0 eat" ); # # The rule to match the port(s) will be inserted into the new table #