summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-ipv6-proxy-ndp.c
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2017-05-09 20:04:55 +0200
committerLennart Poettering <lennart@poettering.net>2017-05-09 20:04:55 +0200
commit465dfe59fcbb81f21161417a74dd33276bf8039b (patch)
tree547cec8ce68444416b40d863e19e9579391fd9fa /src/network/networkd-ipv6-proxy-ndp.c
parentnetworkd: add support to configure route protocol. (#5890) (diff)
downloadsystemd-465dfe59fcbb81f21161417a74dd33276bf8039b.tar.xz
systemd-465dfe59fcbb81f21161417a74dd33276bf8039b.zip
networkd: add IPv6ProxyNDP (#5913)
This allows enabling proxy_ndp even if no addresses are configured in networkd, as well as disabling proxy_ndp from a drop-in.
Diffstat (limited to 'src/network/networkd-ipv6-proxy-ndp.c')
-rw-r--r--src/network/networkd-ipv6-proxy-ndp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-ipv6-proxy-ndp.c b/src/network/networkd-ipv6-proxy-ndp.c
index 11c1cd9268..00790c0c13 100644
--- a/src/network/networkd-ipv6-proxy-ndp.c
+++ b/src/network/networkd-ipv6-proxy-ndp.c
@@ -38,6 +38,9 @@ static bool ipv6_proxy_ndp_is_needed(Link *link) {
if (!link->network)
return false;
+ if (link->network->ipv6_proxy_ndp != -1)
+ return link->network->ipv6_proxy_ndp;
+
if (link->network->n_ipv6_proxy_ndp_addresses == 0)
return false;