From 63115f7b7cd1705649d4a509faa5a1d623f1be12 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 12 May 2010 13:27:27 -0700 Subject: Add drop action to ingress limit policy Need to drop (not reclassify) packet when threshold is reached. Bug 5599 --- lib/Vyatta/Qos/IngressLimit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Vyatta/Qos') diff --git a/lib/Vyatta/Qos/IngressLimit.pm b/lib/Vyatta/Qos/IngressLimit.pm index 4a24ea5..e9e2fbb 100644 --- a/lib/Vyatta/Qos/IngressLimit.pm +++ b/lib/Vyatta/Qos/IngressLimit.pm @@ -76,7 +76,7 @@ sub commands { foreach my $class (@$classes) { foreach my $match ( $class->matchRules() ) { my $police = " police rate " . $class->{rate} - . " burst " . $class->{burst}; + . " action drop burst " . $class->{burst}; $match->filter( $dev, $parent, $class->{id}, $class->{priority}, undef, $police ); -- cgit v1.2.3