diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-30 11:48:35 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-08-17 17:04:12 -0700 |
commit | 43948e58dbb50251ae647e153fe204eac84edc3e (patch) | |
tree | 80738b93910a3b4a368e80db8f8463136bbfc6e0 | |
parent | c7ee5c9e13920eb42422e474f08c7f3d8a8ec324 (diff) | |
download | vyatta-cfg-qos-43948e58dbb50251ae647e153fe204eac84edc3e.tar.gz vyatta-cfg-qos-43948e58dbb50251ae647e153fe204eac84edc3e.zip |
Fix matching (default)
Use a null u32 rather than basic match to get statistics.
(cherry picked from commit ac7353307d00a55d1740b642cf6c712a0b280181)
-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"; |