mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
network: disable link local addressing on vrf
See the commment in vrf_link_scope_lookup() in drivers/net/vrf.c of Linux kernel.
This commit is contained in:
parent
57445b53fb
commit
89b9a97573
@ -106,7 +106,7 @@ static bool link_ipv4ll_enabled(Link *link) {
|
||||
if (!link->network)
|
||||
return false;
|
||||
|
||||
if (streq_ptr(link->kind, "wireguard"))
|
||||
if (STRPTR_IN_SET(link->kind, "vrf", "wireguard"))
|
||||
return false;
|
||||
|
||||
return link->network->link_local & ADDRESS_FAMILY_IPV4;
|
||||
@ -124,7 +124,7 @@ static bool link_ipv6ll_enabled(Link *link) {
|
||||
if (!link->network)
|
||||
return false;
|
||||
|
||||
if (streq_ptr(link->kind, "wireguard"))
|
||||
if (STRPTR_IN_SET(link->kind, "vrf", "wireguard"))
|
||||
return false;
|
||||
|
||||
return link->network->link_local & ADDRESS_FAMILY_IPV6;
|
||||
|
Loading…
Reference in New Issue
Block a user