-/* $OpenBSD: in6_ifattach.c,v 1.120 2022/11/14 17:12:55 claudio Exp $ */
+/* $OpenBSD: in6_ifattach.c,v 1.121 2022/11/15 18:42:46 claudio Exp $ */
/* $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $ */
/*
return (error);
}
- /*
- * Only interfaces that need the ND cache should automatically
- * assign a link local address.
- */
- if (!nd6_need_cache(ifp))
+ switch (ifp->if_type) {
+ case IFT_WIREGUARD:
return (0);
+ }
/* Assign a link-local address, if there's none. */
if (in6ifa_ifpforlinklocal(ifp, 0) == NULL) {