Allow hex numbers in 'mark' column of the providers file == Take 4

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3853 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-05-03 21:09:13 +00:00
parent 0b2b7935fc
commit 86be38046c

View File

@ -3112,6 +3112,11 @@ setup_traffic_shaping()
esac
eval devnum=\$$(chain_base $device)_devnum
#
# Convert HEX/OCTAL mark representation to decimal
#
mark=$(($mark))
classid=$devnum:1$mark
[ -n "$devnum" ] || fatal_error "Device $device not defined in $devfile"