mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-25 06:03:40 +03:00
network: currently RADV requires MAC address whose length is ETH_ALEN
This commit is contained in:
parent
f4ef1c196c
commit
218a850268
@ -57,6 +57,9 @@ bool link_radv_enabled(Link *link) {
|
||||
if (!link_may_have_ipv6ll(link))
|
||||
return false;
|
||||
|
||||
if (link->hw_addr.length != ETH_ALEN)
|
||||
return false;
|
||||
|
||||
return link->network->router_prefix_delegation;
|
||||
}
|
||||
|
||||
@ -547,6 +550,9 @@ static int radv_is_ready_to_configure(Link *link) {
|
||||
if (in6_addr_is_null(&link->ipv6ll_address))
|
||||
return false;
|
||||
|
||||
if (link->hw_addr.length != ETH_ALEN || hw_addr_is_null(&link->hw_addr))
|
||||
return false;
|
||||
|
||||
if (link->network->router_emit_dns && !link->network->router_dns) {
|
||||
_cleanup_free_ struct in6_addr *dns = NULL;
|
||||
size_t n_dns;
|
||||
|
Loading…
x
Reference in New Issue
Block a user