Fix minor editing issue in CONNBYTES

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8753 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-10-06 15:12:47 +00:00
parent 5f5554113c
commit 9f9185f002
2 changed files with 7 additions and 8 deletions

View File

@ -1329,10 +1329,9 @@ sub do_connbytes( $ ) {
# 1 2 3 5 6 # 1 2 3 5 6
fatal_error "Invalid CONNBYTES ($connbytes)" unless $connbytes =~ /^(!)? (\d+): (\d+)? ((:[ORB]) (:[PBA])?)?$/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;
my $min = $2; $min = 0 unless defined $min; my $min = $2; $min = 0 unless defined $min;
my $max = $3 || ''; fatal_error "Invalid byte range ($min:$max)" if $max ne '' and $min > $max; my $max = $3; $max = '' unless defined $max; fatal_error "Invalid byte range ($min:$max)" if $max ne '' and $min > $max;
my $dir = $5 || 'B'; my $dir = $5 || 'B';
my $mode = $6 || 'B'; my $mode = $6 || 'B';

View File

@ -510,7 +510,8 @@
<listitem> <listitem>
<para>Connection Bytes; defines a byte or packet range that the <para>Connection Bytes; defines a byte or packet range that the
connection must fall within in order for the rule to match.</para> connection must fall within in order for the rule to match. Added in
Shorewall-perl 4.2.0.</para>
<para>A packet matches if the the packet/byte count is within the <para>A packet matches if the the packet/byte count is within the
range defined by <emphasis>min</emphasis> and range defined by <emphasis>min</emphasis> and
@ -552,10 +553,9 @@
"<emphasis>helper</emphasis>"</emphasis></term> "<emphasis>helper</emphasis>"</emphasis></term>
<listitem> <listitem>
<para>Added in Shorewall-perl 4.2.0 Beta 2. Names a Netfiler <para>Added in Shorewall-perl 4.2.0. Names a Netfiler protocol
protocol <firstterm>helper</firstterm> module such as <firstterm>helper</firstterm> module such as <option>ftp</option>,
<option>ftp</option>, <option>sip</option>, <option>amanda</option>, <option>sip</option>, <option>amanda</option>, etc.</para>
etc.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>