projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57445b5
)
network: disable link local addressing on vrf
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 16 Feb 2019 16:15:19 +0000
(
01:15
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 16 Feb 2019 16:15:23 +0000
(
01:15
+0900)
See the commment in vrf_link_scope_lookup() in drivers/net/vrf.c of
Linux kernel.
src/network/networkd-link.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-link.c
b/src/network/networkd-link.c
index
24946b1
..
e9c814a
100644
(file)
--- a/
src/network/networkd-link.c
+++ b/
src/network/networkd-link.c
@@
-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;