From 507d58ea0c79a2ced3eb3a26e598820d34756d4c Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 24 Mar 2008 14:56:37 +0000 Subject: [PATCH] Add 'avgpkt' to CONNBYTES code (it was already documented) git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8346 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 509ec051c..a65457e54 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1240,7 +1240,8 @@ my %dir = ( O => 'original' , B => 'both' ); my %mode = ( P => 'packets' , - B => 'bytes' ); + B => 'bytes' , + A => 'avgpkt' ); # # Create a "-m connbytes" match for the passed argument @@ -1250,7 +1251,7 @@ sub do_connbytes( $ ) { return '' if $connbytes eq '-'; # 1 2 3 5 6 - fatal_error "Invalid CONNBYTES ($connbytes)" unless $connbytes =~ /^(!)? (\d+): (\d+)? ((:[ORB])(:[PB])?)?$/x; + fatal_error "Invalid CONNBYTES ($connbytes)" unless $connbytes =~ /^(!)? (\d+): (\d+)? ((:[ORB]) (:[PBA])?)?$/x; my $invert = $1 || ''; $invert = '! ' if $invert;