diff options
author | sam <sam@FreeBSD.org> | 2006-03-07 05:47:04 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-03-07 05:47:04 +0000 |
commit | 8d55057fb42bf9070fd379acbcb6fc4ef793d2a7 (patch) | |
tree | dacc7977efdefefb8b105113edeb5215c0e01234 /contrib/hostapd/eap_defs.h | |
parent | d1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0 (diff) | |
download | FreeBSD-src-8d55057fb42bf9070fd379acbcb6fc4ef793d2a7.zip FreeBSD-src-8d55057fb42bf9070fd379acbcb6fc4ef793d2a7.tar.gz |
Import of hostapd 0.4.8
Diffstat (limited to 'contrib/hostapd/eap_defs.h')
-rw-r--r-- | contrib/hostapd/eap_defs.h | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/contrib/hostapd/eap_defs.h b/contrib/hostapd/eap_defs.h index effe665..9cd4490 100644 --- a/contrib/hostapd/eap_defs.h +++ b/contrib/hostapd/eap_defs.h @@ -1,3 +1,17 @@ +/* + * WPA Supplicant/hostapd / Shared EAP definitions + * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + #ifndef EAP_DEFS_H #define EAP_DEFS_H @@ -6,7 +20,7 @@ struct eap_hdr { u8 code; u8 identifier; - u16 length; /* including code and identifier */ + u16 length; /* including code and identifier; network byte order */ /* followed by length-4 octets of data */ } __attribute__ ((packed)); @@ -18,12 +32,12 @@ enum { EAP_CODE_REQUEST = 1, EAP_CODE_RESPONSE = 2, EAP_CODE_SUCCESS = 3, typedef enum { EAP_TYPE_NONE = 0, - EAP_TYPE_IDENTITY = 1, - EAP_TYPE_NOTIFICATION = 2, - EAP_TYPE_NAK = 3 /* Response only */, - EAP_TYPE_MD5 = 4, - EAP_TYPE_OTP = 5 /* RFC 2284 */, - EAP_TYPE_GTC = 6, /* RFC 2284 */ + EAP_TYPE_IDENTITY = 1 /* RFC 3748 */, + EAP_TYPE_NOTIFICATION = 2 /* RFC 3748 */, + EAP_TYPE_NAK = 3 /* Response only, RFC 3748 */, + EAP_TYPE_MD5 = 4, /* RFC 3748 */ + EAP_TYPE_OTP = 5 /* RFC 3748 */, + EAP_TYPE_GTC = 6, /* RFC 3748 */ EAP_TYPE_TLS = 13 /* RFC 2716 */, EAP_TYPE_LEAP = 17 /* Cisco proprietary */, EAP_TYPE_SIM = 18 /* draft-haverinen-pppext-eap-sim-12.txt */, @@ -33,9 +47,10 @@ typedef enum { EAP_TYPE_MSCHAPV2 = 26 /* draft-kamath-pppext-eap-mschapv2-00.txt */, EAP_TYPE_TLV = 33 /* draft-josefsson-pppext-eap-tls-eap-07.txt */, EAP_TYPE_FAST = 43 /* draft-cam-winget-eap-fast-00.txt */, + EAP_TYPE_PAX = 46, /* draft-clancy-eap-pax-04.txt */ EAP_TYPE_EXPANDED_NAK = 254 /* RFC 3748 */, EAP_TYPE_PSK = 255 /* EXPERIMENTAL - type not yet allocated - * draft-bersani-eap-psk-03 */ + * draft-bersani-eap-psk-09 */ } EapType; #endif /* EAP_DEFS_H */ |