Searched refs:dr (Results 1 – 5 of 5) sorted by relevance
| /xnu-11215.81.4/bsd/netinet6/ |
| H A D | nd6_rtr.c | 355 struct nd_defrouter *dr = NULL; in nd6_ra_input() local 613 dr = defrtrlist_update(&dr0, NULL); in nd6_ra_input() 614 if (dr != NULL) { in nd6_ra_input() 615 dr->is_reachable = TRUE; in nd6_ra_input() 655 dr = defrtrlist_update(&dr0, NULL); in nd6_ra_input() 656 if (dr != NULL) { in nd6_ra_input() 657 dr->is_reachable = TRUE; in nd6_ra_input() 764 (void) prelist_update(&pr, dr, m, mcast); in nd6_ra_input() 856 if (dr && dr->stateflags & NDDRF_MAPPED) { in nd6_ra_input() 857 saddr6 = dr->rtaddr_mapped; in nd6_ra_input() [all …]
|
| H A D | nd6_rti.c | 103 nd6_rtilist_update(struct nd_route_info *new_rti, struct nd_defrouter *dr) in nd6_rtilist_update() argument 108 VERIFY(new_rti != NULL && dr != NULL); in nd6_rtilist_update() 112 (void)defrtrlist_update(dr, &rti->nd_rti_router_list); in nd6_rtilist_update() 121 } else if (dr->rtlifetime != 0) { in nd6_rtilist_update() 126 (void)defrtrlist_update(dr, &rti->nd_rti_router_list); in nd6_rtilist_update() 144 struct nd_defrouter *dr = NULL; in nd6_rti_purge() local 147 TAILQ_FOREACH_SAFE(dr, &rti->nd_rti_router_list, dr_entry, ndr) { in nd6_rti_purge() 148 TAILQ_REMOVE(&rti->nd_rti_router_list, dr, dr_entry); in nd6_rti_purge() 149 defrtrlist_del(dr, &rti->nd_rti_router_list); in nd6_rti_purge() 150 NDDR_REMREF(dr); in nd6_rti_purge() [all …]
|
| H A D | nd6.c | 1171 struct nd_defrouter *__single dr = NULL; in nd6_service_expired_default_router() local 1180 TAILQ_FOREACH_SAFE(dr, &nd_defrouter_list, dr_entry, ndr) { in nd6_service_expired_default_router() 1182 if (dr->expire != 0 && dr->expire < timenow) { in nd6_service_expired_default_router() 1183 VERIFY(dr->ifp != NULL); in nd6_service_expired_default_router() 1184 in6_ifstat_inc(dr->ifp, ifs6_defrtr_expiry_cnt); in nd6_service_expired_default_router() 1185 if ((dr->stateflags & NDDRF_INELIGIBLE) == 0) { in nd6_service_expired_default_router() 1186 in6_event_enqueue_nwk_wq_entry(IN6_NDP_RTR_EXPIRY, dr->ifp, in nd6_service_expired_default_router() 1187 &dr->rtaddr, dr->rtlifetime); in nd6_service_expired_default_router() 1189 if (dr->ifp != NULL && in nd6_service_expired_default_router() 1190 dr->ifp->if_type == IFT_CELLULAR) { in nd6_service_expired_default_router() [all …]
|
| H A D | in6_src.c | 287 struct nd_defrouter *__single dr = NULL; in in6_selectsrc_core() local 328 dr = defrouter_lookup(NULL, in in6_selectsrc_core() 496 if (dr != NULL && ia_best->ia6_ndpr != ia->ia6_ndpr) { in in6_selectsrc_core() 521 ia_best_has_prefix = (pfxrtr_lookup(p_ia_best_prefix, dr) != NULL); in in6_selectsrc_core() 527 ia_has_prefix = (pfxrtr_lookup(p_ia_prefix, dr) != NULL); in in6_selectsrc_core() 721 if (dr != NULL) { in in6_selectsrc_core() 722 NDDR_REMREF(dr); in in6_selectsrc_core()
|
| H A D | nd6_nbr.c | 1316 struct nd_defrouter *__single dr; in nd6_na_input() local 1328 dr = defrouter_lookup(NULL, in6, rt_ifp); in nd6_na_input() 1329 if (dr) { in nd6_na_input() 1330 TAILQ_REMOVE(&nd_defrouter_list, dr, dr_entry); in nd6_na_input() 1331 defrtrlist_del(dr, NULL); in nd6_na_input() 1332 NDDR_REMREF(dr); /* remove list reference */ in nd6_na_input() 1333 NDDR_REMREF(dr); in nd6_na_input()
|