summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2006-05-19 19:50:24 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2006-05-19 19:50:24 +0000
commit82dd745f593176ccc7c71104cbb217fba6d975a2 (patch)
tree6cdf980b08a09150cfb76d1bd9b60ee06f29e68c /sys/net/if.h
parent3e51a11d950e38614a87079be7136f45b7c65d21 (diff)
add a if_jumbo_mtu field to the interface structure for drivers
supporting ethernet jumbo frames. there's no standard for the size of jumbo MTUs, so either let the driver set it's own value or use 9000 byte jumbo frames by default. ok brad@
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index efb7bdd13d9..3e882a01277 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.78 2006/03/04 22:40:15 brad Exp $ */
+/* $OpenBSD: if.h,v 1.79 2006/05/19 19:50:23 reyk Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -194,6 +194,7 @@ struct ifnet { /* and the entries */
short if_timer; /* time 'til if_watchdog called */
short if_flags; /* up/down, broadcast, etc. */
struct if_data if_data; /* stats and other data about if */
+ u_int32_t if_jumbo_mtu; /* maximum jumbo transmission unit */
int if_capabilities; /* interface capabilities */
char if_description[IFDESCRSIZE]; /* interface description */
@@ -273,7 +274,7 @@ struct ifnet { /* and the entries */
#define IFCAP_VLAN_MTU 0x00000010 /* VLAN-compatible MTU */
#define IFCAP_VLAN_HWTAGGING 0x00000020 /* hardware VLAN tag support */
#define IFCAP_IPCOMP 0x00000040 /* can do IPcomp */
-#define IFCAP_JUMBO_MTU 0x00000080 /* 9000 byte MTU supported */
+#define IFCAP_JUMBO_MTU 0x00000080 /* jumbo MTU supported */
#define IFCAP_CSUM_TCPv6 0x00000100 /* can do IPv6/TCP checksums */
#define IFCAP_CSUM_UDPv6 0x00000200 /* can do IPv6/UDP checksums */
#define IFCAP_CSUM_TCPv4_Rx 0x00000400 /* can do IPv4/TCP (Rx only) */