forked from extern/shorewall_code
Generate ALL_ACASTS during 'restore' processing
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
fe7bb4abca
commit
6cab1c3c8c
@ -281,7 +281,8 @@ sub generate_script_2() {
|
||||
'# Set global variables holding detected IP information' ,
|
||||
'#' ,
|
||||
'detect_configuration()',
|
||||
'{' );
|
||||
'{'
|
||||
);
|
||||
|
||||
my $global_variables = have_global_variables;
|
||||
my $optional_interfaces = find_interfaces_by_option( 'optional' );
|
||||
@ -290,6 +291,7 @@ sub generate_script_2() {
|
||||
|
||||
if ( have_address_variables || @$optional_interfaces ) {
|
||||
emit( 'local interface',
|
||||
'local iface',
|
||||
'',
|
||||
'interface="$1"',
|
||||
''
|
||||
@ -312,7 +314,7 @@ sub generate_script_2() {
|
||||
|
||||
if ( $global_variables == ( ALL_COMMANDS | NOT_RESTORE ) ) {
|
||||
verify_required_interfaces(0);
|
||||
set_global_variables(0, 0);
|
||||
set_global_variables($family == F_IPV4, 0);
|
||||
handle_optional_interfaces;
|
||||
}
|
||||
|
||||
|
@ -2437,11 +2437,10 @@ sub generate_all_acasts() {
|
||||
|
||||
@wildacasts = '*' unless @wildacasts;
|
||||
|
||||
emit( 'local iface',
|
||||
'',
|
||||
emit( '',
|
||||
'ALL_ACASTS=',
|
||||
'',
|
||||
'for iface in $(find_all_interfaces1); do' );
|
||||
'for $iface in $(find_all_interfaces1); do' );
|
||||
|
||||
push_indent;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user