]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: Consider linkLocalAddressing state while configuring ndisc. (#7012)
authorSusant Sahani <145210+ssahani@users.noreply.github.com>
Wed, 18 Oct 2017 09:12:59 +0000 (14:42 +0530)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Oct 2017 09:12:59 +0000 (11:12 +0200)
If linkLocalAddressing is disabled in for the interface still then
we look for ndisc configured or not in link_check_ready.

Link local is used automatic address configuration and neighbor discovery protocol.
If link local is disabled we should not configure ndisc.

Fixes #2713, #6441, #5841.

src/network/networkd-link.c

index 6b591271a02178f885410f4971f824925dfc56f8..c581a49b4e77d057fea8f6318d06b7b0c12e1692 100644 (file)
@@ -226,6 +226,9 @@ static bool link_ipv6_accept_ra_enabled(Link *link) {
         if (!link->network)
                 return false;
 
+        if (!link_ipv6ll_enabled(link))
+                return false;
+
         /* If unset use system default (enabled if local forwarding is disabled.
          * disabled if local forwarding is enabled).
          * If set, ignore or enforce RA independent of local forwarding state.