summaryrefslogtreecommitdiff
path: root/scripts/VyattaQosMatch.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-14 14:01:21 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-14 14:01:21 -0800
commit529f2f91a74aca030ad07af120322ec515d6d377 (patch)
tree0b4b886aea4ef4b1c9cbd2637b2acab4d1495826 /scripts/VyattaQosMatch.pm
parentc2b36d99a7715e13df75d83cc63ce92cac0981dc (diff)
downloadvyatta-cfg-qos-529f2f91a74aca030ad07af120322ec515d6d377.tar.gz
vyatta-cfg-qos-529f2f91a74aca030ad07af120322ec515d6d377.zip
get dsmark working
This makes dsmark work. Need to round up to power of 2 and also pass parent down to handle nested case properly.
Diffstat (limited to 'scripts/VyattaQosMatch.pm')
-rw-r--r--scripts/VyattaQosMatch.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/VyattaQosMatch.pm b/scripts/VyattaQosMatch.pm
index 334b7c1..437dd50 100644
--- a/scripts/VyattaQosMatch.pm
+++ b/scripts/VyattaQosMatch.pm
@@ -41,7 +41,7 @@ sub _define {
}
sub filter {
- my ( $self, $out, $dev, $id ) = @_;
+ my ( $self, $out, $dev, $parent, $id ) = @_;
my $ip = $self->{_ip};
my $indev = $self->{_dev};
my $vif = $self->{_vif};
@@ -51,7 +51,7 @@ sub filter {
return;
}
- print {$out} "filter add dev $dev parent 1:0 prio 1";
+ print {$out} "filter add dev $dev parent $parent:0 prio 1";
if (defined $ip) {
print {$out} " protocol ip u32";
print {$out} " match ip dsfield $$ip{dsfield} 0xff"
@@ -73,5 +73,5 @@ sub filter {
print {$out} " match meta\(vlan mask 0xfff eq $vif\)"
if (defined $vif);
}
- print {$out} " classid 1:$id\n";
+ print {$out} " classid $parent:$id\n";
}