Home
last modified time | relevance | path

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

12

/hostap-latest/src/eap_peer/
Deap_fast.c527 nak->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | EAP_TLV_NAK_TLV); in eap_fast_tlv_nak()
528 nak->length = host_to_be16(6); in eap_fast_tlv_nak()
530 nak->nak_type = host_to_be16(tlv_type); in eap_fast_tlv_nak()
545 result->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_fast_tlv_result()
549 result->length = host_to_be16(2); in eap_fast_tlv_result()
550 result->status = host_to_be16(status); in eap_fast_tlv_result()
567 ack->tlv_type = host_to_be16(EAP_TLV_PAC_TLV | in eap_fast_tlv_pac_ack()
569 ack->length = host_to_be16(sizeof(*ack) - sizeof(struct eap_tlv_hdr)); in eap_fast_tlv_pac_ack()
570 ack->pac_type = host_to_be16(PAC_TYPE_PAC_ACKNOWLEDGEMENT); in eap_fast_tlv_pac_ack()
571 ack->pac_len = host_to_be16(2); in eap_fast_tlv_pac_ack()
[all …]
Deap_teap.c513 nak->tlv_type = host_to_be16(TEAP_TLV_MANDATORY | TEAP_TLV_NAK); in eap_teap_tlv_nak()
514 nak->length = host_to_be16(6); in eap_teap_tlv_nak()
516 nak->nak_type = host_to_be16(tlv_type); in eap_teap_tlv_nak()
533 ack->tlv_type = host_to_be16(TEAP_TLV_PAC | TEAP_TLV_MANDATORY); in eap_teap_tlv_pac_ack()
534 ack->length = host_to_be16(sizeof(*ack) - sizeof(struct teap_tlv_hdr)); in eap_teap_tlv_pac_ack()
535 ack->pac_type = host_to_be16(PAC_TYPE_PAC_ACKNOWLEDGEMENT); in eap_teap_tlv_pac_ack()
536 ack->pac_len = host_to_be16(2); in eap_teap_tlv_pac_ack()
537 ack->result = host_to_be16(TEAP_STATUS_SUCCESS); in eap_teap_tlv_pac_ack()
690 rbind->tlv_type = host_to_be16(TEAP_TLV_MANDATORY | in eap_teap_write_crypto_binding()
692 rbind->length = host_to_be16(sizeof(*rbind) - in eap_teap_write_crypto_binding()
[all …]
Deap_peap.c874 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_decrypt()
954 host_to_be16(sizeof(*rhdr)); in eap_peap_decrypt()
978 rhdr->length = host_to_be16(sizeof(*rhdr)); in eap_peap_decrypt()
Deap_ttls.c1110 hdr->length = host_to_be16(sizeof(*hdr) + 1); in eap_ttls_fake_identity_request()
/hostap-latest/src/eap_server/
Deap_server_fast.c609 result->tlv_type = host_to_be16( in eap_fast_build_crypto_binding()
612 result->length = host_to_be16(2); in eap_fast_build_crypto_binding()
613 result->status = host_to_be16(EAP_TLV_RESULT_SUCCESS); in eap_fast_build_crypto_binding()
621 result->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_fast_build_crypto_binding()
623 result->length = host_to_be16(2); in eap_fast_build_crypto_binding()
624 result->status = host_to_be16(EAP_TLV_RESULT_SUCCESS); in eap_fast_build_crypto_binding()
629 binding->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_fast_build_crypto_binding()
631 binding->length = host_to_be16(sizeof(*binding) - in eap_fast_build_crypto_binding()
762 pac_tlv->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_fast_build_pac()
774 pac_info->type = host_to_be16(PAC_TYPE_PAC_INFO); in eap_fast_build_pac()
[all …]
Deap_server_teap.c642 result->tlv_type = host_to_be16(TEAP_TLV_MANDATORY | in eap_teap_build_crypto_binding()
644 result->length = host_to_be16(2); in eap_teap_build_crypto_binding()
645 result->status = host_to_be16(TEAP_STATUS_SUCCESS); in eap_teap_build_crypto_binding()
653 result->tlv_type = host_to_be16(TEAP_TLV_MANDATORY | in eap_teap_build_crypto_binding()
655 result->length = host_to_be16(2); in eap_teap_build_crypto_binding()
656 result->status = host_to_be16(TEAP_STATUS_SUCCESS); in eap_teap_build_crypto_binding()
661 cb->tlv_type = host_to_be16(TEAP_TLV_MANDATORY | in eap_teap_build_crypto_binding()
663 cb->length = host_to_be16(sizeof(*cb) - sizeof(struct teap_tlv_hdr)); in eap_teap_build_crypto_binding()
811 pac_tlv->tlv_type = host_to_be16(TEAP_TLV_MANDATORY | TEAP_TLV_PAC); in eap_teap_build_pac()
822 pac_info->type = host_to_be16(PAC_TYPE_PAC_INFO); in eap_teap_build_pac()
[all …]
Deap_server_peap.c510 hdr->length = host_to_be16(req_len); in eap_peap_build_phase2_term()
1156 nhdr->length = host_to_be16(sizeof(struct eap_hdr) + in eap_peap_process_phase2()
Deap_server.c1573 resp->length = host_to_be16(sizeof(*resp)); in eap_sm_buildSuccess()
1591 resp->length = host_to_be16(sizeof(*resp)); in eap_sm_buildFailure()
/hostap-latest/src/eap_common/
Deap_teap_common.c27 hdr.tlv_type = host_to_be16(type); in eap_teap_put_tlv_hdr()
28 hdr.length = host_to_be16(len); in eap_teap_put_tlv_hdr()
667 result->tlv_type = host_to_be16(TEAP_TLV_MANDATORY | in eap_teap_tlv_result()
671 result->length = host_to_be16(2); in eap_teap_tlv_result()
672 result->status = host_to_be16(status); in eap_teap_tlv_result()
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.c1020 eap->length = host_to_be16(wpabuf_len(msg->buf)); in eap_sim_msg_finish()
/hostap-latest/src/utils/
Dcommon.h148 #define host_to_be16(n) wpa_swap_16(n) macro
165 #define host_to_be16(n) sys_cpu_to_be16(n) macro
196 #define host_to_be16(n) ((__force be16) bswap_16((n))) macro
209 #define host_to_be16(n) (n) macro
/hostap-latest/src/radius/
Dradius.c470 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish()
475 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish()
496 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish_srv()
535 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish_das_resp()
564 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish_acct()
585 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish_acct_resp()
/hostap-latest/tests/fuzzing/eapol-supp/
Deapol-supp.c85 hdr->length = host_to_be16(data_len); in alloc_eapol()
/hostap-latest/src/ap/
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.c74 xhdr->length = host_to_be16(datalen); in ieee802_1x_send()
293 hdr->length = host_to_be16(len); in ieee802_1x_tx_key_one()
Dwpa_auth_glue.c818 buf->h_proto = host_to_be16(proto); in hostapd_wpa_auth_send_ether()
/hostap-latest/tests/fuzzing/eapol-key-supp/
Deapol-key-supp.c137 hdr->length = host_to_be16(data_len); in supp_alloc_eapol()
/hostap-latest/wpa_supplicant/
Dibss_rsn.c100 hdr->length = host_to_be16(data_len); in supp_alloc_eapol()
Dwpas_glue.c75 hdr->length = host_to_be16(data_len); in wpa_alloc_eapol()
/hostap-latest/src/pae/
Dieee802_1x_kay.c2474 ether_hdr->ethertype = host_to_be16(ETH_P_EAPOL); in ieee802_1x_kay_encode_mkpdu()
2483 eapol_hdr->length = host_to_be16(wpabuf_tailroom(pbuf)); in ieee802_1x_kay_encode_mkpdu()
3524 kay->actor_sci.port = host_to_be16(port ? port : 0x0001); in ieee802_1x_kay_init()
/hostap-latest/src/eapol_auth/
Deapol_auth_sm.c95 eap.length = host_to_be16(sizeof(eap)); in eapol_auth_tx_canned_eap()
/hostap-latest/src/drivers/
Ddriver_atheros.c1677 eth->h_proto = host_to_be16(ETH_P_EAPOL); in atheros_send_eapol()

12