Searched refs:dr (Results 1 – 4 of 4) sorted by relevance
| /xnu-8019.80.24/bsd/netinet6/ |
| H A D | nd6_rtr.c | 354 struct nd_defrouter *dr = NULL; in nd6_ra_input() local 594 dr = defrtrlist_update(&dr0, NULL); in nd6_ra_input() 633 dr = defrtrlist_update(&dr0, NULL); in nd6_ra_input() 739 (void) prelist_update(&pr, dr, m, mcast); in nd6_ra_input() 832 if (dr && dr->stateflags & NDDRF_MAPPED) { in nd6_ra_input() 833 saddr6 = dr->rtaddr_mapped; in nd6_ra_input() 854 if (dr) { in nd6_ra_input() 855 NDDR_REMREF(dr); in nd6_ra_input() 1035 struct nd_defrouter *dr; in defrouter_lookup() local 1043 for (dr = TAILQ_FIRST(nd_router_listp); dr; in defrouter_lookup() [all …]
|
| H A D | nd6_rti.c | 104 nd6_rtilist_update(struct nd_route_info *new_rti, struct nd_defrouter *dr) in nd6_rtilist_update() argument 109 VERIFY(new_rti != NULL && dr != NULL); in nd6_rtilist_update() 113 (void)defrtrlist_update(dr, &rti->nd_rti_router_list); in nd6_rtilist_update() 122 } else if (dr->rtlifetime != 0) { in nd6_rtilist_update() 127 (void)defrtrlist_update(dr, &rti->nd_rti_router_list); in nd6_rtilist_update() 145 struct nd_defrouter *dr = NULL; in nd6_rti_purge() local 148 TAILQ_FOREACH_SAFE(dr, &rti->nd_rti_router_list, dr_entry, ndr) { in nd6_rti_purge() 149 TAILQ_REMOVE(&rti->nd_rti_router_list, dr, dr_entry); in nd6_rti_purge() 150 defrtrlist_del(dr, &rti->nd_rti_router_list); in nd6_rti_purge() 151 NDDR_REMREF(dr); in nd6_rti_purge()
|
| H A D | nd6.c | 1153 struct nd_defrouter *dr = NULL; in nd6_service_expired_default_router() local 1162 TAILQ_FOREACH_SAFE(dr, &nd_defrouter_list, dr_entry, ndr) { in nd6_service_expired_default_router() 1164 if (dr->expire != 0 && dr->expire < timenow) { in nd6_service_expired_default_router() 1165 VERIFY(dr->ifp != NULL); in nd6_service_expired_default_router() 1166 in6_ifstat_inc(dr->ifp, ifs6_defrtr_expiry_cnt); in nd6_service_expired_default_router() 1167 if ((dr->stateflags & NDDRF_INELIGIBLE) == 0) { in nd6_service_expired_default_router() 1168 in6_event_enqueue_nwk_wq_entry(IN6_NDP_RTR_EXPIRY, dr->ifp, in nd6_service_expired_default_router() 1169 &dr->rtaddr, dr->rtlifetime); in nd6_service_expired_default_router() 1171 if (dr->ifp != NULL && in nd6_service_expired_default_router() 1172 dr->ifp->if_type == IFT_CELLULAR) { in nd6_service_expired_default_router() [all …]
|
| H A D | nd6_nbr.c | 1270 struct nd_defrouter *dr; in nd6_na_input() local 1283 dr = defrouter_lookup(NULL, in6, rt_ifp); in nd6_na_input() 1284 if (dr) { in nd6_na_input() 1285 TAILQ_REMOVE(&nd_defrouter_list, dr, dr_entry); in nd6_na_input() 1286 defrtrlist_del(dr, NULL); in nd6_na_input() 1287 NDDR_REMREF(dr); /* remove list reference */ in nd6_na_input() 1288 NDDR_REMREF(dr); in nd6_na_input()
|