Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/nd6_rtr.c
Show First 20 Lines • Show All 1,753 Lines • ▼ Show 20 Lines | if (ia6_match == NULL && new->ndpr_vltime) { | ||||
if ((ia6 = in6_ifadd(new, mcast)) != NULL) { | if ((ia6 = in6_ifadd(new, mcast)) != NULL) { | ||||
/* | /* | ||||
* note that we should use pr (not new) for reference. | * note that we should use pr (not new) for reference. | ||||
*/ | */ | ||||
pr->ndpr_addrcnt++; | pr->ndpr_addrcnt++; | ||||
ia6->ia6_ndpr = pr; | ia6->ia6_ndpr = pr; | ||||
/* | /* | ||||
* toggle onlink state if the address was assigned | |||||
* a prefix route. | |||||
*/ | |||||
if (ia6->ia_flags & IFA_ROUTE) | |||||
pr->ndpr_stateflags |= NDPRF_ONLINK; | |||||
/* | |||||
* RFC 3041 3.3 (2). | * RFC 3041 3.3 (2). | ||||
* When a new public address is created as described | * When a new public address is created as described | ||||
* in RFC2462, also create a new temporary address. | * in RFC2462, also create a new temporary address. | ||||
* | * | ||||
* RFC 3041 3.5. | * RFC 3041 3.5. | ||||
* When an interface connects to a new link, a new | * When an interface connects to a new link, a new | ||||
* randomized interface identifier should be generated | * randomized interface identifier should be generated | ||||
* immediately together with a new set of temporary | * immediately together with a new set of temporary | ||||
▲ Show 20 Lines • Show All 810 Lines • Show Last 20 Lines |