eapol_common.h

Go to the documentation of this file.
00001 
00016 #ifndef EAPOL_COMMON_H
00017 #define EAPOL_COMMON_H
00018 
00019 /* IEEE Std 802.1X-2004 */
00020 
00021 #ifdef _MSC_VER
00022 #pragma pack(push, 1)
00023 #endif /* _MSC_VER */
00024 
00025 struct ieee802_1x_hdr {
00026         u8 version;
00027         u8 type;
00028         be16 length;
00029         /* followed by length octets of data */
00030 } STRUCT_PACKED;
00031 
00032 #ifdef _MSC_VER
00033 #pragma pack(pop)
00034 #endif /* _MSC_VER */
00035 
00036 #define EAPOL_VERSION 2
00037 
00038 enum { IEEE802_1X_TYPE_EAP_PACKET = 0,
00039        IEEE802_1X_TYPE_EAPOL_START = 1,
00040        IEEE802_1X_TYPE_EAPOL_LOGOFF = 2,
00041        IEEE802_1X_TYPE_EAPOL_KEY = 3,
00042        IEEE802_1X_TYPE_EAPOL_ENCAPSULATED_ASF_ALERT = 4
00043 };
00044 
00045 enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = 2,
00046        EAPOL_KEY_TYPE_WPA = 254 };
00047 
00048 #endif /* EAPOL_COMMON_H */
00049 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:49 2009 for hostapd by  doxygen 1.6.1