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

12

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Din_gif.c196 (sc->gif_ro.ro_rt != NULL &&
197 (sc->gif_ro.ro_rt->generation_id != route_generation ||
198 sc->gif_ro.ro_rt->rt_ifp == ifp))) {
203 if (sc->gif_ro.ro_rt) {
204 rtfree(sc->gif_ro.ro_rt);
205 sc->gif_ro.ro_rt = NULL;
212 if (sc->gif_ro.ro_rt == NULL) {
214 if (sc->gif_ro.ro_rt == NULL) {
220 if (sc->gif_ro.ro_rt->rt_ifp == ifp) {
225 ifp->if_mtu = sc->gif_ro.ro_rt
[all...]
H A Dip_flow.c171 rt = ipf->ipf_ro.ro_rt;
222 ipf->ipf_ro.ro_rt->rt_use += ipf->ipf_uses;
239 rtfree(ipf->ipf_ro.ro_rt);
258 if ((ipf->ipf_ro.ro_rt->rt_flags & RTF_UP) == 0)
282 rtfree(ipf->ipf_ro.ro_rt);
283 ipf->ipf_ro.ro_rt = NULL;
302 ipf->ipf_ro.ro_rt->rt_use += ipf->ipf_uses;
348 rtfree(ipf->ipf_ro.ro_rt);
349 ipf->ipf_ro.ro_rt = NULL;
359 rtref(ro->ro_rt);
[all...]
H A Dip_output.c351 if (ro->ro_rt != NULL)
352 ia = (struct in_ifaddr *)ro->ro_rt->rt_ifa;
430 if (ro->ro_rt != NULL) {
431 if (ro->ro_rt->generation_id != route_generation &&
439 if ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
442 rtfree_locked(ro->ro_rt);
443 ro->ro_rt = NULL;
450 if (!select_srcif && ro->ro_rt != NULL &&
451 ro->ro_rt->generation_id != route_generation)
452 ro->ro_rt
[all...]
H A Dkpi_ipfilter.c306 if (ro.ro_rt == NULL) {
319 if (ro.ro_rt) {
320 rtfree(ro.ro_rt);
321 ro.ro_rt = NULL;
386 if (ro.ro_rt == NULL) {
395 if (ro.ro_rt) {
396 rtfree(ro.ro_rt);
397 ro.ro_rt = NULL;
H A Dip_input.c1026 if (ipforward_rt.ro_rt != NULL) {
1027 rtfree(ipforward_rt.ro_rt);
1028 ipforward_rt.ro_rt = NULL;
1895 if (ipforward_rt->ro_rt != NULL) {
1896 rtfree(ipforward_rt->ro_rt);
1897 ipforward_rt->ro_rt = NULL;
1921 if (rt->ro_rt == 0 || dst.s_addr != sin->sin_addr.s_addr ||
1922 rt->ro_rt->generation_id != route_generation) {
1923 if (rt->ro_rt) {
1924 rtfree_locked(rt->ro_rt);
[all...]
H A Din_pcb.c636 if (ro->ro_rt &&
641 ro->ro_rt->generation_id != route_generation)) {
642 rtfree_locked(ro->ro_rt);
643 ro->ro_rt = (struct rtentry *)0;
646 (ro->ro_rt == (struct rtentry *)0 ||
647 ro->ro_rt->rt_ifp == 0)) {
662 if (ro->ro_rt && !(ro->ro_rt->rt_ifp->if_flags & IFF_LOOPBACK)) {
663 ia = ifatoia(ro->ro_rt->rt_ifa);
838 if ((rt = inp->inp_route.ro_rt) !
[all...]
H A Dtcp_subr.c629 ro6 && ro6->ro_rt ?
630 ro6->ro_rt->rt_ifp :
653 if (ro6 == &sro6 && ro6->ro_rt) {
654 rtfree(ro6->ro_rt);
655 ro6->ro_rt = NULL;
664 if (ro == &sro && ro->ro_rt) {
665 rtfree(ro->ro_rt);
666 ro->ro_rt = NULL;
833 if ((rt = inp->in6p_route.ro_rt) == NULL)
841 rt = inp->inp_route.ro_rt;
[all...]
H A Dudp_usrreq.c1042 if (inp->inp_route.ro_rt && inp->inp_route.ro_rt->generation_id != route_generation) {
1051 rtfree(inp->inp_route.ro_rt);
1052 inp->inp_route.ro_rt = (struct rtentry *)0;
1170 ro.ro_rt = NULL;
1181 if (ro.ro_rt != NULL) {
1182 rtfree(ro.ro_rt);
1183 ro.ro_rt = NULL;
H A Dtcp_output.c314 rt = tp->t_inpcb->inp_route.ro_rt;
360 rt = tp->t_inpcb->inp_route.ro_rt;
1424 tp->t_inpcb->in6p_route.ro_rt ?
1425 tp->t_inpcb->in6p_route.ro_rt->rt_ifp
1448 tp->t_inpcb->in6p_route.ro_rt ?
1449 tp->t_inpcb->in6p_route.ro_rt->rt_ifp
H A Dip_dummynet.c480 if (tmp_rt.ro_rt) {
481 rtfree(tmp_rt.ro_rt);
482 tmp_rt.ro_rt = NULL;
1250 if (fwa->ro->ro_rt)
1251 rtref(fwa->ro->ro_rt);
1368 if (n->ro.ro_rt) { \
1369 rtfree(n->ro.ro_rt); \
1370 n->ro.ro_rt = NULL; \
H A Draw_ip.c381 if (inp->inp_route.ro_rt && inp->inp_route.ro_rt->generation_id != route_generation) {
382 rtfree(inp->inp_route.ro_rt);
383 inp->inp_route.ro_rt = (struct rtentry *)0;
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Din6_gif.c178 (sc->gif_ro6.ro_rt != NULL &&
179 (sc->gif_ro6.ro_rt->generation_id != route_generation ||
180 sc->gif_ro6.ro_rt->rt_ifp == ifp))) {
186 if (sc->gif_ro6.ro_rt) {
187 rtfree(sc->gif_ro6.ro_rt);
188 sc->gif_ro6.ro_rt = NULL;
195 if (sc->gif_ro6.ro_rt == NULL) {
197 if (sc->gif_ro6.ro_rt == NULL) {
203 if (sc->gif_ro6.ro_rt->rt_ifp == ifp) {
208 ifp->if_mtu = sc->gif_ro6.ro_rt
[all...]
H A Dip6_forward.c310 if (ip6forward_rt->ro_rt == 0 ||
311 (ip6forward_rt->ro_rt->rt_flags & RTF_UP) == 0) {
312 if (ip6forward_rt->ro_rt) {
313 rtfree(ip6forward_rt->ro_rt);
314 ip6forward_rt->ro_rt = 0;
321 if (ip6forward_rt->ro_rt == 0) {
335 } else if ((rt = ip6forward_rt->ro_rt) == 0 ||
337 if (ip6forward_rt->ro_rt) {
338 rtfree(ip6forward_rt->ro_rt);
339 ip6forward_rt->ro_rt
[all...]
H A Din6_src.c246 if (ro->ro_rt &&
247 (!(ro->ro_rt->rt_flags & RTF_UP) ||
251 rtfree_locked(ro->ro_rt);
252 ro->ro_rt = (struct rtentry *)0;
254 if (ro->ro_rt == (struct rtentry *)0 ||
255 ro->ro_rt->rt_ifp == 0) {
268 ro->ro_rt = rtalloc1_locked(
283 if (ro->ro_rt) {
284 ia6 = in6_ifawithscope(ro->ro_rt->rt_ifa->ifa_ifp, dst);
286 ia6 = ifatoia6(ro->ro_rt
[all...]
H A Din6_pcb.c426 if (inp->in6p_route.ro_rt)
427 ifp = inp->in6p_route.ro_rt->rt_ifp;
644 if (ro->ro_rt &&
646 rtfree(ro->ro_rt);
647 ro->ro_rt = (struct rtentry *)0;
649 if (ro->ro_rt == (struct rtentry *)0 ||
650 ro->ro_rt->rt_ifp == (struct ifnet *)0) {
660 ro->ro_rt =
674 if (ro->ro_rt) {
675 ia6 = in6_ifawithscope(ro->ro_rt
[all...]
H A Droute6.c232 if (ip6forward_rt.ro_rt != NULL) {
233 rtfree(ip6forward_rt.ro_rt);
234 ip6forward_rt.ro_rt = NULL;
H A Dip6_output.c557 if (ro->ro_rt && ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
560 ro->ro_rt->generation_id != route_generation)) {
561 rtfree(ro->ro_rt);
562 ro->ro_rt = (struct rtentry *)0;
564 if (ro->ro_rt == 0) {
640 if (ro->ro_rt == 0) {
647 if (ro->ro_rt == 0) {
654 ia = ifatoia6(ro->ro_rt->rt_ifa);
655 ifp = ro->ro_rt
[all...]
H A Draw_ip6.c390 if (in6p->in6p_route.ro_rt)
391 oifp = ifindex2ifnet[in6p->in6p_route.ro_rt->rt_ifp->if_index];
437 if (in6p->in6p_route.ro_rt && in6p->in6p_route.ro_rt->generation_id != route_generation) {
438 rtfree(in6p->in6p_route.ro_rt);
439 in6p->in6p_route.ro_rt = (struct rtentry *)0;
458 if (optp == &opt && optp->ip6po_rthdr && optp->ip6po_route.ro_rt) {
459 rtfree(optp->ip6po_route.ro_rt);
460 optp->ip6po_route.ro_rt = NULL;
H A Dfrag6.c169 if (ro.ro_rt
170 && ((ro.ro_rt->rt_flags & RTF_UP) == 0
172 rtfree(ro.ro_rt);
173 ro.ro_rt = (struct rtentry *)0;
175 if (ro.ro_rt == NULL) {
182 if (ro.ro_rt != NULL && ro.ro_rt->rt_ifa != NULL)
183 dstifp = ((struct in6_ifaddr *)ro.ro_rt->rt_ifa)->ia_ifp;
H A Dip6_input.c624 if (ip6_forward_rt.ro_rt != NULL &&
625 (ip6_forward_rt.ro_rt->rt_flags & RTF_UP) != 0 &&
632 if (ip6_forward_rt.ro_rt) {
635 rtfree(ip6_forward_rt.ro_rt);
636 ip6_forward_rt.ro_rt = 0;
674 if (ip6_forward_rt.ro_rt &&
675 (ip6_forward_rt.ro_rt->rt_flags &
678 !(ip6_forward_rt.ro_rt->rt_flags & RTF_WASCLONED) &&
681 !(ip6_forward_rt.ro_rt->rt_flags & RTF_CLONED) &&
690 &rt6_key(ip6_forward_rt.ro_rt)
[all...]
H A Dudp6_output.c300 in6p->in6p_route.ro_rt ?
301 in6p->in6p_route.ro_rt->rt_ifp : NULL);
H A Dipsec.c2936 if (state->ro->ro_rt
2937 && ((state->ro->ro_rt->rt_flags & RTF_UP) == 0
2939 rtfree(state->ro->ro_rt);
2940 state->ro->ro_rt = NULL;
2942 if (state->ro->ro_rt == 0) {
2948 if (state->ro->ro_rt == 0) {
2955 if (state->ro->ro_rt->rt_flags & RTF_GATEWAY) {
2956 state->dst = (struct sockaddr *)state->ro->ro_rt->rt_gateway;
3370 if (ro4->ro_rt
3371 && ((ro4->ro_rt
[all...]
H A Dicmp6.c2088 if (icmp6_reflect_rt.ro_rt == 0 ||
2090 if (icmp6_reflect_rt.ro_rt) {
2091 rtfree(icmp6_reflect_rt.ro_rt);
2092 icmp6_reflect_rt.ro_rt = 0;
2099 rtalloc_ign((struct route *)&icmp6_reflect_rt.ro_rt,
2103 if (icmp6_reflect_rt.ro_rt == 0)
2106 if ((icmp6_reflect_rt.ro_rt->rt_flags & RTF_HOST)
2107 && mtu < icmp6_reflect_rt.ro_rt->rt_ifp->if_mtu)
2108 mtu = icmp6_reflect_rt.ro_rt->rt_rmx.rmx_mtu;
2149 if (ro.ro_rt) {
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dif_stf.c543 if (sc->sc_ro.ro_rt) {
544 rtfree(sc->sc_ro.ro_rt);
545 sc->sc_ro.ro_rt = NULL;
549 if (sc->sc_ro.ro_rt == NULL) {
551 if (sc->sc_ro.ro_rt == NULL) {
H A Droute.h85 struct rtentry *ro_rt; member in struct:route

Completed in 177 milliseconds

12