now that we don't automagicly increase the MTU of host routes, when we copy

the loopback interface, copy it's mtu also..  This means that we again have
large mtu support for local ip addresses...
This commit is contained in:
John-Mark Gurney 2006-09-23 19:24:10 +00:00
parent d4b7423fa1
commit 402865f637

View File

@ -294,8 +294,10 @@ arp_rtrequest(req, rt, info)
rt->rt_expire = 0;
bcopy(IF_LLADDR(rt->rt_ifp), LLADDR(SDL(gate)),
SDL(gate)->sdl_alen = rt->rt_ifp->if_addrlen);
if (useloopback)
if (useloopback) {
rt->rt_ifp = loif;
rt->rt_rmx.rmx_mtu = loif->if_mtu;
}
/*
* make sure to set rt->rt_ifa to the interface