summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordamien <damien@openbsd.org>2007-07-28 11:09:03 +0000
committerdamien <damien@openbsd.org>2007-07-28 11:09:03 +0000
commit991765dec470b8dbee9bafb0edf88fc72703500e (patch)
tree12f092c5c42b5f409220121c7a10c9d44e4eadb8
parentextend the ieee80211_key structure with a key identifier, a flags field (diff)
downloadwireguard-openbsd-991765dec470b8dbee9bafb0edf88fc72703500e.tar.xz
wireguard-openbsd-991765dec470b8dbee9bafb0edf88fc72703500e.zip
add a couple of fields to the ieee80211_node structure to manage RSN
states. those fields will be put in a separate structure (ieee80211_rsna) in a future cleanup phase to save some space. add a ni_port_valid field to manage PAE state. in pre-RSNA networks, this field will be set to 1 after a successful open authentication. in RSNA networks, this field will be set to 1 after a successful 4-way handshake.
-rw-r--r--sys/net80211/ieee80211_node.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h
index a1495998c28..3b6e5f8c109 100644
--- a/sys/net80211/ieee80211_node.h
+++ b/sys/net80211/ieee80211_node.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.h,v 1.17 2007/07/06 18:18:43 damien Exp $ */
+/* $OpenBSD: ieee80211_node.h,v 1.18 2007/07/28 11:09:03 damien Exp $ */
/* $NetBSD: ieee80211_node.h,v 1.9 2004/04/30 22:57:32 dyoung Exp $ */
/*-
@@ -114,9 +114,18 @@ struct ieee80211_node {
/* RSN */
u_int ni_group_cipher;
+ enum ieee80211_cipher ni_pairwise_cipher;
u_int ni_pairwise_cipherset;
+ enum ieee80211_akm ni_akm;
u_int ni_akmset;
u_int16_t ni_rsncaps;
+ int ni_port_valid;
+ u_int8_t ni_nonce[EAPOL_KEY_NONCE_LEN];
+ u_int64_t ni_replaycnt;
+ u_int8_t *ni_rsnie;
+ struct ieee80211_ptk ni_ptk;
+ u_int8_t ni_ptk_ok;
+ u_int8_t ni_key_count;
/* others */
u_int16_t ni_associd; /* assoc response */