Home
last modified time | relevance | path

Searched refs:host_to_be16 (Results 1 – 25 of 25) sorted by relevance

/external/wpa_supplicant_8/src/eap_peer/
Deap_fast.c506 nak->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | EAP_TLV_NAK_TLV); in eap_fast_tlv_nak()
507 nak->length = host_to_be16(6); in eap_fast_tlv_nak()
509 nak->nak_type = host_to_be16(tlv_type); in eap_fast_tlv_nak()
524 result->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_fast_tlv_result()
528 result->length = host_to_be16(2); in eap_fast_tlv_result()
529 result->status = host_to_be16(status); in eap_fast_tlv_result()
546 ack->tlv_type = host_to_be16(EAP_TLV_PAC_TLV | in eap_fast_tlv_pac_ack()
548 ack->length = host_to_be16(sizeof(*ack) - sizeof(struct eap_tlv_hdr)); in eap_fast_tlv_pac_ack()
549 ack->pac_type = host_to_be16(PAC_TYPE_PAC_ACKNOWLEDGEMENT); in eap_fast_tlv_pac_ack()
550 ack->pac_len = host_to_be16(2); in eap_fast_tlv_pac_ack()
[all …]
Deap_peap.c820 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_decrypt()
901 host_to_be16(sizeof(*rhdr)); in eap_peap_decrypt()
925 rhdr->length = host_to_be16(sizeof(*rhdr)); in eap_peap_decrypt()
Deap_ttls.c1056 hdr->length = host_to_be16(sizeof(*hdr) + 1); in eap_ttls_fake_identity_request()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_fast.c618 result->tlv_type = host_to_be16( in eap_fast_build_crypto_binding()
621 result->length = host_to_be16(2); in eap_fast_build_crypto_binding()
622 result->status = host_to_be16(EAP_TLV_RESULT_SUCCESS); in eap_fast_build_crypto_binding()
630 result->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_fast_build_crypto_binding()
632 result->length = host_to_be16(2); in eap_fast_build_crypto_binding()
633 result->status = host_to_be16(EAP_TLV_RESULT_SUCCESS); in eap_fast_build_crypto_binding()
638 binding->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_fast_build_crypto_binding()
640 binding->length = host_to_be16(sizeof(*binding) - in eap_fast_build_crypto_binding()
771 pac_tlv->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_fast_build_pac()
783 pac_info->type = host_to_be16(PAC_TYPE_PAC_INFO); in eap_fast_build_pac()
[all …]
Deap_server_peap.c492 hdr->length = host_to_be16(req_len); in eap_peap_build_phase2_term()
1107 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_process_phase2()
Deap_server.c1555 resp->length = host_to_be16(sizeof(*resp)); in eap_sm_buildSuccess()
1573 resp->length = host_to_be16(sizeof(*resp)); in eap_sm_buildFailure()
/external/wpa_supplicant_8/src/ap/
Diapp.c187 hdr->identifier = host_to_be16(iapp->identifier++); in iapp_send_add()
188 hdr->length = host_to_be16(sizeof(*hdr) + sizeof(*add)); in iapp_send_add()
195 add->seq_num = host_to_be16(seq_num); in iapp_send_add()
219 msg.len = host_to_be16(6); in iapp_send_layer2_update()
Deth_p_oui.c179 ethhdr->h_proto = host_to_be16(ETH_P_OUI); in eth_p_oui_send()
Dpreauth_auth.c256 ethhdr->h_proto = host_to_be16(ETH_P_PREAUTH); in rsn_preauth_send()
Dieee802_1x.c67 xhdr->length = host_to_be16(datalen); in ieee802_1x_send()
201 hdr->length = host_to_be16(len); in ieee802_1x_tx_key_one()
Dwpa_auth_glue.c631 buf->h_proto = host_to_be16(proto); in hostapd_wpa_auth_send_ether()
Dwpa_auth.c1477 hdr->length = host_to_be16(len - sizeof(*hdr)); in __wpa_send_eapol()
/external/wpa_supplicant_8/src/eap_common/
Deap_common.c144 hdr->length = host_to_be16(len); in eap_msg_alloc()
173 hdr->length = host_to_be16(wpabuf_len(msg)); in eap_update_len()
Deap_fast_common.c22 hdr.type = host_to_be16(type); in eap_fast_put_tlv_hdr()
23 hdr.len = host_to_be16(len); in eap_fast_put_tlv_hdr()
Deap_sim_common.c1015 eap->length = host_to_be16(wpabuf_len(msg->buf)); in eap_sim_msg_finish()
/external/wpa_supplicant_8/src/utils/
Dcommon.h148 #define host_to_be16(n) wpa_swap_16(n) macro
178 #define host_to_be16(n) ((__force be16) bswap_16((n))) macro
191 #define host_to_be16(n) (n) macro
/external/wpa_supplicant_8/src/radius/
Dradius.c383 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish()
387 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish()
413 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish_srv()
456 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish_das_resp()
484 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish_acct()
505 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish_acct_resp()
Dradius_server.c1411 eapfail.length = host_to_be16(sizeof(eapfail)); in radius_server_reject()
/external/wpa_supplicant_8/tests/
Dtest-eapol.c206 hdr->length = host_to_be16(data_len); in supp_alloc_eapol()
/external/wpa_supplicant_8/wpa_supplicant/
Dibss_rsn.c94 hdr->length = host_to_be16(data_len); in supp_alloc_eapol()
Dwpas_glue.c74 hdr->length = host_to_be16(data_len); in wpa_alloc_eapol()
/external/wpa_supplicant_8/src/pae/
Dieee802_1x_kay.c2407 ether_hdr->ethertype = host_to_be16(ETH_P_EAPOL); in ieee802_1x_kay_encode_mkpdu()
2416 eapol_hdr->length = host_to_be16(wpabuf_tailroom(pbuf)); in ieee802_1x_kay_encode_mkpdu()
3438 kay->actor_sci.port = host_to_be16(port ? port : 0x0001); in ieee802_1x_kay_init()
/external/wpa_supplicant_8/src/eapol_auth/
Deapol_auth_sm.c94 eap.length = host_to_be16(sizeof(eap)); in eapol_auth_tx_canned_eap()
/external/wpa_supplicant_8/src/drivers/
Ddriver_atheros.c1687 eth->h_proto = host_to_be16(ETH_P_EAPOL); in atheros_send_eapol()
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa.c125 hdr->length = host_to_be16(eapol_len); in wpa_eapol_key_send()