network: warn if IPv6ProxyNDPAddress= is set and IPv6ProxyNDP= is disabled

This commit is contained in:
Yu Watanabe 2020-09-30 05:29:42 +09:00
parent fd773a11d8
commit 87851e0feb
1 changed files with 5 additions and 0 deletions

View File

@ -290,6 +290,11 @@ int network_verify(Network *network) {
if (network->keep_configuration < 0)
network->keep_configuration = KEEP_CONFIGURATION_NO;
if (network->ipv6_proxy_ndp == 0 && !set_isempty(network->ipv6_proxy_ndp_addresses)) {
log_warning("%s: IPv6ProxyNDP= is disabled. Ignoring IPv6ProxyNDPAddress=.", network->filename);
network->ipv6_proxy_ndp_addresses = set_free_free(network->ipv6_proxy_ndp_addresses);
}
LIST_FOREACH_SAFE(addresses, address, address_next, network->static_addresses)
if (address_section_verify(address) < 0)
address_free(address);