diff options
author | sam <sam@FreeBSD.org> | 2005-06-05 22:41:14 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-06-05 22:41:14 +0000 |
commit | eb7b540c922bc88123e7df70c4059596d899dbcc (patch) | |
tree | f96a92b0c5e547f1c6327d3723d966d19db632e8 /contrib/hostapd/ieee802_1x.h | |
parent | 8e870af29caa54c0b7db4f281d2aff58a0e13121 (diff) | |
download | FreeBSD-src-eb7b540c922bc88123e7df70c4059596d899dbcc.zip FreeBSD-src-eb7b540c922bc88123e7df70c4059596d899dbcc.tar.gz |
apply important fixes from development branch
Diffstat (limited to 'contrib/hostapd/ieee802_1x.h')
-rw-r--r-- | contrib/hostapd/ieee802_1x.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/hostapd/ieee802_1x.h b/contrib/hostapd/ieee802_1x.h index 3916138..9d2567a 100644 --- a/contrib/hostapd/ieee802_1x.h +++ b/contrib/hostapd/ieee802_1x.h @@ -1,3 +1,5 @@ +/* $FreeBSD$ */ + #ifndef IEEE802_1X_H #define IEEE802_1X_H @@ -10,7 +12,13 @@ struct ieee802_1x_hdr { /* followed by length octets of data */ } __attribute__ ((packed)); + +#if defined(IEEE802_1X_EAPOL_VERSION_2) #define EAPOL_VERSION 2 +#else +/* Enable support for older Authenticators/Supplicants using EAPOL Version 1 */ +#define EAPOL_VERSION 1 +#endif /* ! IEEE802_1X_EAPOL_VERSION_2 */ enum { IEEE802_1X_TYPE_EAP_PACKET = 0, IEEE802_1X_TYPE_EAPOL_START = 1, @@ -80,5 +88,7 @@ int ieee802_1x_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen); int ieee802_1x_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen); void hostapd_get_ntp_timestamp(u8 *buf); +void ieee802_1x_finished(struct hostapd_data *hapd, struct sta_info *sta, + int success); #endif /* IEEE802_1X_H */ |