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
This commit is contained in:
teastep 2008-03-24 14:56:37 +00:00
parent 3d55331074
commit 507d58ea0c

View File

@ -1240,7 +1240,8 @@ my %dir = ( O => 'original' ,
B => 'both' ); B => 'both' );
my %mode = ( P => 'packets' , my %mode = ( P => 'packets' ,
B => 'bytes' ); B => 'bytes' ,
A => 'avgpkt' );
# #
# Create a "-m connbytes" match for the passed argument # Create a "-m connbytes" match for the passed argument
@ -1250,7 +1251,7 @@ sub do_connbytes( $ ) {
return '' if $connbytes eq '-'; return '' if $connbytes eq '-';
# 1 2 3 5 6 # 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; my $invert = $1 || ''; $invert = '! ' if $invert;