eap_defs.h

Go to the documentation of this file.
00001 
00016 #ifndef EAP_DEFS_H
00017 #define EAP_DEFS_H
00018 
00019 /* RFC 3748 - Extensible Authentication Protocol (EAP) */
00020 
00021 struct eap_hdr {
00022         u8 code;
00023         u8 identifier;
00024         u16 length; /* including code and identifier; network byte order */
00025         /* followed by length-4 octets of data */
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 /* EAP Request and Response data begins with one octet Type. Success and
00032  * Failure do not have additional data. */
00033 
00034 typedef enum {
00035         EAP_TYPE_NONE = 0,
00036         EAP_TYPE_IDENTITY = 1 /* RFC 3748 */,
00037         EAP_TYPE_NOTIFICATION = 2 /* RFC 3748 */,
00038         EAP_TYPE_NAK = 3 /* Response only, RFC 3748 */,
00039         EAP_TYPE_MD5 = 4, /* RFC 3748 */
00040         EAP_TYPE_OTP = 5 /* RFC 3748 */,
00041         EAP_TYPE_GTC = 6, /* RFC 3748 */
00042         EAP_TYPE_TLS = 13 /* RFC 2716 */,
00043         EAP_TYPE_LEAP = 17 /* Cisco proprietary */,
00044         EAP_TYPE_SIM = 18 /* draft-haverinen-pppext-eap-sim-12.txt */,
00045         EAP_TYPE_TTLS = 21 /* draft-ietf-pppext-eap-ttls-02.txt */,
00046         EAP_TYPE_AKA = 23 /* draft-arkko-pppext-eap-aka-12.txt */,
00047         EAP_TYPE_PEAP = 25 /* draft-josefsson-pppext-eap-tls-eap-06.txt */,
00048         EAP_TYPE_MSCHAPV2 = 26 /* draft-kamath-pppext-eap-mschapv2-00.txt */,
00049         EAP_TYPE_TLV = 33 /* draft-josefsson-pppext-eap-tls-eap-07.txt */,
00050         EAP_TYPE_FAST = 43 /* draft-cam-winget-eap-fast-00.txt */,
00051         EAP_TYPE_PAX = 46, /* draft-clancy-eap-pax-04.txt */
00052         EAP_TYPE_EXPANDED_NAK = 254 /* RFC 3748 */,
00053         EAP_TYPE_PSK = 255 /* EXPERIMENTAL - type not yet allocated
00054                             * draft-bersani-eap-psk-09 */
00055 } EapType;
00056 
00057 #endif /* EAP_DEFS_H */
00058 

Generated on Sat May 6 21:13:34 2006 for wpa_supplicant by  doxygen 1.4.2