Home
last modified time | relevance | path

Searched refs:ehdr (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.6.0/components/wpa_supplicant/esp_supplicant/src/
Desp_wpa2.c370 struct eap_hdr *ehdr; in eap_sm_process_request() local
376 if (reqData == NULL || wpabuf_len(reqData) < sizeof(*ehdr)) { in eap_sm_process_request()
380 ehdr = (struct eap_hdr *)wpabuf_head(reqData); in eap_sm_process_request()
381 plen = be_to_host16(ehdr->length); in eap_sm_process_request()
386 if (ehdr->identifier == sm->current_identifier && in eap_sm_process_request()
393 sm->current_identifier = ehdr->identifier; in eap_sm_process_request()
395 pos = (u8 *)(ehdr + 1); in eap_sm_process_request()
398 resp = (struct wpabuf *)eap_sm_build_identity_resp(sm, ehdr->identifier, 0); in eap_sm_process_request()
404 if (plen < sizeof(*ehdr) + 8) { in eap_sm_process_request()
452 resp = (struct wpabuf *)eap_sm_build_nak(sm, type, ehdr->identifier); in eap_sm_process_request()
[all …]
Desp_wps.c1141 struct eap_hdr *ehdr; in wps_sm_rx_eapol_internal() local
1152 if (len < sizeof(*hdr) + sizeof(*ehdr)) { in wps_sm_rx_eapol_internal()
1157 (unsigned long) sizeof(*hdr) + sizeof(*ehdr)); in wps_sm_rx_eapol_internal()
1165 ehdr = (struct eap_hdr *) (hdr + 1); in wps_sm_rx_eapol_internal()
1168 eap_len = be_to_host16(ehdr->length); in wps_sm_rx_eapol_internal()
1186 if (plen > len - sizeof(*hdr) || plen < sizeof(*ehdr)) { in wps_sm_rx_eapol_internal()
1215 eap_code = ehdr->code; in wps_sm_rx_eapol_internal()
1230 eap_type = ((u8 *)ehdr)[sizeof(*ehdr)]; in wps_sm_rx_eapol_internal()
1234 sm->current_identifier = ehdr->identifier; in wps_sm_rx_eapol_internal()
1237 ret = wps_send_eap_identity_rsp(ehdr->identifier); in wps_sm_rx_eapol_internal()
[all …]
/hal_espressif-3.6.0/components/wpa_supplicant/src/eap_peer/
Deap_fast.c1389 struct eap_tlv_hdr *ehdr; in eap_fast_use_pac_opaque() local
1392 tlv_len = sizeof(*ehdr) + olen; in eap_fast_use_pac_opaque()
1395 ehdr = (struct eap_tlv_hdr *) tlv; in eap_fast_use_pac_opaque()
1396 ehdr->tlv_type = host_to_be16(PAC_TYPE_PAC_OPAQUE); in eap_fast_use_pac_opaque()
1397 ehdr->length = host_to_be16(olen); in eap_fast_use_pac_opaque()
1398 os_memcpy(ehdr + 1, pac->pac_opaque, olen); in eap_fast_use_pac_opaque()