diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-03 00:59:09 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-03 00:59:09 +0000 |
commit | b19defebe3ea889ca13b8052e2e444c37bd58330 (patch) | |
tree | 2f8cc54c8c4d1cc59714cef5b1cf2692bbfa45a9 /sys/netinet6/nd6.c | |
parent | f150d46639643adbe6fb99a40d0765d9d290726d (diff) |
remove hardcoded assumptions on if_mtu. leave it to sys/net.
makes it possible to take advantage of 9K ethernet.
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r-- | sys/netinet6/nd6.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index c72734dd1ea..13cfda13b34 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6.c,v 1.45 2002/05/30 05:07:17 itojun Exp $ */ +/* $OpenBSD: nd6.c,v 1.46 2002/06/03 00:59:08 itojun Exp $ */ /* $KAME: nd6.c,v 1.151 2001/06/19 14:24:41 sumikawa Exp $ */ /* @@ -49,7 +49,6 @@ #include <net/if.h> #include <net/if_dl.h> #include <net/if_types.h> -#include <net/if_atm.h> #include <net/if_fddi.h> #include <net/route.h> @@ -180,18 +179,12 @@ nd6_setmtu0(ifp, ndi) omaxmtu = ndi->maxmtu; switch (ifp->if_type) { - case IFT_ARCNET: /* XXX MTU handling needs more work */ - ndi->maxmtu = MIN(60480, ifp->if_mtu); - break; - case IFT_ETHER: - ndi->maxmtu = MIN(ETHERMTU, ifp->if_mtu); + case IFT_ARCNET: + ndi->maxmtu = MIN(60480, ifp->if_mtu); /* RFC2497 */ break; case IFT_FDDI: ndi->maxmtu = MIN(FDDIMTU, ifp->if_mtu); break; - case IFT_ATM: - ndi->maxmtu = MIN(ATMMTU, ifp->if_mtu); - break; default: ndi->maxmtu = ifp->if_mtu; break; |