28 #define EAP_CODE_REQUEST 1 31 #define EAP_CODE_RESPONSE 2 44 #define EAP_TYPE_NONE 0 47 #define EAP_TYPE_IDENTITY 1 50 #define EAP_TYPE_NAK 3 53 #define EAP_TYPE_MD5 4 64 #define EAP_TYPE_MSCHAPV2 26 93 #define EAP_CODE_SUCCESS 3 96 #define EAP_CODE_FAILURE 4 117 #define EAP_BLOCK_TIMEOUT ( 45 * TICKS_PER_SEC ) 135 #define EAP_WAIT_TIMEOUT ( EAP_BLOCK_TIMEOUT * 7 / 8 ) 156 const void *
data,
size_t len );
164 #define EAP_FL_ONGOING 0x0001 174 #define EAP_FL_PASSIVE 0x0002 189 const void *req,
size_t req_len );
193 #define EAP_METHODS __table ( struct eap_method, "eap_methods" ) 196 #define __eap_method __table_entry ( EAP_METHODS, 01 ) 199 const void *
rsp,
size_t rsp_len );
201 const void *
data,
size_t len );
int eap_rx(struct eap_supplicant *supplicant, const void *data, size_t len)
Handle EAP packet.
EAP MS-CHAPv2 request/response type data.
uint8_t data[0]
Type data.
struct eap_message msg
Request/response message.
int eap_tx_response(struct eap_supplicant *supplicant, const void *rsp, size_t rsp_len)
Transmit EAP response.
struct eap_header hdr
Header.
EAP MD5 challenge request/response type data.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
EAP request/response message.
uint8_t id
ID for current request/response.
struct eap_header hdr
Header.
int(* rx)(struct eap_supplicant *supplicant, const void *req, size_t req_len)
Handle EAP request.
Network device management.
int(* tx)(struct eap_supplicant *supplicant, const void *data, size_t len)
Transmit EAP response.
uint8_t type
Type for current request/response.
uint8_t data[48]
Additional event data.
struct net_device * netdev
Network device.