mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02:00
Unify the setting of $targetref and $jump
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
83e6e2f105
commit
b789d825f8
@ -4523,14 +4523,16 @@ sub expand_rule( $$$$$$$$$$;$ )
|
|||||||
my ($iiface, $diface, $inets, $dnets, $iexcl, $dexcl, $onets , $oexcl, $trivialiexcl, $trivialdexcl );
|
my ($iiface, $diface, $inets, $dnets, $iexcl, $dexcl, $onets , $oexcl, $trivialiexcl, $trivialdexcl );
|
||||||
my $chain = $chainref->{name};
|
my $chain = $chainref->{name};
|
||||||
my $table = $chainref->{table};
|
my $table = $chainref->{table};
|
||||||
my $jump = $target ? '-j ' . $target : '';
|
my $jump;
|
||||||
my $mac;
|
my $mac;
|
||||||
my $targetref;
|
my $targetref;
|
||||||
|
|
||||||
if ( $target ) {
|
if ( $target ) {
|
||||||
my ( $basic_target, $rest ) = split ' ', $target, 2;
|
my ( $basictarget, $rest ) = split ' ', $target, 2;
|
||||||
|
|
||||||
$targetref = $chain_table{$table}{$basic_target};
|
$jump = '-j ' . $target unless $targetref = $chain_table{$table}{$basictarget};
|
||||||
|
} else {
|
||||||
|
$jump = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
our @ends = ();
|
our @ends = ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user