summaryrefslogtreecommitdiff
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2005-05-27 04:55:29 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2005-05-27 04:55:29 +0000
commit4470f6d571b57a867ad4f7875ea2cd7f46612f98 (patch)
tree8400c69016747dd92adad4694f3ecc9963d6d1f1 /sys/netinet/in.h
parente0dcbdc8ae74cec294cbf562a7cb834495055882 (diff)
Experimental support for opportunitic use of jumbograms where only some hosts
on the local network support them. This adds a new socket option, SO_JUMBO, and a new route flag, RTF_JUMBO. If _both_ the socket option is set and the route for the host has RTF_JUMBO set, ip_output will fragment the packet to the largest possible size for the link, ignoring the card's MTU. The semantics of this feature will be evolving rapidly; talk to us if you intend to use it. ok deraadt@ marius@
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index a0d14d5878f..84985ed987a 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.h,v 1.65 2005/05/24 04:20:25 markus Exp $ */
+/* $OpenBSD: in.h,v 1.66 2005/05/27 04:55:28 mcbride Exp $ */
/* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */
/*
@@ -320,6 +320,11 @@ struct ip_mreq {
#define INET_ADDRSTRLEN 16
/*
+ * JUMBO MTU
+ */
+#define IP_JUMBO_MTU 9000
+
+/*
* Definitions for inet sysctl operations.
*
* Third level is protocol number.