This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 7605197f9 netutils/netinit: Perform icmpv6 autoconfiguration when link
transitions from down to up.
7605197f9 is described below
commit 7605197f9de802133a6814672b73d43573c272ff
Author: Stuart Ianna <[email protected]>
AuthorDate: Tue Oct 24 12:06:33 2023 +1100
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.
*/