Home
last modified time | relevance | path

Searched refs:ro_rt (Results 1 – 25 of 29) sorted by relevance

12

/mirbsd/src/sys/netipx/
Dipx_outputfl.c77 if (ro->ro_rt == NULL) {
98 } else if ((ro->ro_rt->rt_flags & RTF_UP) == 0) {
102 rtfree(ro->ro_rt);
103 ro->ro_rt = NULL;
106 if (ro->ro_rt == NULL || (ifp = ro->ro_rt->rt_ifp) == NULL) {
111 ro->ro_rt->rt_use++;
112 if (ro->ro_rt->rt_flags & (RTF_GATEWAY|RTF_HOST))
113 dst = (struct sockaddr_ipx *)ro->ro_rt->rt_gateway;
138 ro->ro_rt);
150 if (ro == &ipxroute && (flags & IPX_ROUTETOIF) == 0 && ro->ro_rt) {
[all …]
Dipx_pcb.c184 if (ro->ro_rt && ! (ro->ro_rt->rt_flags & RTF_HOST)) {
189 if (ro->ro_rt)
190 RTFREE(ro->ro_rt);
191 ro->ro_rt = (struct rtentry *)0;
197 (ro->ro_rt == (struct rtentry *)0 ||
198 ro->ro_rt->rt_ifp == (struct ifnet *)0)) {
217 if (ro->ro_rt && (ifp = ro->ro_rt->rt_ifp))
266 if (ipxp->ipxp_route.ro_rt)
267 rtfree(ipxp->ipxp_route.ro_rt);
349 if (ipxp->ipxp_route.ro_rt) {
[all …]
Dipx_ip.c342 if (ro.ro_rt == NULL || ro.ro_rt->rt_ifp == NULL) {
352 struct ifnet *ifp = ro.ro_rt->rt_ifp;
360 RTFREE(ro.ro_rt);
376 RTFREE(ro.ro_rt);
404 if (ro->ro_rt) {
405 RTFREE(ro->ro_rt);
406 ro->ro_rt = NULL;
449 ifn->ifen_route.ro_rt) {
450 RTFREE(ifn->ifen_route.ro_rt);
451 ifn->ifen_route.ro_rt = NULL;
Dipx_input.c362 if (ipx_droute.ro_rt &&
363 (ifp=ipx_droute.ro_rt->rt_ifp) &&
364 ipx_sroute.ro_rt &&
365 (ifp!=ipx_sroute.ro_rt->rt_ifp)) {
437 if (ro->ro_rt == 0 || ro->ro_rt->rt_ifp == 0) {
440 ro->ro_rt->rt_use++;
448 if (ro->ro_rt) {
449 RTFREE(ro->ro_rt);
/mirbsd/src/sys/net/
Dradix_mpath.c228 if (ro->ro_rt && ro->ro_rt->rt_ifp && (ro->ro_rt->rt_flags & RTF_UP))
230 ro->ro_rt = rtalloc1(&ro->ro_dst, 1);
232 if (!ro->ro_rt || !rn_mpath_next((struct radix_node *)ro->ro_rt))
236 rn0 = rn = (struct radix_node *)ro->ro_rt;
255 rtfree(ro->ro_rt);
256 ro->ro_rt = (struct rtentry *)rn;
257 ro->ro_rt->rt_refcnt++;
Dif_gre.c537 if (sc->route.ro_rt != 0) { in gre_ioctl()
539 RTFREE(sc->route.ro_rt); in gre_ioctl()
540 sc->route.ro_rt = (struct rtentry *) 0; in gre_ioctl()
544 if (sc->route.ro_rt == 0) in gre_ioctl()
656 if (ro->ro_rt == 0) in gre_compute_route()
664 if (ro->ro_rt->rt_ifp == &sc->sc_if) { in gre_compute_route()
665 RTFREE(ro->ro_rt); in gre_compute_route()
666 ro->ro_rt = (struct rtentry *) 0; in gre_compute_route()
Droute.c191 if (ro->ro_rt && ro->ro_rt->rt_ifp && (ro->ro_rt->rt_flags & RTF_UP)) in rtalloc_noclone()
193 ro->ro_rt = rtalloc2(&ro->ro_dst, 1, howstrict); in rtalloc_noclone()
252 if (ro->ro_rt && ro->ro_rt->rt_ifp && (ro->ro_rt->rt_flags & RTF_UP)) in rtalloc()
254 ro->ro_rt = rtalloc1(&ro->ro_dst, 1); in rtalloc()
Droute.h53 struct rtentry *ro_rt; member
/mirbsd/src/sys/netinet6/
Dip6_forward.c235 if (ip6_forward_rt.ro_rt == 0 ||
236 (ip6_forward_rt.ro_rt->rt_flags & RTF_UP) == 0) {
237 if (ip6_forward_rt.ro_rt) {
238 RTFREE(ip6_forward_rt.ro_rt);
239 ip6_forward_rt.ro_rt = 0;
245 if (ip6_forward_rt.ro_rt == 0) {
255 } else if ((rt = ip6_forward_rt.ro_rt) == 0 ||
257 if (ip6_forward_rt.ro_rt) {
258 RTFREE(ip6_forward_rt.ro_rt);
259 ip6_forward_rt.ro_rt = 0;
[all …]
Din6_src.c228 if (ro->ro_rt &&
230 RTFREE(ro->ro_rt);
231 ro->ro_rt = (struct rtentry *)0;
233 if (ro->ro_rt == (struct rtentry *)0 ||
234 ro->ro_rt->rt_ifp == (struct ifnet *)0) {
245 ro->ro_rt = rtalloc1(&((struct route *)ro)
259 if (ro->ro_rt) {
260 ia6 = in6_ifawithscope(ro->ro_rt->rt_ifa->ifa_ifp, dst);
262 ia6 = ifatoia6(ro->ro_rt->rt_ifa);
Dip6_output.c459 if (ro->ro_rt && ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
462 RTFREE(ro->ro_rt);
463 ro->ro_rt = (struct rtentry *)0;
465 if (ro->ro_rt == 0) {
528 if (ro->ro_rt == 0) {
535 if (ro->ro_rt == 0) {
541 ia = ifatoia6(ro->ro_rt->rt_ifa);
542 ifp = ro->ro_rt->rt_ifp;
543 ro->ro_rt->rt_use++;
544 if (ro->ro_rt->rt_flags & RTF_GATEWAY)
[all …]
Dfrag6.c201 if (ro.ro_rt
202 && ((ro.ro_rt->rt_flags & RTF_UP) == 0
204 RTFREE(ro.ro_rt);
205 ro.ro_rt = (struct rtentry *)0;
207 if (ro.ro_rt == NULL) {
216 if (ro.ro_rt != NULL && ro.ro_rt->rt_ifa != NULL)
217 dstifp = ((struct in6_ifaddr *)ro.ro_rt->rt_ifa)->ia_ifp;
762 if (ip6_forward_rt.ro_rt) { in frag6_slowtimo()
763 RTFREE(ip6_forward_rt.ro_rt); in frag6_slowtimo()
764 ip6_forward_rt.ro_rt = 0; in frag6_slowtimo()
[all …]
Din6_gif.c177 if (sc->gif_ro6.ro_rt) {
178 RTFREE(sc->gif_ro6.ro_rt);
179 sc->gif_ro6.ro_rt = NULL;
183 if (sc->gif_ro6.ro_rt == NULL) {
185 if (sc->gif_ro6.ro_rt == NULL) {
Dip6_input.c393 if (ip6_forward_rt.ro_rt != NULL &&
394 (ip6_forward_rt.ro_rt->rt_flags & RTF_UP) != 0 &&
399 if (ip6_forward_rt.ro_rt) {
402 RTFREE(ip6_forward_rt.ro_rt);
403 ip6_forward_rt.ro_rt = 0;
425 if (ip6_forward_rt.ro_rt &&
426 (ip6_forward_rt.ro_rt->rt_flags &
435 &rt6_key(ip6_forward_rt.ro_rt)->sin6_addr) &&
437 ip6_forward_rt.ro_rt->rt_ifp->if_type == IFT_LOOP) {
439 (struct in6_ifaddr *)ip6_forward_rt.ro_rt->rt_ifa;
[all …]
Din6_pcb.c455 if (inp->inp_route6.ro_rt)
456 ifp = inp->inp_route6.ro_rt->rt_ifp;
588 inp->inp_route.ro_rt &&
589 !(inp->inp_route.ro_rt->rt_flags & RTF_HOST)) {
Dnd6_nbr.c527 if (ro.ro_rt) { /* we don't cache this route. */
528 RTFREE(ro.ro_rt);
533 if (ro.ro_rt) {
534 RTFREE(ro.ro_rt);
998 if (ro.ro_rt) { /* we don't cache this route. */
999 RTFREE(ro.ro_rt);
1004 if (ro.ro_rt) {
1005 RTFREE(ro.ro_rt);
Dudp6_output.c254 in6p->in6p_route.ro_rt ?
255 in6p->in6p_route.ro_rt->rt_ifp : NULL);
Draw_ip6.c446 if (in6p->in6p_route.ro_rt) { in rip6_output()
448 oifp = ifindex2ifnet[in6p->in6p_route.ro_rt->rt_ifp->if_index]; in rip6_output()
510 if (optp == &opt && optp->ip6po_rthdr && optp->ip6po_route.ro_rt) in rip6_output()
511 RTFREE(optp->ip6po_route.ro_rt); in rip6_output()
/mirbsd/src/sys/netinet/
Dip_output.c183 if (ro->ro_rt && ((ro->ro_rt->rt_flags & RTF_UP) == 0 || in ip_output()
185 RTFREE(ro->ro_rt); in ip_output()
186 ro->ro_rt = (struct rtentry *)0; in ip_output()
189 if (ro->ro_rt == 0) { in ip_output()
216 if (ro->ro_rt == 0) in ip_output()
219 if (ro->ro_rt == 0) { in ip_output()
225 ia = ifatoia(ro->ro_rt->rt_ifa); in ip_output()
226 ifp = ro->ro_rt->rt_ifp; in ip_output()
227 if ((mtu = ro->ro_rt->rt_rmx.rmx_mtu) == 0) in ip_output()
229 ro->ro_rt->rt_use++; in ip_output()
[all …]
Din_pcb.c490 if (inp->inp_route.ro_rt)
491 rtfree(inp->inp_route.ro_rt);
685 if ((rt = inp->inp_route.ro_rt)) {
686 inp->inp_route.ro_rt = 0;
715 if (inp->inp_route.ro_rt) {
716 rtfree(inp->inp_route.ro_rt);
717 inp->inp_route.ro_rt = 0;
820 if (ro->ro_rt == NULL) {
849 return (ro->ro_rt);
868 if (ro->ro_rt &&
[all …]
Dip_input.c1223 if (ipforward_rt.ro_rt == 0 || dst.s_addr != sin->sin_addr.s_addr) {
1224 if (ipforward_rt.ro_rt) {
1225 RTFREE(ipforward_rt.ro_rt);
1226 ipforward_rt.ro_rt = 0;
1234 if (ipforward_rt.ro_rt == 0)
1236 return (ifatoia(ipforward_rt.ro_rt->rt_ifa));
1459 if ((rt = ipforward_rt.ro_rt) == 0 ||
1461 if (ipforward_rt.ro_rt) {
1462 RTFREE(ipforward_rt.ro_rt);
1463 ipforward_rt.ro_rt = 0;
[all …]
Dip_icmp.c660 if (ro.ro_rt == 0) { in icmp_reflect()
666 ia = ifatoia(ro.ro_rt->rt_ifa); in icmp_reflect()
667 ro.ro_rt->rt_use++; in icmp_reflect()
668 RTFREE(ro.ro_rt); in icmp_reflect()
/mirbsd/src/sys/netatalk/
Dddp_output.c183 if ( ro->ro_rt && ( ifp = ro->ro_rt->rt_ifp )) {
184 net = satosat( ro->ro_rt->rt_gateway )->sat_addr.s_net;
222 elh->el_dnode = satosat( ro->ro_rt->rt_gateway )->sat_addr.s_node;
232 gate = *satosat( ro->ro_rt->rt_gateway );
234 ro->ro_rt->rt_use++;
Dddp_usrreq.c387 if ( ro->ro_rt ) {
394 if ( (ifp = ro->ro_rt->rt_ifp) != NULL ) {
407 RTFREE( ro->ro_rt );
408 ro->ro_rt = (struct rtentry *)0;
415 if ( ro->ro_rt == (struct rtentry *)0 ||
416 ro->ro_rt->rt_ifp == (struct ifnet *)0 ) {
432 if ( ro->ro_rt && ( ifp = ro->ro_rt->rt_ifp )) {
509 if ( ddp->ddp_route.ro_rt ) {
510 rtfree( ddp->ddp_route.ro_rt );
Dddp_input.c304 if ( forwro.ro_rt && ( satosat( &forwro.ro_dst )->sat_addr.s_net !=
308 RTFREE( forwro.ro_rt );
309 forwro.ro_rt = (struct rtentry *)0;
311 if ( forwro.ro_rt == (struct rtentry *)0 ||
312 forwro.ro_rt->rt_ifp == (struct ifnet *)0 ) {
328 ( forwro.ro_rt == NULL || ( forwro.ro_rt->rt_ifp != ifp &&
329 forwro.ro_rt->rt_ifp != at_ifaddr->aa_ifp ))) {

12