In an effort to simplify the routing code, try to deprecate rtalloc()
in favour of rtalloc_ign(), which is what would end up being called anyways. There are 25 more instances of rtalloc() in net*/ and about 10 instances of rtalloc_ign()
This commit is contained in:
parent
6a86b01672
commit
94049d0810
@ -190,7 +190,7 @@ in_gif_output(ifp, family, m)
|
||||
}
|
||||
|
||||
if (sc->gif_ro.ro_rt == NULL) {
|
||||
rtalloc(&sc->gif_ro);
|
||||
rtalloc_ign(&sc->gif_ro, 0);
|
||||
if (sc->gif_ro.ro_rt == NULL) {
|
||||
m_freem(m);
|
||||
return ENETUNREACH;
|
||||
|
@ -276,7 +276,7 @@ ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro,
|
||||
* operation (as it is for ARP).
|
||||
*/
|
||||
if (ro->ro_rt == 0)
|
||||
rtalloc(ro);
|
||||
rtalloc_ign(ro, 0);
|
||||
if (ro->ro_rt == 0) {
|
||||
ipstat.ips_noroute++;
|
||||
error = EHOSTUNREACH;
|
||||
|
Loading…
Reference in New Issue
Block a user