forked from extern/shorewall_code
Merge branch 'master' into 4.4.21
This commit is contained in:
commit
46c4387397
@ -53,6 +53,7 @@ our @EXPORT = qw(
|
||||
progress_message3
|
||||
supplied
|
||||
get_action_params
|
||||
get_action_chain
|
||||
set_action_param
|
||||
);
|
||||
|
||||
@ -1800,12 +1801,14 @@ sub embedded_perl( $ ) {
|
||||
#
|
||||
# Push/pop action params
|
||||
#
|
||||
sub push_action_params( $ ) {
|
||||
my @params = split /,/, $_[0];
|
||||
sub push_action_params( $$ ) {
|
||||
my @params = split /,/, $_[1];
|
||||
my $oldparams = \@actparms;
|
||||
|
||||
@actparms = ();
|
||||
|
||||
$actparms[0] = $_[0];
|
||||
|
||||
for ( my $i = 1; $i <= @params; $i++ ) {
|
||||
my $val = $params[$i - 1];
|
||||
|
||||
@ -1838,6 +1841,10 @@ sub get_action_params( $ ) {
|
||||
@actparms[1..$num];
|
||||
}
|
||||
|
||||
sub get_action_chain() {
|
||||
$actparms[0];
|
||||
}
|
||||
|
||||
sub set_action_param( $$ ) {
|
||||
my $i = shift;
|
||||
|
||||
|
@ -1465,7 +1465,7 @@ sub process_action( $) {
|
||||
|
||||
push_open $actionfile;
|
||||
|
||||
my $oldparms = push_action_params( $param );
|
||||
my $oldparms = push_action_params( $chainref, $param );
|
||||
|
||||
$active{$wholeaction}++;
|
||||
push @actionstack, $wholeaction;
|
||||
|
Loading…
Reference in New Issue
Block a user