summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-30 11:48:35 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-30 11:48:35 -0700
commitac7353307d00a55d1740b642cf6c712a0b280181 (patch)
tree76d76c9d07803a08c2a5cefaa75a9d0927948265
parentcb9532549c0eb2390cbd7d3eba1b5254bc7cb734 (diff)
downloadvyatta-cfg-qos-ac7353307d00a55d1740b642cf6c712a0b280181.tar.gz
vyatta-cfg-qos-ac7353307d00a55d1740b642cf6c712a0b280181.zip
Fix matching (default)
Use a null u32 rather than basic match to get statistics.
-rw-r--r--lib/Vyatta/Qos/Match.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Vyatta/Qos/Match.pm b/lib/Vyatta/Qos/Match.pm
index dc6f2db..a6b16e9 100644
--- a/lib/Vyatta/Qos/Match.pm
+++ b/lib/Vyatta/Qos/Match.pm
@@ -133,14 +133,12 @@ sub filter {
my $type = $$p{protocol};
$type = 'all' unless $type;
+ print " protocol $type u32";
if ( defined( $$p{src} ) || defined( $$p{dest} ) ) {
- print " protocol $type u32";
print " match ether src $$p{src}" if $$p{src};
print " match ether dst $$p{dst}" if $$p{dst};
} else {
-
- # u32 requires some options to work but basic works
- print " protocol $type basic";
+ print " match u32 0 0";
}
} else {
print " protocol all u32";