summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-15 14:07:12 -0700
committerStephen Hemminger <shemminger@lenny.localdomain>2009-10-01 13:51:20 -0700
commit24bdadbcbf93a9ae6822024b33ebd6f43b5488f4 (patch)
treec8cd084f478d88cff280bcc81943df842530bdf4 /lib/Vyatta/Qos
parentc22deb0c01bb270c61ff3aabd71c533567c293f7 (diff)
downloadvyatta-cfg-qos-24bdadbcbf93a9ae6822024b33ebd6f43b5488f4.tar.gz
vyatta-cfg-qos-24bdadbcbf93a9ae6822024b33ebd6f43b5488f4.zip
Fix DSCP field match with set-dscp
Special case of DSCP changing exposed bug in dscp match code. Bug 4551 (cherry picked from commit 87f3e3dd1d054e5c356b8b9e251eb23b6a35bb32)
Diffstat (limited to 'lib/Vyatta/Qos')
-rw-r--r--lib/Vyatta/Qos/Match.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Vyatta/Qos/Match.pm b/lib/Vyatta/Qos/Match.pm
index fd1714a..98b7286 100644
--- a/lib/Vyatta/Qos/Match.pm
+++ b/lib/Vyatta/Qos/Match.pm
@@ -75,9 +75,9 @@ sub filter {
my $ip = $self->{$ipver};
next unless $ip && $$ip{dsfield};
- printf "filter add dev %s parent %x: protocol $ipver prio 1",
- $dev, $parent;
- printf " handle %d tcindex", $$ip{dsfield};
+ printf "filter add dev %s parent %x: protocol %s prio 1",
+ $dev, $parent, $ipver;
+ print " handle $$ip{dsfield} tcindex",
}
return;
}