Module Name: src Committed By: ozaki-r Date: Thu Aug 3 05:44:22 UTC 2023
Modified Files: src/sys/netinet6: in6.c Log Message: in6: clear ND6_IFF_IFDISABLED to allow DAD again on link-up To generate a diff of this commit: cvs rdiff -u -r1.288 -r1.289 src/sys/netinet6/in6.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netinet6/in6.c diff -u src/sys/netinet6/in6.c:1.288 src/sys/netinet6/in6.c:1.289 --- src/sys/netinet6/in6.c:1.288 Mon Oct 24 14:15:19 2022 +++ src/sys/netinet6/in6.c Thu Aug 3 05:44:22 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: in6.c,v 1.288 2022/10/24 14:15:19 msaitoh Exp $ */ +/* $NetBSD: in6.c,v 1.289 2023/08/03 05:44:22 ozaki-r Exp $ */ /* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */ /* @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.288 2022/10/24 14:15:19 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.289 2023/08/03 05:44:22 ozaki-r Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -2293,6 +2293,10 @@ in6_if_link_down(struct ifnet *ifp) } pserialize_read_exit(s); curlwp_bindx(bound); + + /* Clear ND6_IFF_IFDISABLED to allow DAD again on link-up. */ + if (ifp->if_afdata[AF_INET6] != NULL) + ND_IFINFO(ifp)->flags &= ~ND6_IFF_IFDISABLED; } void