From 402865f63772e2db2fa23378fa293b92d6fd8092 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sat, 23 Sep 2006 19:24:10 +0000 Subject: [PATCH] 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... --- sys/netinet/if_ether.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 94beb78437b2..615a4891d7c7 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -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