convert marks to hex, in order to match ip rule output

This commit is contained in:
Costa Tsaousis (ktsaou) 2015-01-22 22:35:19 +02:00
parent 0657b76213
commit 76267346c0

@ -1283,7 +1283,7 @@ rules() {
local x=
for x in $1
do
mark+=("$[x << ${MARKS_SHIFT[$marktype]}]/${MARKS_MASKS[$marktype]}")
mark+=(`printf "0x%x/${MARKS_MASKS[$marktype]}" "$[x << ${MARKS_SHIFT[$marktype]}]"`)
done
fi
;;