2 * IEEE Std 802.1X-2010 definitions
3 * Copyright (c) 2013-2014, Qualcomm Atheros, Inc.
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
9 #ifndef IEEE802_1X_DEFS_H
10 #define IEEE802_1X_DEFS_H
13 #define CS_ID_GCM_AES_128 {0x00, 0x80, 0x02, 0x00, 0x01, 0x00, 0x00, 0x01}
14 #define CS_NAME_GCM_AES_128 "GCM-AES-128"
18 * Should secure sessions.
19 * This accepts key server's advice to determine whether to secure the
25 * Disabled MACsec - do not secure sessions.
31 /* IEEE Std 802.1X-2010 - Table 11-6 - MACsec Capability */
34 * MACsec is not implemented
36 MACSEC_CAP_NOT_IMPLEMENTED,
39 * 'Integrity without confidentiality'
44 * 'Integrity without confidentiality' and
45 * 'Integrity and confidentiality' with a confidentiality offset of 0
47 MACSEC_CAP_INTEG_AND_CONF,
50 * 'Integrity without confidentiality' and
51 * 'Integrity and confidentiality' with a confidentiality offset of 0,
54 MACSEC_CAP_INTEG_AND_CONF_0_30_50,
57 enum validate_frames {
63 /* IEEE Std 802.1X-2010 - Table 11-6 - Confidentiality Offset */
64 enum confidentiality_offset {
65 CONFIDENTIALITY_NONE = 0,
66 CONFIDENTIALITY_OFFSET_0 = 1,
67 CONFIDENTIALITY_OFFSET_30 = 2,
68 CONFIDENTIALITY_OFFSET_50 = 3,
71 /* IEEE Std 802.1X-2010 - Table 9-2 */
72 #define DEFAULT_PRIO_INFRA_PORT 0x10
73 #define DEFAULT_PRIO_PRIMRAY_AP 0x30
74 #define DEFAULT_PRIO_SECONDARY_AP 0x50
75 #define DEFAULT_PRIO_GROUP_CA_MEMBER 0x70
76 #define DEFAULT_PRIO_NOT_KEY_SERVER 0xFF
78 #endif /* IEEE802_1X_DEFS_H */