diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-05-17 10:05:00 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-05-17 10:05:00 -0700 |
commit | 0f1993c80406bde36dda604d69345d86cdb528d2 (patch) | |
tree | a0bed85f1fae1b7e5f887ac1ceb9eddb781ad952 | |
parent | 2e022a44d44119f24b214a921c780dc5e39f95bb (diff) | |
download | vyatta-cfg-qos-0f1993c80406bde36dda604d69345d86cdb528d2.tar.gz vyatta-cfg-qos-0f1993c80406bde36dda604d69345d86cdb528d2.zip |
Fix packet loop when doing traffic limiter
Packets over the input limit rate should be dropped, not reclassified.
Bug 5599, 5597
-rw-r--r-- | lib/Vyatta/Qos/TrafficLimiter.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 ); |