Searched refs:ro_rt (Results 1 - 25 of 41) sorted by relevance

12

/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_src.c694 if (!select_srcif || (ro != NULL && ro->ro_rt != NULL &&
695 (ro->ro_rt->rt_flags & RTF_UP) &&
696 ro->ro_rt->generation_id == route_generation &&
698 if (ro != NULL && ro->ro_rt != NULL) {
699 ifa = ro->ro_rt->rt_ifa;
712 if (ifscope != IFSCOPE_NONE || (ro != NULL && ro->ro_rt != NULL)) {
716 rt_ifp = (ro->ro_rt != NULL) ? ro->ro_rt->rt_ifp : NULL;
730 ro->ro_rt->generation_id != route_generation)
753 if (ro->ro_rt !
[all...]
H A Din6_gif.c202 (sc->gif_ro6.ro_rt != NULL &&
203 (sc->gif_ro6.ro_rt->generation_id != route_generation ||
204 sc->gif_ro6.ro_rt->rt_ifp == ifp))) {
210 if (sc->gif_ro6.ro_rt) {
211 rtfree(sc->gif_ro6.ro_rt);
212 sc->gif_ro6.ro_rt = NULL;
219 if (sc->gif_ro6.ro_rt == NULL) {
221 if (sc->gif_ro6.ro_rt == NULL) {
225 RT_LOCK(sc->gif_ro6.ro_rt);
227 if (sc->gif_ro6.ro_rt
[all...]
H A Dip6_forward.c154 if (ifscope != IFSCOPE_NONE && (rt = ip6forward_rt->ro_rt) != NULL) {
159 rt = ip6forward_rt->ro_rt = NULL;
342 if (state.ro.ro_rt) {
343 rtfree(state.ro.ro_rt);
344 state.ro.ro_rt = NULL;
378 if ((rt = ip6forward_rt->ro_rt) != NULL) {
395 ip6forward_rt->ro_rt = NULL;
400 if ((rt = ip6forward_rt->ro_rt) != NULL) {
425 ip6forward_rt->ro_rt = NULL;
434 if ((rt = ip6forward_rt->ro_rt)
[all...]
H A Droute6.c285 if (ip6forward_rt.ro_rt != NULL) {
286 rtfree(ip6forward_rt.ro_rt);
287 ip6forward_rt.ro_rt = NULL;
H A Dudp6_output.c351 in6p->in6p_route.ro_rt ?
352 in6p->in6p_route.ro_rt->rt_ifp : NULL);
419 if (in6p->in6p_route.ro_rt != NULL) {
420 struct rtentry *rt = in6p->in6p_route.ro_rt;
433 rtfree(in6p->in6p_route.ro_rt);
434 in6p->in6p_route.ro_rt = NULL;
H A Draw_ip6.c480 if (in6p->in6p_route.ro_rt != NULL) {
481 RT_LOCK(in6p->in6p_route.ro_rt);
482 if (in6p->in6p_route.ro_rt->rt_ifp != NULL)
483 index = in6p->in6p_route.ro_rt->rt_ifp->if_index;
484 RT_UNLOCK(in6p->in6p_route.ro_rt);
541 if (in6p->in6p_route.ro_rt != NULL &&
542 in6p->in6p_route.ro_rt->generation_id != route_generation) {
543 rtfree(in6p->in6p_route.ro_rt);
544 in6p->in6p_route.ro_rt = NULL;
565 if (in6p->in6p_route.ro_rt !
[all...]
H A Dipsec.c3158 if (ro4->ro_rt != NULL) {
3159 RT_LOCK(ro4->ro_rt);
3161 if (ro4->ro_rt != NULL &&
3162 (ro4->ro_rt->generation_id != route_generation ||
3163 !(ro4->ro_rt->rt_flags & RTF_UP) ||
3165 RT_UNLOCK(ro4->ro_rt);
3166 rtfree(ro4->ro_rt);
3167 ro4->ro_rt = NULL;
3169 if (ro4->ro_rt == 0) {
3174 if (ro4->ro_rt
[all...]
H A Dip6_output.c798 if (ro && ro->ro_rt)
799 RT_LOCK_ASSERT_NOTHELD(ro->ro_rt);
837 if (ro->ro_rt != NULL && (!(ro->ro_rt->rt_flags & RTF_UP) ||
840 ro->ro_rt->generation_id != route_generation)) {
841 rtfree(ro->ro_rt);
842 ro->ro_rt = NULL;
844 if (ro->ro_rt == NULL) {
1031 if (opt && opt->ip6po_nextroute.ro_rt) {
1353 if (ro->ro_rt)
[all...]
H A Din6_pcb.c445 struct rtentry *rt = inp->in6p_route.ro_rt;
608 if (inp->in6p_route.ro_rt) {
609 rtfree(inp->in6p_route.ro_rt);
610 inp->in6p_route.ro_rt = NULL;
987 if ((rt = in6p->in6p_route.ro_rt) != NULL) {
988 in6p->in6p_route.ro_rt = NULL;
1026 if (inp->in6p_route.ro_rt) {
1027 rtfree(inp->in6p_route.ro_rt);
1028 inp->in6p_route.ro_rt = 0;
1269 if (src->ro_rt !
[all...]
H A Dfrag6.c207 if (ro.ro_rt != NULL) {
208 RT_LOCK(ro.ro_rt);
209 if ((ifa = ro.ro_rt->rt_ifa) != NULL) {
211 dstifp = ((struct in6_ifaddr *)ro.ro_rt->rt_ifa)->ia_ifp;
213 RT_UNLOCK(ro.ro_rt);
214 rtfree(ro.ro_rt);
215 ro.ro_rt = NULL;
H A Dip6_input.c823 if (ip6_forward_rt.ro_rt != NULL)
824 RT_LOCK(ip6_forward_rt.ro_rt);
848 if (ip6_forward_rt.ro_rt != NULL &&
849 (ip6_forward_rt.ro_rt->rt_flags &
852 !(ip6_forward_rt.ro_rt->rt_flags & RTF_WASCLONED) &&
861 &rt6_key(ip6_forward_rt.ro_rt)->sin6_addr)
863 ip6_forward_rt.ro_rt->rt_ifp->if_type == IFT_LOOP) {
864 ia6 = (struct in6_ifaddr *)ip6_forward_rt.ro_rt->rt_ifa;
875 RT_CONVERT_LOCK(ip6_forward_rt.ro_rt); /* just in case */
884 RT_UNLOCK(ip6_forward_rt.ro_rt);
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Dif_utun_crypto_ipsec.c736 if (ro_copy.ro_rt != NULL) {
737 rtfree(ro_copy.ro_rt);
766 if (ro->ro_rt) {
767 RT_LOCK(ro->ro_rt);
769 if (ro->ro_rt != NULL &&
770 (ro->ro_rt->generation_id != route_generation ||
771 !(ro->ro_rt->rt_flags & RTF_UP) ||
773 RT_UNLOCK(ro->ro_rt);
774 rtfree(ro->ro_rt);
775 ro->ro_rt
[all...]
H A Dnetsrc.c203 ro.ro_rt = rt_lookup(TRUE, (struct sockaddr *)dstsin6, NULL,
206 if (!ro.ro_rt)
210 if (ro.ro_rt)
211 rtfree(ro.ro_rt);
H A Ddlil.c4538 if (ifp->if_fwd_route.ro_rt != NULL)
4539 rtfree(ifp->if_fwd_route.ro_rt);
4541 if (ifp->if_src_route.ro_rt != NULL)
4542 rtfree(ifp->if_src_route.ro_rt);
4544 if (ifp->if_src_route6.ro_rt != NULL)
4545 rtfree(ifp->if_src_route6.ro_rt);
5142 if (ifp->if_fwd_route.ro_rt != NULL)
5143 rtfree(ifp->if_fwd_route.ro_rt);
5145 if (ifp->if_src_route.ro_rt != NULL)
5146 rtfree(ifp->if_src_route.ro_rt);
[all...]
H A Droute.c806 if ((rt = ro->ro_rt) != NULL) {
815 ro->ro_rt = NULL;
817 ro->ro_rt = rtalloc1_common_locked(&ro->ro_dst, 1, ignore, ifscope);
818 if (ro->ro_rt != NULL) {
819 ro->ro_rt->generation_id = route_generation;
820 RT_LOCK_ASSERT_NOTHELD(ro->ro_rt);
3280 if (dst->ro_rt != NULL)
3281 RT_ADDREF(dst->ro_rt);
3291 if (dst->ro_rt == NULL) {
3298 } else if (src->ro_rt !
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_output.c431 if (ro->ro_rt != NULL) {
432 RT_LOCK_SPIN(ro->ro_rt);
433 ia = (struct in_ifaddr *)ro->ro_rt->rt_ifa;
436 RT_CONVERT_LOCK(ro->ro_rt);
439 RT_UNLOCK(ro->ro_rt);
546 if (ro->ro_rt != NULL) {
547 if (ro->ro_rt->generation_id != route_generation &&
563 if ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
566 rtfree(ro->ro_rt);
567 ro->ro_rt
[all...]
H A Din_gif.c194 (sc->gif_ro.ro_rt != NULL &&
195 (sc->gif_ro.ro_rt->generation_id != route_generation ||
196 sc->gif_ro.ro_rt->rt_ifp == ifp))) {
201 if (sc->gif_ro.ro_rt) {
202 rtfree(sc->gif_ro.ro_rt);
203 sc->gif_ro.ro_rt = NULL;
210 if (sc->gif_ro.ro_rt == NULL) {
212 if (sc->gif_ro.ro_rt == NULL) {
218 RT_LOCK(sc->gif_ro.ro_rt);
219 if (sc->gif_ro.ro_rt
[all...]
H A Din_pcb.c751 if (ro->ro_rt != NULL)
752 RT_LOCK_SPIN(ro->ro_rt);
753 if (ro->ro_rt && (ro->ro_dst.sa_family != AF_INET ||
757 ro->ro_rt->generation_id != route_generation)) {
758 RT_UNLOCK(ro->ro_rt);
759 rtfree(ro->ro_rt);
760 ro->ro_rt = NULL;
763 (ro->ro_rt == NULL || ro->ro_rt->rt_ifp == NULL)) {
764 if (ro->ro_rt !
[all...]
H A Dip_input.c2120 if (ro.ro_rt == NULL)
2123 RT_LOCK(ro.ro_rt);
2124 if ((rt_ifa = ro.ro_rt->rt_ifa) != NULL)
2126 RT_UNLOCK(ro.ro_rt);
2127 rtfree(ro.ro_rt);
2276 if (ifp->if_fwd_route.ro_rt != NULL)
2277 rtfree(ifp->if_fwd_route.ro_rt);
2303 if (src->ro_rt != NULL && rt_key(src->ro_rt)->sa_family != AF_INET)
2320 if (src->ro_rt !
[all...]
H A Dkpi_ipfilter.c330 if (ro.ro_rt)
331 rtfree(ro.ro_rt);
401 if (ro.ro_rt)
402 rtfree(ro.ro_rt);
H A Draw_ip.c435 if (inp->inp_route.ro_rt != NULL &&
436 inp->inp_route.ro_rt->generation_id != route_generation) {
437 rtfree(inp->inp_route.ro_rt);
438 inp->inp_route.ro_rt = NULL;
463 if (inp->inp_route.ro_rt != NULL) {
464 struct rtentry *rt = inp->inp_route.ro_rt;
477 rtfree(inp->inp_route.ro_rt);
478 inp->inp_route.ro_rt = NULL;
H A Dudp_usrreq.c1377 if (inp->inp_route.ro_rt != NULL &&
1378 inp->inp_route.ro_rt->generation_id != route_generation) {
1403 if (inp->inp_route.ro_rt != NULL)
1404 rtfree(inp->inp_route.ro_rt);
1405 inp->inp_route.ro_rt = NULL;
1601 if (inp->inp_route.ro_rt != NULL) {
1602 rtfree(inp->inp_route.ro_rt);
1603 inp->inp_route.ro_rt = NULL;
1608 } else if (inp->inp_route.ro_rt != NULL) {
1609 struct rtentry *rt = inp->inp_route.ro_rt;
[all...]
H A Dtcp_subr.c730 ro6 && ro6->ro_rt ?
731 ro6->ro_rt->rt_ifp :
778 if (ro6->ro_rt != NULL) {
780 rtfree(ro6->ro_rt);
781 ro6->ro_rt = NULL;
782 } else if ((outif = ro6->ro_rt->rt_ifp) !=
808 if (sro.ro_rt != NULL &&
809 (outif = sro.ro_rt->rt_ifp) !=
814 } else if (sro.ro_rt != NULL) {
815 rtfree(sro.ro_rt);
[all...]
H A Dtcp_output.c359 rt = tp->t_inpcb->inp_route.ro_rt;
524 nstat_route_tx(tp->t_inpcb->inp_route.ro_rt, 1,
1313 nstat_route_tx(tp->t_inpcb->inp_route.ro_rt, 1,
1718 tp->t_inpcb->in6p_route.ro_rt ?
1719 tp->t_inpcb->in6p_route.ro_rt->rt_ifp
2170 if (ro6.ro_rt != NULL && (outif = ro6.ro_rt->rt_ifp) !=
2175 if (ro.ro_rt != NULL && (outif = ro.ro_rt->rt_ifp) !=
2193 tp->t_inpcb->inp_route.ro_rt !
[all...]
H A Dip_dummynet.c1117 if (tmp_rt.ro_rt) {
1118 rtfree(tmp_rt.ro_rt);
1119 tmp_rt.ro_rt = NULL;
1134 if (ro6.ro_rt)
1135 rtfree(ro6.ro_rt);
1650 if (fwa->fwa_ro->ro_rt)
1651 RT_ADDREF(fwa->fwa_ro->ro_rt);
1662 if (fwa->fwa_ro6->ro_rt)
1663 RT_ADDREF(fwa->fwa_ro6->ro_rt);
1667 if (fwa->fwa_ro6_pmtu->ro_rt)
[all...]

Completed in 231 milliseconds

12