From 0f1993c80406bde36dda604d69345d86cdb528d2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 17 May 2010 10:05:00 -0700 Subject: Fix packet loop when doing traffic limiter Packets over the input limit rate should be dropped, not reclassified. Bug 5599, 5597 --- lib/Vyatta/Qos/TrafficLimiter.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm index e5731d0..1e2c896 100644 --- a/lib/Vyatta/Qos/TrafficLimiter.pm +++ b/lib/Vyatta/Qos/TrafficLimiter.pm @@ -84,7 +84,8 @@ sub commands { foreach my $class (@$classes) { foreach my $match ( $class->matchRules() ) { my $police = " police rate " . $class->{rate} - . " burst " . $class->{burst}; + . " burst " . $class->{burst} + . " action drop"; $match->filter( $dev, $parent, $class->{id}, $class->{priority}, undef, $police ); -- cgit v1.2.3