00001
00016 #ifndef EAP_DEFS_H
00017 #define EAP_DEFS_H
00018
00019
00020
00021 struct eap_hdr {
00022 u8 code;
00023 u8 identifier;
00024 u16 length;
00025
00026 } __attribute__ ((packed));
00027
00028 enum { EAP_CODE_REQUEST = 1, EAP_CODE_RESPONSE = 2, EAP_CODE_SUCCESS = 3,
00029 EAP_CODE_FAILURE = 4 };
00030
00031
00032
00033
00034 typedef enum {
00035 EAP_TYPE_NONE = 0,
00036 EAP_TYPE_IDENTITY = 1 ,
00037 EAP_TYPE_NOTIFICATION = 2 ,
00038 EAP_TYPE_NAK = 3 ,
00039 EAP_TYPE_MD5 = 4,
00040 EAP_TYPE_OTP = 5 ,
00041 EAP_TYPE_GTC = 6,
00042 EAP_TYPE_TLS = 13 ,
00043 EAP_TYPE_LEAP = 17 ,
00044 EAP_TYPE_SIM = 18 ,
00045 EAP_TYPE_TTLS = 21 ,
00046 EAP_TYPE_AKA = 23 ,
00047 EAP_TYPE_PEAP = 25 ,
00048 EAP_TYPE_MSCHAPV2 = 26 ,
00049 EAP_TYPE_TLV = 33 ,
00050 EAP_TYPE_FAST = 43 ,
00051 EAP_TYPE_PAX = 46,
00052 EAP_TYPE_EXPANDED_NAK = 254 ,
00053 EAP_TYPE_PSK = 255
00054
00055 } EapType;
00056
00057 #endif
00058