summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-05-26 20:50:41 +0000
committerderaadt <deraadt@openbsd.org>2006-05-26 20:50:41 +0000
commit04100db431058818007d9d271b09d48eccec5bb8 (patch)
tree0805ff9929e6fb3e5f972de16b2d0d252a1d6874 /sys/net/if_ethersubr.c
parent<machine/rtc.h> is really only footbridge-specific, so, after pruning it from (diff)
downloadwireguard-openbsd-04100db431058818007d9d271b09d48eccec5bb8.tar.xz
wireguard-openbsd-04100db431058818007d9d271b09d48eccec5bb8.zip
rename jumbo mtu to if_hardmtu; ok brad reyk
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 3435929b1c7..d9f54680d0c 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ethersubr.c,v 1.101 2006/05/19 19:50:23 reyk Exp $ */
+/* $OpenBSD: if_ethersubr.c,v 1.102 2006/05/26 20:50:41 deraadt Exp $ */
/* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */
/*
@@ -833,14 +833,8 @@ ether_ifattach(ifp)
ifp->if_mtu = ETHERMTU;
ifp->if_output = ether_output;
- /*
- * If the device supports sending of jumbo frames,
- * either use the default maximum jumbo frame size
- * or the one specified by the driver.
- */
- if (ifp->if_capabilities & IFCAP_JUMBO_MTU &&
- ifp->if_jumbo_mtu == 0)
- ifp->if_jumbo_mtu = ETHERMTU_JUMBO;
+ if (ifp->if_hardmtu == 0)
+ ifp->if_hardmtu = ETHERMTU;
if_alloc_sadl(ifp);
bcopy((caddr_t)((struct arpcom *)ifp)->ac_enaddr,