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