Go to the documentation of this file.
21 #ifndef _MAC_Structures_H_
22 #define _MAC_Structures_H_
24 #define MAC_ADDR_LENGTH 6
29 #define DOT_11_MAC_HEADER_SIZE 24
30 #define DOT_11_SNAP_SIZE 6
31 #define DOT_11_DURATION_OFFSET 2
33 #define DOT_11_SEQUENCE_OFFSET 22
35 #define DOT_11_TYPE_OFFSET 30
36 #define DOT_11_DATA_OFFSET 24
37 #define DOT_11_DA_OFFSET 4
39 #define MAX_ETHERNET_PACKET_SIZE 1514
42 #define MAC_SUBTYPE_MNGMNT_ASSOC_REQUEST 0x00
43 #define MAC_SUBTYPE_MNGMNT_ASSOC_RESPONSE 0x10
44 #define MAC_SUBTYPE_MNGMNT_REASSOC_REQUEST 0x20
45 #define MAC_SUBTYPE_MNGMNT_REASSOC_RESPONSE 0x30
46 #define MAC_SUBTYPE_MNGMNT_PROBE_REQUEST 0x40
47 #define MAC_SUBTYPE_MNGMNT_PROBE_RESPONSE 0x50
48 #define MAC_SUBTYPE_MNGMNT_BEACON 0x80
49 #define MAC_SUBTYPE_MNGMNT_ATIM 0x90
50 #define MAC_SUBTYPE_MNGMNT_DISASSOCIATION 0xA0
51 #define MAC_SUBTYPE_MNGMNT_AUTHENTICATION 0xB0
52 #define MAC_SUBTYPE_MNGMNT_DEAUTHENTICATION 0xC0
57 #define RATE_5dot5M 11