summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_output.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/netinet/ip_output.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/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index a811e011339..ee15bd2cd43 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.176 2006/03/05 21:48:56 miod Exp $ */
+/* $OpenBSD: ip_output.c,v 1.177 2006/05/26 20:50:41 deraadt Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -693,9 +693,13 @@ sendit:
}
#endif
- /* Try to use jumbograms? */
- if (flags & IP_JUMBO && ro->ro_rt && ro->ro_rt->rt_flags & RTF_JUMBO)
- mtu = IP_JUMBO_MTU;
+ /* XXX
+ * Try to use jumbograms based on socket option, or the route
+ * or... for other reasons later on.
+ */
+ if ((flags & IP_JUMBO) && ro->ro_rt && (ro->ro_rt->rt_flags & RTF_JUMBO) &&
+ ro->ro_rt->rt_ifp)
+ mtu = ro->ro_rt->rt_ifp->if_hardmtu;
/*
* If small enough for interface, can just send directly.