summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_node.h
diff options
context:
space:
mode:
authordamien <damien@openbsd.org>2008-08-02 08:20:16 +0000
committerdamien <damien@openbsd.org>2008-08-02 08:20:16 +0000
commit01ad6d9f8461fc2c0c12089971b1b053188ce72c (patch)
tree73cafa9bbfdcaf95aa5af835a59c6c462c949826 /sys/net80211/ieee80211_node.h
parentwhitepsace -> whitespace. From Matthew Clarke via bugs@. (diff)
downloadwireguard-openbsd-01ad6d9f8461fc2c0c12089971b1b053188ce72c.tar.xz
wireguard-openbsd-01ad6d9f8461fc2c0c12089971b1b053188ce72c.zip
Drop frames that are received unencrypted when WEP is on or when
WPA is on and RX protection for TA is on. Keep track of the TX/RX protection for each node when WPA is on. tested by djm@ (ral+wpa), ckuethe@ (ath-noenc) and krw@ (wpi<->ral+wpa). hints from bluhm@ has been in snaps for a few days. pointed out by bluhm@ something like 1 year ago but we did not have the right infrastructure to fix it properly at that time. ok deraadt@
Diffstat (limited to 'sys/net80211/ieee80211_node.h')
-rw-r--r--sys/net80211/ieee80211_node.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h
index ab37a300429..581697897dc 100644
--- a/sys/net80211/ieee80211_node.h
+++ b/sys/net80211/ieee80211_node.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.h,v 1.28 2008/07/27 18:24:01 damien Exp $ */
+/* $OpenBSD: ieee80211_node.h,v 1.29 2008/08/02 08:20:16 damien Exp $ */
/* $NetBSD: ieee80211_node.h,v 1.9 2004/04/30 22:57:32 dyoung Exp $ */
/*-
@@ -181,7 +181,11 @@ struct ieee80211_node {
u_int8_t ni_flags; /* special-purpose state */
#define IEEE80211_NODE_ERP 0x01
#define IEEE80211_NODE_QOS 0x02
-#define IEEE80211_NODE_REKEY 0x04
+#define IEEE80211_NODE_REKEY 0x04 /* GTK rekying in progress */
+#define IEEE80211_NODE_RXPROT 0x08 /* RX protection ON */
+#define IEEE80211_NODE_TXPROT 0x10 /* TX protection ON */
+#define IEEE80211_NODE_TXRXPROT \
+ (IEEE80211_NODE_TXPROT | IEEE80211_NODE_RXPROT)
};
RB_HEAD(ieee80211_tree, ieee80211_node);