summaryrefslogtreecommitdiff
path: root/scripts/VyattaQosTrafficShaper.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-23 15:50:41 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-23 15:50:41 -0700
commit6ab5a0589ac4f0359679edbd3982c130038dfc1d (patch)
treed549d305f5633a97237bc1fe986c179394c216b7 /scripts/VyattaQosTrafficShaper.pm
parent200fb453f43a3f0406c14b9003ca5a1e6f7587f4 (diff)
downloadvyatta-cfg-qos-6ab5a0589ac4f0359679edbd3982c130038dfc1d.tar.gz
vyatta-cfg-qos-6ab5a0589ac4f0359679edbd3982c130038dfc1d.zip
Add incoming traffic limiting to Qos
This adds support for Qos using incoming policing. It is accepts the syntax and processes commands, but is not fully debugged. Bugfix: 3664
Diffstat (limited to 'scripts/VyattaQosTrafficShaper.pm')
-rw-r--r--scripts/VyattaQosTrafficShaper.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/VyattaQosTrafficShaper.pm b/scripts/VyattaQosTrafficShaper.pm
index ce4ea3f..5f9fe75 100644
--- a/scripts/VyattaQosTrafficShaper.pm
+++ b/scripts/VyattaQosTrafficShaper.pm
@@ -384,7 +384,8 @@ sub commands {
foreach my $class (@$classes) {
$class->dsmarkClass($out, 1, $dev);
foreach my $match ($class->matchRules()) {
- $match->filter($out, $dev, 1, $class->{id});
+ $match->filter($out, $dev, 1, 1);
+ printf {$out} " classid %x:%x\n", $parent, $class->{id};
}
}
@@ -401,7 +402,8 @@ sub commands {
$class->htbClass($out, $dev, $parent, $rate);
foreach my $match ($class->matchRules()) {
- $match->filter($out, $dev, $parent, $class->{id}, $class->{dsmark});
+ $match->filter($out, $dev, $parent, 1, $class->{dsmark});
+ printf {$out} " classid %x:%x\n", $parent, $class->{id};
}
}
}