mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-25 17:13:11 +01:00
Localize to IPv6 the effect of generating ALL_ACASTS during 'restore'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4385264dc3
commit
b253be8a69
@ -7513,11 +7513,12 @@ sub set_global_variables( $$ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $setall ) {
|
if ( $setall ) {
|
||||||
|
if ( $conditional ) {
|
||||||
emit $interfaceaddr{$_} for sortkeysiftest %interfaceaddr;
|
emit $interfaceaddr{$_} for sortkeysiftest %interfaceaddr;
|
||||||
emit $interfacenets{$_} for sortkeysiftest %interfacenets;
|
emit $interfacenets{$_} for sortkeysiftest %interfacenets;
|
||||||
|
}
|
||||||
|
|
||||||
unless ( have_capability( 'ADDRTYPE' ) ) {
|
unless ( have_capability( 'ADDRTYPE' ) ) {
|
||||||
|
|
||||||
if ( $family == F_IPV4 ) {
|
if ( $family == F_IPV4 ) {
|
||||||
emit 'ALL_BCASTS="$(get_all_bcasts) 255.255.255.255"';
|
emit 'ALL_BCASTS="$(get_all_bcasts) 255.255.255.255"';
|
||||||
emit $interfacebcasts{$_} for sortkeysiftest %interfacebcasts;
|
emit $interfacebcasts{$_} for sortkeysiftest %interfacebcasts;
|
||||||
|
@ -291,13 +291,14 @@ sub generate_script_2() {
|
|||||||
|
|
||||||
if ( have_address_variables || @$optional_interfaces ) {
|
if ( have_address_variables || @$optional_interfaces ) {
|
||||||
emit( 'local interface',
|
emit( 'local interface',
|
||||||
'local iface',
|
|
||||||
'',
|
'',
|
||||||
'interface="$1"',
|
'interface="$1"',
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit( 'local iface', '' ) if $family == F_IPV6;
|
||||||
|
|
||||||
map_provider_to_interface if have_providers;
|
map_provider_to_interface if have_providers;
|
||||||
|
|
||||||
if ( $global_variables ) {
|
if ( $global_variables ) {
|
||||||
@ -314,7 +315,7 @@ sub generate_script_2() {
|
|||||||
|
|
||||||
if ( $global_variables == ( ALL_COMMANDS | NOT_RESTORE ) ) {
|
if ( $global_variables == ( ALL_COMMANDS | NOT_RESTORE ) ) {
|
||||||
verify_required_interfaces(0);
|
verify_required_interfaces(0);
|
||||||
set_global_variables($family == F_IPV4, 0);
|
set_global_variables($family == F_IPV6, 0);
|
||||||
handle_optional_interfaces;
|
handle_optional_interfaces;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2437,10 +2437,9 @@ sub generate_all_acasts() {
|
|||||||
|
|
||||||
@wildacasts = '*' unless @wildacasts;
|
@wildacasts = '*' unless @wildacasts;
|
||||||
|
|
||||||
emit( '',
|
emit( 'ALL_ACASTS=',
|
||||||
'ALL_ACASTS=',
|
|
||||||
'',
|
'',
|
||||||
'for $iface in $(find_all_interfaces1); do' );
|
'for iface in $(find_all_interfaces1); do' );
|
||||||
|
|
||||||
push_indent;
|
push_indent;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user