added EAP PEAP and MSTLV protocols

This commit is contained in:
Andreas Steffen
2011-04-05 17:59:49 +02:00
parent dcfb8177b3
commit 6f05ad829a
2 changed files with 24 additions and 4 deletions
+13
View File
@@ -60,7 +60,9 @@ enum eap_type_t {
EAP_SIM = 18,
EAP_TTLS = 21,
EAP_AKA = 23,
EAP_PEAP = 25,
EAP_MSCHAPV2 = 26,
EAP_MSTLV = 33,
EAP_TNC = 38,
/** select EAP method dynamically based on i.e. EAP-Identity */
EAP_DYNAMIC = 252,
@@ -80,6 +82,17 @@ extern enum_name_t *eap_type_names;
*/
extern enum_name_t *eap_type_short_names;
/**
* EAP packet format
*/
typedef struct __attribute__((packed)) {
u_int8_t code;
u_int8_t identifier;
u_int16_t length;
u_int8_t type;
u_int8_t data;
} eap_packet_t;
/**
* Lookup the EAP method type from a string.
*