Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/nd6_nbr.c
Show First 20 Lines • Show All 1,498 Lines • ▼ Show 20 Lines | nd6_dad_ns_output(struct dadq *dp) | ||||
} | } | ||||
nd6_ns_output(ifp, NULL, NULL, &ia->ia_addr.sin6_addr, | nd6_ns_output(ifp, NULL, NULL, &ia->ia_addr.sin6_addr, | ||||
(uint8_t *)&dp->dad_nonce[0]); | (uint8_t *)&dp->dad_nonce[0]); | ||||
} | } | ||||
static void | static void | ||||
nd6_dad_ns_input(struct ifaddr *ifa, struct nd_opt_nonce *ndopt_nonce) | nd6_dad_ns_input(struct ifaddr *ifa, struct nd_opt_nonce *ndopt_nonce) | ||||
{ | { | ||||
struct in6_ifaddr *ia; | |||||
struct ifnet *ifp; | |||||
const struct in6_addr *taddr6; | |||||
struct dadq *dp; | struct dadq *dp; | ||||
if (ifa == NULL) | if (ifa == NULL) | ||||
panic("ifa == NULL in nd6_dad_ns_input"); | panic("ifa == NULL in nd6_dad_ns_input"); | ||||
ia = (struct in6_ifaddr *)ifa; | |||||
ifp = ifa->ifa_ifp; | |||||
taddr6 = &ia->ia_addr.sin6_addr; | |||||
/* Ignore Nonce option when Enhanced DAD is disabled. */ | /* Ignore Nonce option when Enhanced DAD is disabled. */ | ||||
if (V_dad_enhanced == 0) | if (V_dad_enhanced == 0) | ||||
ndopt_nonce = NULL; | ndopt_nonce = NULL; | ||||
dp = nd6_dad_find(ifa, ndopt_nonce); | dp = nd6_dad_find(ifa, ndopt_nonce); | ||||
if (dp == NULL) | if (dp == NULL) | ||||
return; | return; | ||||
dp->dad_ns_icount++; | dp->dad_ns_icount++; | ||||
Show All 17 Lines |