summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-20 16:12:51 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-20 16:12:51 -0700
commit9e2906ce7755f1723d345d36db7364df1e0b6a03 (patch)
tree394fadc11f085a2ac23f05aee1000d3220ae0da2
parenta1d63b56887e196bade8196a7a27132ee03b48ae (diff)
downloadvyatta-cfg-qos-9e2906ce7755f1723d345d36db7364df1e0b6a03.tar.gz
vyatta-cfg-qos-9e2906ce7755f1723d345d36db7364df1e0b6a03.zip
Allow match rules without priority.
-rw-r--r--lib/Vyatta/Qos/Match.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/Match.pm b/lib/Vyatta/Qos/Match.pm
index 7ac9ce9..8dda94d 100644
--- a/lib/Vyatta/Qos/Match.pm
+++ b/lib/Vyatta/Qos/Match.pm
@@ -86,7 +86,8 @@ sub filter {
my $p = $self->{$proto};
next unless $p;
- printf "filter add dev %s parent %x: prio %d", $dev, $parent, $prio;
+ printf "filter add dev %s parent %x:", $dev, $parent;
+ printf " prio %d", $prio if ($prio);
if ($proto ne 'ether') {
print " protocol $proto u32";
print " match $proto dsfield $$p{dsfield} 0xff" if $$p{dsfield};