summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2004-01-13 06:22:55 +0000
committersam <sam@FreeBSD.org>2004-01-13 06:22:55 +0000
commitb8570d5db4cc681044b6c4270d95ab74ea9698e6 (patch)
tree390e3c64186554ac7917301427589c29aa45624c /sys/net80211/ieee80211.h
parent1012c19191db10049b26de7225117ed77f83124f (diff)
downloadFreeBSD-src-b8570d5db4cc681044b6c4270d95ab74ea9698e6.zip
FreeBSD-src-b8570d5db4cc681044b6c4270d95ab74ea9698e6.tar.gz
Handle SIOCSIFMTU ioctl directly so we can apply 802.11-specific bounds.
Note that the min is actually constrained to IF_MINMTU by the if layer.
Diffstat (limited to 'sys/net80211/ieee80211.h')
-rw-r--r--sys/net80211/ieee80211.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h
index 7ad6231..217bbf0 100644
--- a/sys/net80211/ieee80211.h
+++ b/sys/net80211/ieee80211.h
@@ -360,7 +360,16 @@ enum {
#define IEEE80211_CRC_LEN 4
-#define IEEE80211_MTU 1500
+/*
+ * Maximum acceptable MTU is:
+ * IEEE80211_MAX_LEN - WEP overhead - CRC -
+ * QoS overhead - RSN/WPA overhead
+ * Min is arbitrarily chosen > IEEE80211_MIN_LEN. The default
+ * mtu is Ethernet-compatible; it's set by ether_ifattach.
+ */
+#define IEEE80211_MTU_MAX 2290
+#define IEEE80211_MTU_MIN 32
+
#define IEEE80211_MAX_LEN (2300 + IEEE80211_CRC_LEN + \
(IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN + IEEE80211_WEP_CRCLEN))
#define IEEE80211_MIN_LEN \
OpenPOWER on IntegriCloud