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

12

/xnu-2782.1.97/bsd/netinet6/
H A Din6_src.c415 if (ro != NULL && ro->ro_rt != NULL && ia_best->ia6_ndpr != NULL &&
434 else if (rta == ro->ro_rt && rtb != ro->ro_rt)
436 else if (rta != ro->ro_rt && rtb == ro->ro_rt)
739 if (ro->ro_rt->rt_ifp->if_flags & IFF_LOOPBACK)
753 if (ifscope != IFSCOPE_NONE || (ro != NULL && ro->ro_rt != NULL)) {
757 rt_ifp = (ro->ro_rt != NULL) ? ro->ro_rt->rt_ifp : NULL;
794 if (ro->ro_rt !
[all...]
H A Din6_gif.c196 (sc->gif_ro6.ro_rt != NULL && sc->gif_ro6.ro_rt->rt_ifp == ifp)) {
208 if (sc->gif_ro6.ro_rt == NULL) {
210 if (sc->gif_ro6.ro_rt == NULL) {
214 RT_LOCK(sc->gif_ro6.ro_rt);
216 if (sc->gif_ro6.ro_rt->rt_ifp == ifp) {
217 RT_UNLOCK(sc->gif_ro6.ro_rt);
222 ifp->if_mtu = sc->gif_ro6.ro_rt->rt_ifp->if_mtu
225 RT_UNLOCK(sc->gif_ro6.ro_rt);
H A Dudp6_output.c337 ip6->ip6_hlim = in6_selecthlim(in6p, in6p->in6p_route.ro_rt ?
338 in6p->in6p_route.ro_rt->rt_ifp : NULL);
375 rt_key(in6p->in6p_route.ro_rt)->sa_family != AF_INET6)
415 if (in6p->in6p_route.ro_rt != NULL) {
417 ro_rt->rt_ifp);
419 ro_rt->rt_ifp));
421 ro_rt->rt_ifp));
446 if (in6p->in6p_route.ro_rt != NULL) {
447 struct rtentry *rt = in6p->in6p_route.ro_rt;
H A Dip6_forward.c155 (rt = ip6forward_rt->ro_rt) != NULL && (rt->rt_flags & RTF_PROXY)) {
157 if ((rt = ip6forward_rt->ro_rt) != NULL)
171 if (ifscope != IFSCOPE_NONE && (rt = ip6forward_rt->ro_rt) != NULL) {
394 if ((rt = ip6forward_rt->ro_rt) != NULL) {
400 VERIFY(rt == NULL || rt == ip6forward_rt->ro_rt);
416 if ((rt = ip6forward_rt->ro_rt) != NULL) {
449 if ((rt = ip6forward_rt->ro_rt) == NULL) {
H A Dip6_input.c842 if (rin6.ro_rt != NULL)
843 RT_LOCK_SPIN(rin6.ro_rt);
867 if (rin6.ro_rt != NULL &&
868 (rin6.ro_rt->rt_flags & (RTF_HOST|RTF_GATEWAY)) == RTF_HOST &&
870 !(rin6.ro_rt->rt_flags & RTF_WASCLONED) &&
872 rin6.ro_rt->rt_ifp->if_type == IFT_LOOP) {
873 ia6 = (struct in6_ifaddr *)rin6.ro_rt->rt_ifa;
890 RT_UNLOCK(rin6.ro_rt);
893 RT_UNLOCK(rin6.ro_rt);
902 if (rin6.ro_rt !
[all...]
H A Draw_ip6.c498 if (in6p->in6p_route.ro_rt != NULL) {
499 RT_LOCK(in6p->in6p_route.ro_rt);
500 if (in6p->in6p_route.ro_rt->rt_ifp != NULL)
501 index = in6p->in6p_route.ro_rt->rt_ifp->if_index;
502 RT_UNLOCK(in6p->in6p_route.ro_rt);
594 if (in6p->in6p_route.ro_rt != NULL) {
595 struct rtentry *rt = in6p->in6p_route.ro_rt;
916 if (inp->in6p_route.ro_rt != NULL)
917 outif = inp->in6p_route.ro_rt->rt_ifp;
H A Dipsec.c3080 if (ro4->ro_rt != NULL) {
3081 RT_LOCK(ro4->ro_rt);
3085 if (ro4->ro_rt != NULL)
3086 RT_UNLOCK(ro4->ro_rt);
3089 if (ro4->ro_rt == 0) {
3094 if (ro4->ro_rt == 0) {
3101 RT_LOCK(ro4->ro_rt);
3113 if (ro4->ro_rt->rt_flags & RTF_GATEWAY)
3114 dst4 = (struct sockaddr_in *)(void *)ro4->ro_rt->rt_gateway;
3115 RT_UNLOCK(ro4->ro_rt);
[all...]
H A Din6_pcb.c464 struct rtentry *rt = inp->in6p_route.ro_rt;
1046 if ((rt = in6p->in6p_route.ro_rt) != NULL) {
1333 if (src->ro_rt != NULL && rt_key(src->ro_rt)->sa_family != AF_INET6)
1347 if (src->ro_rt != NULL && rt_key(src->ro_rt)->sa_family != AF_INET6)
H A Dnd6_prproxy.c560 if ((rt = ro6->ro_rt) != NULL)
574 if ((rt = ro6->ro_rt) == NULL)
603 if ((rt = ro6->ro_rt) != NULL) {
692 ro6->ro_rt = rt; /* refcnt held by rtalloc1 */
697 VERIFY(rt == NULL && ro6->ro_rt == NULL);
714 ro6->ro_rt = rt; /* refcnt held by rtalloc1 */
717 VERIFY(rt != NULL || ro6->ro_rt == NULL);
H A Dip6_output.c259 * If ro is non-NULL and has valid ro->ro_rt, route lookup would be
260 * skipped and ro->ro_rt would be used. Otherwise the result of route
261 * lookup is stored in ro->ro_rt.
907 if (ro->ro_rt != NULL)
908 RT_LOCK_ASSERT_NOTHELD(ro->ro_rt);
952 if (ro->ro_rt == NULL) {
1154 if (opt != NULL && opt->ip6po_nextroute.ro_rt) {
1451 if (ro->ro_rt)
1452 RT_LOCK_ASSERT_NOTHELD(ro->ro_rt);
1453 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt, ad
[all...]
H A Din6.h461 void *ro_rt; member in struct:route_in6_old
481 struct rtentry *ro_rt; member in struct:route_in6
/xnu-2782.1.97/bsd/netinet/
H A Dip_output.c238 * Route ro MUST be non-NULL; if ro->ro_rt is valid, route lookup would be
239 * skipped and ro->ro_rt would be used. Otherwise the result of route
240 * lookup is stored in ro->ro_rt.
477 if (ro->ro_rt != NULL) {
478 RT_LOCK_SPIN(ro->ro_rt);
479 ia = (struct in_ifaddr *)ro->ro_rt->rt_ifa;
482 RT_CONVERT_LOCK(ro->ro_rt);
485 RT_UNLOCK(ro->ro_rt);
585 if (ro->ro_rt != NULL) {
611 if (!ipobf.select_srcif && ro->ro_rt !
[all...]
H A Din_gif.c197 (sc->gif_ro.ro_rt != NULL && sc->gif_ro.ro_rt->rt_ifp == ifp)) {
208 if (sc->gif_ro.ro_rt == NULL) {
210 if (sc->gif_ro.ro_rt == NULL) {
216 RT_LOCK(sc->gif_ro.ro_rt);
217 if (sc->gif_ro.ro_rt->rt_ifp == ifp) {
218 RT_UNLOCK(sc->gif_ro.ro_rt);
223 ifp->if_mtu = sc->gif_ro.ro_rt->rt_ifp->if_mtu
226 RT_UNLOCK(sc->gif_ro.ro_rt);
H A Din_pcb.c1060 if (ro->ro_rt != NULL)
1061 RT_LOCK_SPIN(ro->ro_rt);
1065 if (ro->ro_rt != NULL)
1066 RT_UNLOCK(ro->ro_rt);
1070 (ro->ro_rt == NULL || ro->ro_rt->rt_ifp == NULL)) {
1071 if (ro->ro_rt != NULL)
1072 RT_UNLOCK(ro->ro_rt);
1080 if (ro->ro_rt != NULL)
1081 RT_LOCK_SPIN(ro->ro_rt);
[all...]
H A Dip_input.c2394 if (ro.ro_rt == NULL) {
2399 RT_LOCK(ro.ro_rt);
2400 if ((rt_ifa = ro.ro_rt->rt_ifa) != NULL)
2402 RT_UNLOCK(ro.ro_rt);
2581 if (src->ro_rt != NULL && rt_key(src->ro_rt)->sa_family != AF_INET)
2598 if (src->ro_rt != NULL && rt_key(src->ro_rt)->sa_family != AF_INET)
2700 if (fwd_rt.ro_rt == NULL) {
2705 rt = fwd_rt.ro_rt;
[all...]
H A Dtcp_output.c385 rt = inp->inp_route.ro_rt;
560 nstat_route_tx(inp->inp_route.ro_rt, 1,
1510 nstat_route_tx(inp->inp_route.ro_rt, 1,
1999 ip6->ip6_hlim = in6_selecthlim(inp, inp->in6p_route.ro_rt ?
2000 inp->in6p_route.ro_rt->rt_ifp : NULL);
2499 if (ro6.ro_rt != NULL && (outif = ro6.ro_rt->rt_ifp) !=
2504 if (ro.ro_rt != NULL && (outif = ro.ro_rt->rt_ifp) !=
2522 tp->t_inpcb->inp_route.ro_rt !
[all...]
H A Dtcp_subr.c762 ro6 && ro6->ro_rt ?
763 ro6->ro_rt->rt_ifp :
827 if (tp != NULL && ro6 != NULL && ro6->ro_rt != NULL &&
828 (outif = ro6->ro_rt->rt_ifp) !=
858 if (tp != NULL && sro.ro_rt != NULL &&
859 (outif = sro.ro_rt->rt_ifp) !=
1072 rt = ro->ro_rt;
2225 if ((rt = ro->ro_rt) != NULL)
2254 if ((rt = ro->ro_rt) != NULL)
2321 if ((rt = ro6->ro_rt) !
[all...]
H A Dudp_usrreq.c1619 if (ro.ro_rt != NULL) {
1620 cell = IFNET_IS_CELLULAR(ro.ro_rt->rt_ifp);
1621 wifi = (!cell && IFNET_IS_WIFI(ro.ro_rt->rt_ifp));
1622 wired = (!wifi && IFNET_IS_WIRED(ro.ro_rt->rt_ifp));
1654 } else if (inp->inp_route.ro_rt != NULL) {
1655 struct rtentry *rt = inp->inp_route.ro_rt;
H A Draw_ip.c488 if (inp->inp_route.ro_rt != NULL) {
489 struct rtentry *rt = inp->inp_route.ro_rt;
H A Dtcp_input.c643 nstat_route_rx(inp->inp_route.ro_rt,
672 nstat_route_rx(inp->inp_route.ro_rt, 1, *tlenp,
2986 nstat_route_connect_success(tp->t_inpcb->inp_route.ro_rt);
3211 nstat_route_rx(tp->t_inpcb->inp_route.ro_rt,
3279 nstat_route_rx(tp->t_inpcb->inp_route.ro_rt, 1,
3450 nstat_route_connect_success(tp->t_inpcb->inp_route.ro_rt);
4801 nstat_route_rtt(tp->t_inpcb->inp_route.ro_rt, tp->t_srtt,
/xnu-2782.1.97/bsd/net/
H A Droute.h96 void *ro_rt; member in struct:route_old
130 struct rtentry *ro_rt; member in struct:route
139 ((_ro)->ro_rt == NULL || \
140 ((_ro)->ro_rt->rt_flags & (RTF_UP|RTF_CONDEMNED)) != RTF_UP || \
141 RT_GENID_OUTOFSYNC((_ro)->ro_rt))
144 if ((_ro)->ro_rt != NULL) { \
145 RT_LOCK_ASSERT_NOTHELD((_ro)->ro_rt); \
147 rtfree_locked((_ro)->ro_rt); \
149 rtfree((_ro)->ro_rt); \
150 (_ro)->ro_rt
[all...]
H A Dif_utun_crypto_ipsec.c765 if (ro->ro_rt) {
766 RT_LOCK(ro->ro_rt);
770 if (ro->ro_rt != NULL)
771 RT_UNLOCK(ro->ro_rt);
774 if (ro->ro_rt == NULL) {
779 if (ro->ro_rt) {
780 RT_LOCK(ro->ro_rt);
788 if (ro->ro_rt->rt_flags & RTF_GATEWAY) {
789 dst4 = (struct sockaddr_in *)(void *)ro->ro_rt->rt_gateway;
791 RT_UNLOCK(ro->ro_rt);
[all...]
H A Dnetsrc.c203 ro.ro_rt = rt_lookup(TRUE, (struct sockaddr *)dstsin6, NULL,
206 if (!ro.ro_rt)
H A Droute.c410 _CASSERT(offsetof(struct route, ro_rt) ==
411 offsetof(struct route_in6, ro_rt));
855 if ((rt = ro->ro_rt) != NULL) {
864 ro->ro_rt = rtalloc1_common_locked(&ro->ro_dst, 1, ignore, ifscope);
865 if (ro->ro_rt != NULL) {
866 RT_GENID_SYNC(ro->ro_rt);
867 RT_LOCK_ASSERT_NOTHELD(ro->ro_rt);
3531 if (dst->ro_rt != NULL)
3532 RT_ADDREF(dst->ro_rt);
3543 if (dst->ro_rt
[all...]
H A Ddlil.c6192 if (src_rt.ro_rt == NULL) {
6193 src_rt.ro_rt = rtalloc1_scoped((struct sockaddr *)dst,
6196 if (src_rt.ro_rt != NULL) {
6198 struct rtentry *rte = src_rt.ro_rt;
6201 src_rt.ro_rt = rte;
6206 return (src_rt.ro_rt);
6229 if (src_rt.ro_rt == NULL) {
6230 src_rt.ro_rt = rtalloc1_scoped(
6234 if (src_rt.ro_rt != NULL) {
6236 struct rtentry *rte = src_rt.ro_rt;
[all...]

Completed in 217 milliseconds

12