summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2007-07-28 11:09:04 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2007-07-28 11:09:04 +0000
commitd1e826534316b050cd147c75a4eecf3208aba13d (patch)
tree3860b53560f52b9fa1da2095c8665819047fe7df
parentf793a5f53e8a79b72a1adf4bda6a16728ed6aaa8 (diff)
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 */