diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-01-02 01:39:38 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-01-02 01:39:38 +0000 |
commit | 0eefe3ee3fc5743f1eb6b0390ffaec5cfdf40f15 (patch) | |
tree | f1af8109923b359dbd8aa7818f300425a1568792 /sys | |
parent | 115511c70ad536ba949369aa29f5c227370789f4 (diff) | |
download | FreeBSD-src-0eefe3ee3fc5743f1eb6b0390ffaec5cfdf40f15.zip FreeBSD-src-0eefe3ee3fc5743f1eb6b0390ffaec5cfdf40f15.tar.gz |
Prefer rtalloc_ign() API to rtalloc() API.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netipx/ipx_input.c | 2 | ||||
-rw-r--r-- | sys/netipx/ipx_ip.c | 2 | ||||
-rw-r--r-- | sys/netipx/ipx_outputfl.c | 4 | ||||
-rw-r--r-- | sys/netipx/ipx_pcb.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c index 812226b..c20d543 100644 --- a/sys/netipx/ipx_input.c +++ b/sys/netipx/ipx_input.c @@ -442,7 +442,7 @@ struct route *ro; dst->sipx_family = AF_IPX; dst->sipx_addr = *src; dst->sipx_addr.x_port = 0; - rtalloc(ro); + rtalloc_ign(ro, 0); if (ro->ro_rt == NULL || ro->ro_rt->rt_ifp == NULL) { return (0); } diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c index d069fb9..c706674 100644 --- a/sys/netipx/ipx_ip.c +++ b/sys/netipx/ipx_ip.c @@ -333,7 +333,7 @@ ipxip_route(so, sopt) */ bzero((caddr_t)&ro, sizeof(ro)); ro.ro_dst = *(struct sockaddr *)ip_dst; - rtalloc(&ro); + rtalloc_ign(&ro, 0); if (ro.ro_rt == NULL || ro.ro_rt->rt_ifp == NULL) { return (ENETUNREACH); } diff --git a/sys/netipx/ipx_outputfl.c b/sys/netipx/ipx_outputfl.c index bdca9a2..c2585dc 100644 --- a/sys/netipx/ipx_outputfl.c +++ b/sys/netipx/ipx_outputfl.c @@ -91,14 +91,14 @@ ipx_outputfl(m0, ro, flags) ifp = ia->ia_ifp; goto gotif; } - rtalloc(ro); + rtalloc_ign(ro, 0); } else if ((ro->ro_rt->rt_flags & RTF_UP) == 0) { /* * The old route has gone away; try for a new one. */ rtfree(ro->ro_rt); ro->ro_rt = NULL; - rtalloc(ro); + rtalloc_ign(ro, 0); } if (ro->ro_rt == NULL || (ifp = ro->ro_rt->rt_ifp) == NULL) { ipxstat.ipxs_noroute++; diff --git a/sys/netipx/ipx_pcb.c b/sys/netipx/ipx_pcb.c index e1fcfca..663cfeb 100644 --- a/sys/netipx/ipx_pcb.c +++ b/sys/netipx/ipx_pcb.c @@ -182,7 +182,7 @@ ipx_pcbconnect(ipxp, nam, td) ro->ro_dst.sa_len = sizeof(ro->ro_dst); *dst = sipx->sipx_addr; dst->x_port = 0; - rtalloc(ro); + rtalloc_ign(ro, 0); } if (ipx_neteqnn(ipxp->ipxp_laddr.x_net, ipx_zeronet)) { /* |