diff options
author | jmg <jmg@FreeBSD.org> | 2006-09-23 19:24:10 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2006-09-23 19:24:10 +0000 |
commit | be23d3d5d0b15a07d064438f3308bf689e40216d (patch) | |
tree | ffdbc4ef610443efacb7618bccae56422e254b66 /sys/netinet/if_ether.c | |
parent | 6ecb474f4fee36803a21cadcee5dc0f6b0e6b4d2 (diff) | |
download | FreeBSD-src-be23d3d5d0b15a07d064438f3308bf689e40216d.zip FreeBSD-src-be23d3d5d0b15a07d064438f3308bf689e40216d.tar.gz |
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...
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r-- | sys/netinet/if_ether.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 94beb78..615a489 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 |