eap_defs.h
Go to the documentation of this file.00001
00016 #ifndef EAP_DEFS_H
00017 #define EAP_DEFS_H
00018
00019
00020
00021 #ifdef _MSC_VER
00022 #pragma pack(push, 1)
00023 #endif
00024
00025 struct eap_hdr {
00026 u8 code;
00027 u8 identifier;
00028 be16 length;
00029
00030 } STRUCT_PACKED;
00031
00032 #ifdef _MSC_VER
00033 #pragma pack(pop)
00034 #endif
00035
00036 enum { EAP_CODE_REQUEST = 1, EAP_CODE_RESPONSE = 2, EAP_CODE_SUCCESS = 3,
00037 EAP_CODE_FAILURE = 4 };
00038
00039
00040
00041
00042
00043
00044
00045
00046 typedef enum {
00047 EAP_TYPE_NONE = 0,
00048 EAP_TYPE_IDENTITY = 1 ,
00049 EAP_TYPE_NOTIFICATION = 2 ,
00050 EAP_TYPE_NAK = 3 ,
00051 EAP_TYPE_MD5 = 4,
00052 EAP_TYPE_OTP = 5 ,
00053 EAP_TYPE_GTC = 6,
00054 EAP_TYPE_TLS = 13 ,
00055 EAP_TYPE_LEAP = 17 ,
00056 EAP_TYPE_SIM = 18 ,
00057 EAP_TYPE_TTLS = 21 ,
00058 EAP_TYPE_AKA = 23 ,
00059 EAP_TYPE_PEAP = 25 ,
00060 EAP_TYPE_MSCHAPV2 = 26 ,
00061 EAP_TYPE_TLV = 33 ,
00062 EAP_TYPE_TNC = 38
00063
00064 ,
00065 EAP_TYPE_FAST = 43 ,
00066 EAP_TYPE_PAX = 46 ,
00067 EAP_TYPE_PSK = 47 ,
00068 EAP_TYPE_SAKE = 48 ,
00069 EAP_TYPE_IKEV2 = 49 ,
00070 EAP_TYPE_AKA_PRIME = 50 ,
00071 EAP_TYPE_GPSK = 51 ,
00072 EAP_TYPE_EXPANDED = 254
00073 } EapType;
00074
00075
00076
00077 enum {
00078 EAP_VENDOR_IETF = 0,
00079 EAP_VENDOR_MICROSOFT = 0x000137 ,
00080 EAP_VENDOR_WFA = 0x00372A
00081 };
00082
00083 #define EAP_MSK_LEN 64
00084 #define EAP_EMSK_LEN 64
00085
00086 #endif
00087