/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | drv_callbacks.c | 702 const struct ieee80211_hdr *hdr; local 721 hdr = (const struct ieee80211_hdr *) rx_mgmt->frame; 722 bssid = get_hdr_bssid(hdr, rx_mgmt->frame_len); 729 fc = le_to_host16(hdr->frame_control); 773 struct ieee80211_hdr *hdr; local 774 hdr = (struct ieee80211_hdr *) buf; 775 hapd = get_hapd_bssid(hapd->iface, get_hdr_bssid(hdr, len)); 958 const struct ieee80211_hdr *hdr; local 960 hdr = (const struct ieee80211_hdr *) data->rx_mgmt.frame; 961 fc = le_to_host16(hdr [all...] |
H A D | iapp.c | 181 struct iapp_hdr *hdr; local 188 hdr = (struct iapp_hdr *) buf; 189 hdr->version = IAPP_VERSION; 190 hdr->command = IAPP_CMD_ADD_notify; 191 hdr->identifier = host_to_be16(iapp->identifier++); 192 hdr->length = host_to_be16(sizeof(*hdr) + sizeof(*add)); 194 add = (struct iapp_add_notify *) (hdr + 1); 266 struct iapp_hdr *hdr, int len) 268 struct iapp_add_notify *add = (struct iapp_add_notify *) (hdr 264 iapp_process_add_notify(struct iapp_data *iapp, struct sockaddr_in *from, struct iapp_hdr *hdr, int len) argument 314 struct iapp_hdr *hdr; local [all...] |
H A D | ieee802_11_auth.c | 484 struct radius_hdr *hdr = radius_msg_get_hdr(msg); local 489 if (query->radius_id == hdr->identifier) 506 if (hdr->code != RADIUS_CODE_ACCESS_ACCEPT && 507 hdr->code != RADIUS_CODE_ACCESS_REJECT) { 509 "query", hdr->code); 521 if (hdr->code == RADIUS_CODE_ACCESS_ACCEPT) {
|
H A D | ieee802_1x.c | 120 struct ieee802_1x_hdr *hdr; local 129 buf = os_zalloc(sizeof(*hdr) + len); 133 hdr = (struct ieee802_1x_hdr *) buf; 134 key = (struct ieee802_1x_eapol_key *) (hdr + 1); 177 hdr->version = hapd->conf->eapol_version; 178 hdr->type = IEEE802_1X_TYPE_EAPOL_KEY; 179 hdr->length = host_to_be16(len); 180 hmac_md5(sm->eap_if->eapKeyData + 32, 32, buf, sizeof(*hdr) + len, 780 struct ieee802_1x_hdr *hdr; local 800 if (len < sizeof(*hdr)) { 1109 const struct eap_hdr *hdr; local 1534 struct radius_hdr *hdr = radius_msg_get_hdr(msg); local 2071 struct ieee80211_hdr *hdr; local [all...] |
H A D | preauth_auth.c | 46 struct ieee802_1x_hdr *hdr; local 52 if (len < sizeof(*ethhdr) + sizeof(*hdr)) { 59 hdr = (struct ieee802_1x_hdr *) (ethhdr + 1); 73 if (!sta && hdr->type == IEEE802_1X_TYPE_EAPOL_START) {
|
H A D | wpa_auth.c | 789 struct ieee802_1x_hdr *hdr; local 803 if (data_len < sizeof(*hdr) + sizeof(*key)) 806 hdr = (struct ieee802_1x_hdr *) data; 807 key = (struct wpa_eapol_key *) (hdr + 1); 813 if (key_data_length > data_len - sizeof(*hdr) - sizeof(*key)) { 817 (unsigned long) (data_len - sizeof(*hdr) - 1285 struct ieee802_1x_hdr *hdr; local 1332 hdr = os_zalloc(len); 1333 if (hdr == NULL) 1335 hdr 1478 struct ieee802_1x_hdr *hdr; local 2091 u8 hdr[2]; local 2334 u8 *kde, *pos, hdr[2]; local [all...] |
H A D | wpa_auth_ft.c | 102 struct rsn_ftie *hdr; local 104 if (len < 2 + sizeof(*hdr) + 2 + FT_R1KH_ID_LEN + 2 + r0kh_id_len + 111 hdr = (struct rsn_ftie *) pos; 112 os_memset(hdr, 0, sizeof(*hdr)); 113 pos += sizeof(*hdr); 114 WPA_PUT_LE16(hdr->mic_control, 0); 116 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); 118 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN);
|
H A D | wpa_auth_ie.c | 29 struct wpa_ie_hdr *hdr; local 34 hdr = (struct wpa_ie_hdr *) buf; 35 hdr->elem_id = WLAN_EID_VENDOR_SPECIFIC; 36 RSN_SELECTOR_PUT(hdr->oui, WPA_OUI_TYPE); 37 WPA_PUT_LE16(hdr->version, WPA_VERSION); 38 pos = (u8 *) (hdr + 1); 85 hdr->len = (pos - buf) - 2; 94 struct rsn_ie_hdr *hdr; local 100 hdr = (struct rsn_ie_hdr *) buf; 101 hdr [all...] |
/external/wpa_supplicant_8/hostapd/src/common/ |
H A D | ieee802_11_common.c | 381 const u8 * get_hdr_bssid(const struct ieee80211_hdr *hdr, size_t len) argument 392 fc = le_to_host16(hdr->frame_control); 403 return hdr->addr1; 405 return hdr->addr2; 412 return hdr->addr1; 414 return hdr->addr3;
|
H A D | wpa_common.c | 436 const struct rsn_ie_hdr *hdr; local 466 hdr = (const struct rsn_ie_hdr *) rsn_ie; 468 if (hdr->elem_id != WLAN_EID_RSN || 469 hdr->len != rsn_ie_len - 2 || 470 WPA_GET_LE16(hdr->version) != RSN_VERSION) { 476 pos = (const u8 *) (hdr + 1); 477 left = rsn_ie_len - sizeof(*hdr); 622 const struct wpa_ie_hdr *hdr; local 648 hdr = (const struct wpa_ie_hdr *) wpa_ie; 650 if (hdr [all...] |
/external/wpa_supplicant_8/hostapd/src/crypto/ |
H A D | aes-eax.c | 21 * @hdr: Header data to be authenticity protected 29 const u8 *hdr, size_t hdr_len, 58 os_memcpy(buf + 16, hdr, hdr_len); 85 * @hdr: Header data to be authenticity protected 93 const u8 *hdr, size_t hdr_len, 124 os_memcpy(buf + 16, hdr, hdr_len); 28 aes_128_eax_encrypt(const u8 *key, const u8 *nonce, size_t nonce_len, const u8 *hdr, size_t hdr_len, u8 *data, size_t data_len, u8 *tag) argument 92 aes_128_eax_decrypt(const u8 *key, const u8 *nonce, size_t nonce_len, const u8 *hdr, size_t hdr_len, u8 *data, size_t data_len, const u8 *tag) argument
|
H A D | crypto_cryptoapi.c | 161 BLOBHEADER hdr; member in struct:__anon33583 167 key_blob.hdr.bType = PLAINTEXTKEYBLOB; 168 key_blob.hdr.bVersion = CUR_BLOB_VERSION; 169 key_blob.hdr.reserved = 0; 170 key_blob.hdr.aiKeyAlg = CALG_DES; 240 BLOBHEADER hdr; member in struct:__anon33584 249 key_blob.hdr.bType = PLAINTEXTKEYBLOB; 250 key_blob.hdr.bVersion = CUR_BLOB_VERSION; 251 key_blob.hdr.reserved = 0; 252 key_blob.hdr 358 BLOBHEADER hdr; member in struct:__anon33585 513 BLOBHEADER hdr; member in struct:__anon33586 [all...] |
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | driver_hostap.c | 61 struct ieee80211_hdr *hdr; local 70 hdr = (struct ieee80211_hdr *) buf; 71 fc = le_to_host16(hdr->frame_control); 78 sa = hdr->addr2; 80 event.rx_from_unknown.bssid = get_hdr_bssid(hdr, len); 84 pos = (u8 *) (hdr + 1); 85 left = len - sizeof(*hdr); 122 struct ieee80211_hdr *hdr; local 126 hdr = (struct ieee80211_hdr *) buf; 127 fc = le_to_host16(hdr 142 struct ieee80211_hdr *hdr; local 270 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) msg; local 287 struct ieee80211_hdr *hdr; local 1143 struct ieee80211_hdr hdr; local [all...] |
H A D | driver_ndis.c | 1868 NDISUIO_DEVICE_NOTIFICATION *hdr; local 1885 hdr = (NDISUIO_DEVICE_NOTIFICATION *) buf; 1887 (int) len, hdr->dwNotificationType); 1889 switch (hdr->dwNotificationType) { 1916 drv, hdr->pvStatusBuffer, hdr->uiStatusBufferSize); 1919 drv, ((const u8 *) hdr) + hdr->uiOffsetToStatusBuffer, 1920 (size_t) hdr->uiStatusBufferSize); 1925 hdr [all...] |
H A D | driver_nl80211.c | 1869 const struct ieee80211_hdr *hdr; local 1889 hdr = (const struct ieee80211_hdr *) frame; 1890 fc = le_to_host16(hdr->frame_control); 1895 event.tx_status.dst = hdr->addr1; 8077 struct ieee80211_hdr *hdr; local 8081 hdr = (struct ieee80211_hdr *) buf; 8082 fc = le_to_host16(hdr->frame_control); 8087 event.tx_status.dst = hdr->addr1; 8098 struct ieee80211_hdr *hdr = (void *)buf; local 8102 if (len < sizeof(*hdr)) 8119 struct ieee80211_hdr *hdr; local 8582 struct ieee80211_hdr *hdr; local 10622 struct ieee80211_hdr *hdr; local 11527 struct ieee80211_hdr hdr; member in struct:__anon33628 [all...] |
H A D | driver_test.c | 302 struct ieee80211_hdr *hdr; local 454 hdr = (struct ieee80211_hdr *) data; 455 fc = le_to_host16(hdr->frame_control); 460 event.tx_status.dst = hdr->addr1; 705 struct ieee80211_hdr *hdr; local 741 hdr = (struct ieee80211_hdr *) data; 749 MAC2STR(hdr->addr2)); 750 memcpy(cli->addr, hdr->addr2, ETH_ALEN); 759 fc = le_to_host16(hdr->frame_control); 2538 struct ieee80211_hdr *hdr; local [all...] |
H A D | driver_wired.c | 117 struct ieee8023_hdr *hdr; local 130 hdr = (struct ieee8023_hdr *) buf; 132 switch (ntohs(hdr->ethertype)) { 135 sa = hdr->src; 140 pos = (u8 *) (hdr + 1); 141 left = len - sizeof(*hdr); 147 ntohs(hdr->ethertype)); 315 struct ieee8023_hdr *hdr; local 320 len = sizeof(*hdr) + data_len; 321 hdr [all...] |
H A D | netlink.c | 173 struct nlmsghdr hdr; member in struct:__anon33629 183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); 184 req.hdr.nlmsg_type = RTM_SETLINK; 185 req.hdr.nlmsg_flags = NLM_F_REQUEST; 186 req.hdr.nlmsg_seq = ++nl_seq; 187 req.hdr.nlmsg_pid = 0; 197 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 202 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + 207 ((char *) &req + NLMSG_ALIGN(req.hdr [all...] |
/external/wpa_supplicant_8/hostapd/src/eap_common/ |
H A D | eap_common.c | 27 const struct eap_hdr *hdr; local 33 hdr = wpabuf_head(msg); 35 if (wpabuf_len(msg) < sizeof(*hdr)) { 40 len = be_to_host16(hdr->length); 41 if (len < sizeof(*hdr) + min_payload || len > wpabuf_len(msg)) { 69 const struct eap_hdr *hdr; local 76 hdr = wpabuf_head(msg); 77 len = be_to_host16(hdr->length); 78 pos = (const u8 *) (hdr + 1); 83 if (len < sizeof(*hdr) 132 struct eap_hdr *hdr; local 169 struct eap_hdr *hdr; local [all...] |
H A D | eap_fast_common.c | 21 struct pac_tlv_hdr hdr; local 22 hdr.type = host_to_be16(type); 23 hdr.len = host_to_be16(len); 24 wpabuf_put_data(buf, &hdr, sizeof(hdr));
|
H A D | ikev2_common.c | 427 const struct ikev2_hdr *hdr, 474 (const u8 *) hdr, 475 integ - (const u8 *) hdr, hash) < 0) { 519 struct ikev2_hdr *hdr; local 522 hdr = wpabuf_mhead(msg); 523 WPA_PUT_BE32(hdr->length, wpabuf_len(msg)); 425 ikev2_decrypt_payload(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, const struct ikev2_hdr *hdr, const u8 *encrypted, size_t encrypted_len, size_t *res_len) argument
|
/external/wpa_supplicant_8/hostapd/src/eap_peer/ |
H A D | eap.c | 1236 const struct eap_hdr *hdr; local 1246 if (req == NULL || wpabuf_len(req) < sizeof(*hdr)) 1249 hdr = wpabuf_head(req); 1250 plen = be_to_host16(hdr->length); 1259 sm->reqId = hdr->identifier; 1267 switch (hdr->code) { 1269 if (plen < sizeof(*hdr) + 1) { 1275 pos = (const u8 *) (hdr + 1); 1278 if (plen < sizeof(*hdr) + 8) { 1300 if (plen < sizeof(*hdr) [all...] |
H A D | eap_fast.c | 414 struct eap_hdr *hdr, 417 size_t len = be_to_host16(hdr->length); 428 pos = (u8 *) (hdr + 1); 431 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1); 451 hdr, resp)) 467 wpabuf_set(&msg, hdr, len); 486 data->pending_phase2_req = wpabuf_alloc_copy(hdr, len); 558 struct eap_hdr *hdr; local 561 if (eap_payload_tlv_len < sizeof(*hdr)) { 568 hdr 411 eap_fast_phase2_request(struct eap_sm *sm, struct eap_fast_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument 861 struct pac_tlv_hdr *hdr; local 981 struct pac_tlv_hdr *hdr; local 1343 struct pac_tlv_hdr *hdr; local [all...] |
H A D | eap_peap.c | 456 * the buffer is large enough to contain full request (hdr->length bytes) and 595 struct eap_hdr *hdr = wpabuf_mhead(req); local 596 size_t len = be_to_host16(hdr->length); 606 pos = (u8 *) (hdr + 1); 610 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1); 647 hdr->identifier); 686 hdr, resp)) 727 data->pending_phase2_req = wpabuf_alloc_copy(hdr, len); 742 struct eap_hdr *hdr, *rhdr; local 787 hdr [all...] |
H A D | eap_tls_common.c | 1103 * @hdr: EAP-Request header (and the following EAP type octet) 1108 struct eap_hdr *hdr, struct wpabuf **resp) 1110 u8 *pos = (u8 *) (hdr + 1); 1118 EAP_CODE_RESPONSE, hdr->identifier); 1107 eap_peer_tls_phase2_nak(struct eap_method_type *types, size_t num_types, struct eap_hdr *hdr, struct wpabuf **resp) argument
|