From 4a86133a0d7a4d20887c2f2d726d1558f47c476b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 16 Jun 2009 17:12:54 -0700 Subject: Fix match rules for traffic limiter Need to pass police string in to Match filter generator. Bug 4596 (cherry picked from commit 340773bacdacbb88586ff0ea8d053990205bd538) --- lib/Vyatta/Qos/TrafficLimiter.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/Vyatta/Qos/TrafficLimiter.pm') diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm index b2fd07c..e5731d0 100644 --- a/lib/Vyatta/Qos/TrafficLimiter.pm +++ b/lib/Vyatta/Qos/TrafficLimiter.pm @@ -83,9 +83,11 @@ sub commands { printf "qdisc add dev %s handle %x: ingress\n", $dev, $parent; foreach my $class (@$classes) { foreach my $match ( $class->matchRules() ) { - $match->filter( $dev, $parent, $class->{priority} ); - printf " police rate %s burst %s drop flowid :%x\n", - $class->{rate}, $class->{burst}, $class->{id}; + my $police = " police rate " . $class->{rate} + . " burst " . $class->{burst}; + + $match->filter( $dev, $parent, $class->{id}, $class->{priority}, + undef, $police ); } } } -- cgit v1.2.3