mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
network: disable link local addressing on ipip, gre, sit, and vti netdevs
Closes #12547.
This commit is contained in:
parent
b71d9a1296
commit
af2fa2c116
@ -121,7 +121,7 @@ bool link_ipv4ll_enabled(Link *link) {
|
||||
if (!link->network)
|
||||
return false;
|
||||
|
||||
if (STRPTR_IN_SET(link->kind, "vrf", "wireguard"))
|
||||
if (STRPTR_IN_SET(link->kind, "vrf", "wireguard", "ipip", "gre", "ip6gre", "ip6tnl", "sit", "vti", "vti6"))
|
||||
return false;
|
||||
|
||||
if (link->network->bond)
|
||||
@ -139,7 +139,7 @@ bool link_ipv4ll_fallback_enabled(Link *link) {
|
||||
if (!link->network)
|
||||
return false;
|
||||
|
||||
if (STRPTR_IN_SET(link->kind, "vrf", "wireguard"))
|
||||
if (STRPTR_IN_SET(link->kind, "vrf", "wireguard", "ipip", "gre", "ip6gre", "ip6tnl", "sit", "vti", "vti6"))
|
||||
return false;
|
||||
|
||||
if (link->network->bond)
|
||||
@ -160,7 +160,7 @@ static bool link_ipv6ll_enabled(Link *link) {
|
||||
if (!link->network)
|
||||
return false;
|
||||
|
||||
if (STRPTR_IN_SET(link->kind, "vrf", "wireguard"))
|
||||
if (STRPTR_IN_SET(link->kind, "vrf", "wireguard", "ipip", "gre", "sit", "vti"))
|
||||
return false;
|
||||
|
||||
if (link->network->bond)
|
||||
|
Loading…
Reference in New Issue
Block a user