| 309 | } |
| 310 | |
| 311 | void |
| 312 | nd6_ifdetach(struct ifnet *ifp, struct nd_ifinfo *nd) |
| 313 | { |
| 314 | struct epoch_tracker et; |
| 315 | struct ifaddr *ifa, *next; |
| 316 | |
| 317 | NET_EPOCH_ENTER(et); |
| 318 | CK_STAILQ_FOREACH_SAFE(ifa, &ifp->if_addrhead, ifa_link, next) { |
| 319 | if (ifa->ifa_addr->sa_family != AF_INET6) |
| 320 | continue; |
| 321 | |
| 322 | /* stop DAD processing */ |
| 323 | nd6_dad_stop(ifa); |
| 324 | } |
| 325 | NET_EPOCH_EXIT(et); |
| 326 | |
| 327 | free(nd, M_IP6NDP); |
| 328 | } |
| 329 | |
| 330 | /* |
| 331 | * Reset ND level link MTU. This function is called when the physical MTU |
no test coverage detected