summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/TrafficShaper.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-15 14:40:03 -0700
committerStephen Hemminger <shemminger@lenny.localdomain>2009-10-01 13:51:20 -0700
commit737f6fa46eefdcfda1150c9647c0a7a919de71ae (patch)
treeb786da90016b2ad95ff1b56f91a557d5368cf904 /lib/Vyatta/Qos/TrafficShaper.pm
parentf8e91a2a8591fada3004bd5aee8912017799bf2b (diff)
downloadvyatta-cfg-qos-737f6fa46eefdcfda1150c9647c0a7a919de71ae.tar.gz
vyatta-cfg-qos-737f6fa46eefdcfda1150c9647c0a7a919de71ae.zip
Fix mixed protocol matches
If matching on multiple protocols in same traffic-shaper class then the filter command was garbaled. Bug 4552 (cherry picked from commit 22e0d06a750abc2847e7e7bc96d8abf341a5bca1)
Diffstat (limited to 'lib/Vyatta/Qos/TrafficShaper.pm')
-rw-r--r--lib/Vyatta/Qos/TrafficShaper.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm
index 10bc90a..f89ae60 100644
--- a/lib/Vyatta/Qos/TrafficShaper.pm
+++ b/lib/Vyatta/Qos/TrafficShaper.pm
@@ -134,8 +134,7 @@ sub commands {
foreach my $class (@$classes) {
$class->dsmarkClass( 1, $dev );
foreach my $match ( $class->matchRules() ) {
- $match->filter( $dev, 1, 1 );
- printf " classid %x:%x\n", $parent, $class->{id};
+ $match->filter( $dev, $parent, $class->{id}, 1 );
}
}
@@ -153,8 +152,7 @@ sub commands {
$class->gen_leaf( $dev, $parent, $rate );
foreach my $match ( $class->matchRules() ) {
- $match->filter( $dev, $parent, 1, $class->{dsmark} );
- printf " classid %x:%x\n", $parent, $class->{id};
+ $match->filter( $dev, $parent, $class->{id}, 1, $class->{dsmark} );
}
}
}