mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-17 03:40:53 +01:00
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:
parent
3d55331074
commit
507d58ea0c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user