From 002290998e6c908160f2034c54ed46ab9a3b6e6e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 16 Dec 2014 14:21:18 -0600 Subject: [PATCH] mpdu: Add x-ref in comments for struct definitions --- src/mpdu.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mpdu.h b/src/mpdu.h index 8a177a31..06cd9711 100644 --- a/src/mpdu.h +++ b/src/mpdu.h @@ -23,20 +23,24 @@ #include #include +/* 802.11, Table 8-1 "Valid type and subtype combinations" */ enum mpdu_type { MPDU_TYPE_MANAGEMENT = 0, }; +/* 802.11, Table 8-1 "Valid type and subtype combinations" */ enum mpdu_mgmt_type { MPDU_MGMT_TYPE_AUTHENTICATION = 0xB, MPDU_MGMT_TYPE_DEAUTHENTICATION = 0xC, }; +/* 802.11, Section 8.4.1.1 Authentication Algorithm Number field */ enum mpdu_authentication_algorithm_number { MPDU_AUTH_ALGO_OPEN = 0, MPDU_AUTH_ALGO_SK, }; +/* 802.11, Section 8.2.4.1.1, Figure 8-2 */ struct mpdu_fc { union { struct { @@ -56,6 +60,7 @@ struct mpdu_fc { }; }; +/* 802.11, Section 8.3.3.1 */ struct mpdu_mgmt_header { uint16_t duration; unsigned char address_1[6]; @@ -71,6 +76,7 @@ struct mpdu_mgmt_header { uint32_t ht_control; /* ToDo? */ }; +/* 802.11, Section 8.3.3.11 */ struct mpdu_authentication { uint16_t algorithm; uint16_t transaction_sequence; @@ -80,6 +86,7 @@ struct mpdu_authentication { /* ToDo: FT and SAE parts? */ }; +/* 802.11, Section 8.3.3.12 */ struct mpdu_deauthentication { uint16_t reason_code; /* ToDo: Vendor specific IE? MME? */