From 82dd745f593176ccc7c71104cbb217fba6d975a2 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Fri, 19 May 2006 19:50:24 +0000 Subject: 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@ --- sys/net/if.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/net/if.h') 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) */ -- cgit v1.2.3