From 7605197f9de802133a6814672b73d43573c272ff Mon Sep 17 00:00:00 2001 From: Stuart Ianna Date: Tue, 24 Oct 2023 12:06:33 +1100 Subject: [PATCH] netutils/netinit: Perform icmpv6 autoconfiguration when link transitions from down to up. Without this addition, icmpv6 is never configured in the case that the device is powered on without an ethernet cable connected. --- netutils/netinit/netinit.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netutils/netinit/netinit.c b/netutils/netinit/netinit.c index e90c7c1ab..f9ad0e4c6 100644 --- a/netutils/netinit/netinit.c +++ b/netutils/netinit/netinit.c @@ -873,6 +873,11 @@ static int netinit_monitor(void) goto errout_with_notification; } +#ifdef CONFIG_NET_ICMPv6_AUTOCONF + /* Perform ICMPv6 auto-configuration */ + + netlib_icmpv6_autoconfiguration(ifr.ifr_name); +#endif /* And wait for a short delay. We will want to recheck the * link status again soon. */