- llifa = ifp->if_lladdr;
- IFA_LOCK(llifa);
- sdl = (struct sockaddr_dl *)(void *)
- llifa->ifa_addr;
- if (lladdrlen == sdl->sdl_alen &&
- bcmp(lladdr, LLADDR(sdl), lladdrlen) == 0)
- candisable = TRUE;
- IFA_UNLOCK(llifa);
-
- in6 = ia->ia_addr.sin6_addr;
- if (in6_iid_from_hw(ifp, &in6) != 0)
- break;
-
- /* Refine decision about whether IPv6 can be disabled */
- if (candisable &&
- !IN6_ARE_ADDR_EQUAL(&ia->ia_addr.sin6_addr, &in6)) {
- /*
- * Apply this logic only to the embedded MAC
- * address form of link-local IPv6 address.
- */
- candisable = FALSE;
- } else if (lladdr == NULL &&
- IN6_ARE_ADDR_EQUAL(&ia->ia_addr.sin6_addr, &in6)) {
- /*
- * We received a NA with no target link-layer
- * address option. This means that someone else
- * has our address. Mark it as a hardware
- * duplicate so we disable IPv6 later on.
- */
- candisable = TRUE;
- }
- break;
- default:
- break;
+ candisable = FALSE;
+ } else if (lladdr == NULL &&
+ IN6_ARE_ADDR_EQUAL(&ia->ia_addr.sin6_addr, &in6)) {
+ /*
+ * We received a NA with no target link-layer
+ * address option. This means that someone else
+ * has our address. Mark it as a hardware
+ * duplicate so we disable IPv6 later on.
+ */
+ candisable = TRUE;
+ }
+ break;
+ default:
+ break;