Prefer rtalloc_ign() API to rtalloc() API.

This commit is contained in:
Robert Watson 2005-01-02 01:39:38 +00:00
parent 1861b3421b
commit c2b8a29d33
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139556
4 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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++;

View File

@ -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)) {
/*