Support '+' in SNAT action invocation

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-10-18 16:00:36 -07:00
parent 5b5f91f75f
commit 0e7d5f3972
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10
3 changed files with 4 additions and 2 deletions

View File

@ -5376,6 +5376,8 @@ sub process_snat1( $$$$$$$$$$$$ ) {
} else {
( $target , $params ) = get_target_param1( $action );
$pre_nat = ( $target =~ s/\+$//; )
$actiontype = $targets{$target};
fatal_error "Invalid ACTION ($action)" unless $actiontype & ( ACTION | INLINE );

View File

@ -145,7 +145,7 @@
<varlistentry>
<term><emphasis
role="bold"><replaceable>action</replaceable></emphasis>[(<replaceable>parameter</replaceable>,...)]</term>
role="bold"><replaceable>action</replaceable></emphasis>[+][(<replaceable>parameter</replaceable>,...)]</term>
<listitem>
<para>where <replaceable>action</replaceable> is an action

View File

@ -144,7 +144,7 @@
<varlistentry>
<term><emphasis
role="bold"><replaceable>action</replaceable></emphasis>[(<replaceable>parameter</replaceable>,...)]</term>
role="bold"><replaceable>action</replaceable></emphasis>[+][(<replaceable>parameter</replaceable>,...)]</term>
<listitem>
<para>where <replaceable>action</replaceable> is an action