diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-03-07 13:06:02 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-03-07 13:06:02 -0800 |
commit | fd9ffb944c35ea269bc1be337221dd0438b5f0be (patch) | |
tree | 32018ddbef20d5421f05877f74beeec4fde6d92b /scripts/VyattaQosMatch.pm | |
parent | 3422a4ab9ca22d5f43efae457fc2c5f0a1478e98 (diff) | |
download | vyatta-cfg-qos-fd9ffb944c35ea269bc1be337221dd0438b5f0be.tar.gz vyatta-cfg-qos-fd9ffb944c35ea269bc1be337221dd0438b5f0be.zip |
fix filtering rules when using set-dscp
The generated filtering rules were using wrong id's when
set-dscp was being used. Need to put dsmark rules on root,
and htb rules on start of that tree, and the id needs to
be printed in hex not decimal.
Bugfix: 2947
Diffstat (limited to 'scripts/VyattaQosMatch.pm')
-rw-r--r-- | scripts/VyattaQosMatch.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VyattaQosMatch.pm b/scripts/VyattaQosMatch.pm index 437dd50..cf54fb0 100644 --- a/scripts/VyattaQosMatch.pm +++ b/scripts/VyattaQosMatch.pm @@ -51,7 +51,7 @@ sub filter { return; } - print {$out} "filter add dev $dev parent $parent:0 prio 1"; + printf {$out} "filter add dev $dev parent %x:0 prio 1", $parent; if (defined $ip) { print {$out} " protocol ip u32"; print {$out} " match ip dsfield $$ip{dsfield} 0xff" |