diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-30 11:48:35 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-30 11:48:35 -0700 |
commit | ac7353307d00a55d1740b642cf6c712a0b280181 (patch) | |
tree | 76d76c9d07803a08c2a5cefaa75a9d0927948265 | |
parent | cb9532549c0eb2390cbd7d3eba1b5254bc7cb734 (diff) | |
download | vyatta-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.pm | 6 |
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"; |