From ac7353307d00a55d1740b642cf6c712a0b280181 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 30 Jul 2010 11:48:35 -0700 Subject: Fix matching (default) Use a null u32 rather than basic match to get statistics. --- lib/Vyatta/Qos/Match.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib') 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"; -- cgit v1.2.3