More u32 tweaks

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8307 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-03-19 16:32:08 +00:00
parent f7e5b3124b
commit 93d87dd01b
2 changed files with 3 additions and 2 deletions

View File

@ -537,7 +537,7 @@ sub in_hex2( $ ) {
}
sub in_hex3( $ ) {
sprintf '%03x', $_[0];
sprintf '0x%03x', $_[0];
}
sub in_hex4( $ ) {

View File

@ -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
#