-/* $OpenBSD: in6_ifattach.c,v 1.107 2018/03/27 15:03:52 dhill Exp $ */
+/* $OpenBSD: in6_ifattach.c,v 1.108 2018/07/10 20:43:26 florian Exp $ */
/* $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $ */
/*
TAILQ_FOREACH(ifp, &ifnet, if_list) {
if (ifp == ifp0)
continue;
- if (in6_get_hw_ifid(ifp, in6) != 0)
- continue;
-
- /*
- * to borrow ifid from other interface, ifid needs to be
- * globally unique
- */
- if (IFID_UNIVERSAL(in6)) {
- nd6log((LOG_DEBUG,
- "%s: borrow interface identifier from %s\n",
- ifp0->if_xname, ifp->if_xname));
+ if (in6_get_hw_ifid(ifp, in6) == 0)
goto success;
- }
}
/* last resort: get from random number source */