Searched refs:dr (Results 1 – 5 of 5) sorted by relevance
| /xnu-10063.101.15/bsd/netinet6/ |
| H A D | nd6_rtr.c | 353 struct nd_defrouter *dr = NULL; in nd6_ra_input() local 594 dr = defrtrlist_update(&dr0, NULL); in nd6_ra_input() 595 if (dr != NULL) { in nd6_ra_input() 596 dr->is_reachable = TRUE; in nd6_ra_input() 636 dr = defrtrlist_update(&dr0, NULL); in nd6_ra_input() 637 if (dr != NULL) { in nd6_ra_input() 638 dr->is_reachable = TRUE; in nd6_ra_input() 745 (void) prelist_update(&pr, dr, m, mcast); in nd6_ra_input() 838 if (dr && dr->stateflags & NDDRF_MAPPED) { in nd6_ra_input() 839 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()
|
| H A D | nd6.c | 1166 struct nd_defrouter *dr = NULL; in nd6_service_expired_default_router() local 1175 TAILQ_FOREACH_SAFE(dr, &nd_defrouter_list, dr_entry, ndr) { in nd6_service_expired_default_router() 1177 if (dr->expire != 0 && dr->expire < timenow) { in nd6_service_expired_default_router() 1178 VERIFY(dr->ifp != NULL); in nd6_service_expired_default_router() 1179 in6_ifstat_inc(dr->ifp, ifs6_defrtr_expiry_cnt); in nd6_service_expired_default_router() 1180 if ((dr->stateflags & NDDRF_INELIGIBLE) == 0) { in nd6_service_expired_default_router() 1181 in6_event_enqueue_nwk_wq_entry(IN6_NDP_RTR_EXPIRY, dr->ifp, in nd6_service_expired_default_router() 1182 &dr->rtaddr, dr->rtlifetime); in nd6_service_expired_default_router() 1184 if (dr->ifp != NULL && in nd6_service_expired_default_router() 1185 dr->ifp->if_type == IFT_CELLULAR) { in nd6_service_expired_default_router() [all …]
|
| H A D | in6_src.c | 288 struct nd_defrouter *dr = NULL; in in6_selectsrc_core() local 330 dr = defrouter_lookup(NULL, in in6_selectsrc_core() 492 if (dr != NULL && ia_best->ia6_ndpr != ia->ia6_ndpr) { in in6_selectsrc_core() 517 ia_best_has_prefix = (pfxrtr_lookup(p_ia_best_prefix, dr) != NULL); in in6_selectsrc_core() 523 ia_has_prefix = (pfxrtr_lookup(p_ia_prefix, dr) != NULL); in in6_selectsrc_core() 717 if (dr != NULL) { in in6_selectsrc_core() 718 NDDR_REMREF(dr); in in6_selectsrc_core()
|
| H A D | nd6_nbr.c | 1285 struct nd_defrouter *dr; in nd6_na_input() local 1297 dr = defrouter_lookup(NULL, in6, rt_ifp); in nd6_na_input() 1298 if (dr) { in nd6_na_input() 1299 TAILQ_REMOVE(&nd_defrouter_list, dr, dr_entry); in nd6_na_input() 1300 defrtrlist_del(dr, NULL); in nd6_na_input() 1301 NDDR_REMREF(dr); /* remove list reference */ in nd6_na_input() 1302 NDDR_REMREF(dr); in nd6_na_input()
|