/hostap-latest/src/utils/ |
D | radiotap.c | 20 [IEEE80211_RADIOTAP_TSFT] = { .align = 8, .size = 8, }, 21 [IEEE80211_RADIOTAP_FLAGS] = { .align = 1, .size = 1, }, 22 [IEEE80211_RADIOTAP_RATE] = { .align = 1, .size = 1, }, 23 [IEEE80211_RADIOTAP_CHANNEL] = { .align = 2, .size = 4, }, 24 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, }, 25 [IEEE80211_RADIOTAP_DBM_ANTSIGNAL] = { .align = 1, .size = 1, }, 26 [IEEE80211_RADIOTAP_DBM_ANTNOISE] = { .align = 1, .size = 1, }, 27 [IEEE80211_RADIOTAP_LOCK_QUALITY] = { .align = 2, .size = 2, }, 28 [IEEE80211_RADIOTAP_TX_ATTENUATION] = { .align = 2, .size = 2, }, 29 [IEEE80211_RADIOTAP_DB_TX_ATTENUATION] = { .align = 2, .size = 2, }, [all …]
|
D | os.h | 288 void *os_malloc(size_t size); 300 void *os_realloc(void *ptr, size_t size); 316 void * os_zalloc(size_t size); 330 static inline void * os_calloc(size_t nmemb, size_t size) in os_calloc() argument 332 if (size && nmemb > (~(size_t) 0) / size) in os_calloc() 334 return os_zalloc(nmemb * size); in os_calloc() 397 void * os_malloc(size_t size); 409 void * os_realloc(void *ptr, size_t size); 561 int os_snprintf(char *str, size_t size, const char *format, ...); 566 void * os_malloc(size_t size); [all …]
|
D | os_internal.c | 258 void * os_zalloc(size_t size) in os_zalloc() argument 260 void *n = os_malloc(size); in os_zalloc() 262 os_memset(n, 0, size); in os_zalloc() 267 void * os_malloc(size_t size) in os_malloc() argument 269 return malloc(size); in os_malloc() 273 void * os_realloc(void *ptr, size_t size) in os_realloc() argument 275 return realloc(ptr, size); in os_realloc() 491 int os_snprintf(char *str, size_t size, const char *format, ...) in os_snprintf() argument 501 ret = vsnprintf(str, size, format, ap); in os_snprintf() 503 if (size > 0) in os_snprintf() [all …]
|
D | os_none.c | 111 void * os_zalloc(size_t size) in os_zalloc() argument 124 void * os_malloc(size_t size) in os_malloc() argument 130 void * os_realloc(void *ptr, size_t size) in os_realloc() argument 221 size_t os_strlcpy(char *dest, const char *src, size_t size) in os_strlcpy() argument 238 int os_snprintf(char *str, size_t size, const char *format, ...) in os_snprintf() argument
|
D | wpabuf.c | 40 buf, (unsigned long) buf->size, (unsigned long) buf->used, in wpabuf_overflow() 69 if (buf->used + add_len > buf->size) { in wpabuf_resize() 101 buf->size = buf->used + add_len; in wpabuf_resize() 129 buf->size = len; in wpabuf_alloc() 151 buf->size = len; in wpabuf_alloc_ext_data() 221 if (buf->used > buf->size) { in wpabuf_put() 305 res = vsnprintf(tmp, buf->size - buf->used, fmt, ap); in wpabuf_printf() 307 if (res < 0 || (size_t) res >= buf->size - buf->used) in wpabuf_printf()
|
D | os_unix.c | 484 void * os_zalloc(size_t size) in os_zalloc() argument 486 return calloc(1, size); in os_zalloc() 727 void * os_malloc(size_t size) in os_malloc() argument 734 a = malloc(sizeof(*a) + size); in os_malloc() 739 a->len = size; in os_malloc() 745 void * os_realloc(void *ptr, size_t size) in os_realloc() argument 752 return os_malloc(size); in os_realloc() 762 n = os_malloc(size); in os_realloc() 766 if (copy_len > size) in os_realloc() 767 copy_len = size; in os_realloc() [all …]
|
D | config.c | 38 char * wpa_config_get_line(char *s, int size, FILE *stream, int *line, in wpa_config_get_line() argument 43 while (fgets(s, size, stream)) { in wpa_config_get_line() 45 s[size - 1] = '\0'; in wpa_config_get_line() 46 if (!newline_terminated(s, size)) { in wpa_config_get_line()
|
D | os_zephyr.c | 221 void *os_malloc(size_t size) in os_malloc() argument 223 return k_malloc(size); in os_malloc() 256 void *os_zalloc(size_t size) in os_zalloc() argument 258 void *p = k_malloc(size); in os_zalloc() 261 (void)memset(p, 0, size); in os_zalloc()
|
D | wpabuf.h | 21 size_t size; /* total size of the allocated buffer */ member 50 return buf->size; in wpabuf_size() 70 return buf->size - buf->used; in wpabuf_tailroom() 189 buf->size = buf->used = len; in wpabuf_set()
|
D | radiotap_iter.h | 13 uint8_t align:4, size:4; member 17 uint8_t align:4, size:4; member
|
/hostap-latest/src/common/ |
D | gas.c | 18 gas_build_req(u8 action, u8 dialog_token, size_t size) in gas_build_req() argument 22 buf = wpabuf_alloc(100 + size); in gas_build_req() 34 struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size) in gas_build_initial_req() argument 37 size); in gas_build_initial_req() 49 u8 more, u16 comeback_delay, size_t size) in gas_build_resp() argument 53 buf = wpabuf_alloc(100 + size); in gas_build_resp() 71 size_t size) in gas_build_initial_resp() argument 74 status_code, 0, 0, comeback_delay, size); in gas_build_initial_resp() 80 u16 comeback_delay, size_t size) in gas_build_comeback_resp() argument 84 size); in gas_build_comeback_resp() [all …]
|
D | gas.h | 13 struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size); 16 u16 comeback_delay, size_t size); 19 u16 comeback_delay, size_t size); 20 struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size); 22 u16 comeback_delay, size_t size); 29 u16 comeback_delay, size_t size);
|
/hostap-latest/src/wps/ |
D | ndef.c | 35 static int ndef_parse_record(const u8 *data, u32 size, in ndef_parse_record() argument 40 if (size < 2) in ndef_parse_record() 44 if (size < 3) in ndef_parse_record() 50 if (size < 6) in ndef_parse_record() 53 if (len > size - 6 || len > 20000) in ndef_parse_record() 60 if ((int) size < pos - data + 1) in ndef_parse_record() 66 if (record->type_length > data + size - pos) in ndef_parse_record() 71 if (record->id_length > data + size - pos) in ndef_parse_record() 76 if (record->payload_length > (size_t) (data + size - pos)) in ndef_parse_record() 82 if (record->total_length > size || in ndef_parse_record()
|
/hostap-latest/wpa_supplicant/ |
D | mbo.c | 148 static void wpas_mbo_non_pref_chan_attr_hdr(struct wpabuf *mbo, size_t size) in wpas_mbo_non_pref_chan_attr_hdr() argument 151 wpabuf_put_u8(mbo, size); /* Length */ in wpas_mbo_non_pref_chan_attr_hdr() 158 size_t size = end - start + 3; in wpas_mbo_non_pref_chan_attr() local 160 if (size + 2 > wpabuf_tailroom(mbo)) in wpas_mbo_non_pref_chan_attr() 163 wpas_mbo_non_pref_chan_attr_hdr(mbo, size); in wpas_mbo_non_pref_chan_attr() 181 size_t size = end - start + 7; in wpas_mbo_non_pref_chan_subelement() local 183 if (size + 2 > wpabuf_tailroom(mbo)) in wpas_mbo_non_pref_chan_subelement() 186 wpas_mbo_non_pref_chan_subelem_hdr(mbo, size); in wpas_mbo_non_pref_chan_subelement() 367 size_t num = 0, size = 0; in wpas_mbo_update_non_pref_chan() local 392 if (num == size) { in wpas_mbo_update_non_pref_chan() [all …]
|
/hostap-latest/tests/fuzzing/dpp-uri/ |
D | dpp-uri.c | 16 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 30 uri = os_malloc(size + 1); in LLVMFuzzerTestOneInput() 33 os_memcpy(uri, data, size); in LLVMFuzzerTestOneInput() 34 uri[size] = '\0'; in LLVMFuzzerTestOneInput()
|
/hostap-latest/wpa_supplicant/wpa_gui-qt4/ |
D | peers.cpp | 431 for (int i = 0; i < lst.size(); i++) { in add_station() 527 for (int i = 0; i < items.size(); i++) { in add_p2p_group_client() 568 if (lst.size() == 0) in remove_bss() 631 for (int i = 0; i < lines.size(); i++) { in add_bss() 788 if (lst.size() == 0) in find_addr() 801 for (int i = 0; i < lst.size(); i++) { in find_addr_type() 817 if (lst.size() == 0) in find_uuid() 887 for (int i = 0; i < lst.size(); i++) { in event_notify() 911 for (int i = 0; i < items.size(); i++) { in event_notify() 955 if (items.size() < 4) in event_notify() [all …]
|
D | eventhistory.cpp | 34 if (index.row() >= timeList.size()) in data() 38 if (index.row() >= msgList.size()) in data() 69 beginInsertRows(QModelIndex(), msgList.size(), msgList.size() + 1); in addEvent()
|
D | wpagui.ui | 167 <size> 170 </size> 201 <size> 204 </size> 228 <size> 231 </size> 262 <size> 265 </size>
|
/hostap-latest/tests/fuzzing/sae/ |
D | sae.c | 16 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 30 res = sae_parse_commit(&sae, data, size, &token, &token_len, groups, 0, in LLVMFuzzerTestOneInput() 34 res = sae_parse_commit(&sae, data, size, &token, &token_len, groups, 1, in LLVMFuzzerTestOneInput()
|
/hostap-latest/tests/fuzzing/pasn-resp/ |
D | pasn-resp.c | 51 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 77 (const struct ieee80211_mgmt *) data, size)) in LLVMFuzzerTestOneInput() 82 (const struct ieee80211_mgmt *) data, size)) in LLVMFuzzerTestOneInput()
|
/hostap-latest/src/p2p/ |
D | p2p_go_neg.c | 603 unsigned int size) in p2p_check_pref_chan_no_recv() argument 616 for (i = 0; i < size && !found; i++) { in p2p_check_pref_chan_no_recv() 652 unsigned int size) in p2p_check_pref_chan_recv() argument 663 for (i = 0; i < size && !found; i++) { in p2p_check_pref_chan_recv() 697 unsigned int size; in p2p_check_pref_chan() local 714 size = P2P_MAX_PREF_CHANNELS; in p2p_check_pref_chan() 719 size = p2p->num_pref_freq; in p2p_check_pref_chan() 720 if (!size) in p2p_check_pref_chan() 726 while (i < size) { in p2p_check_pref_chan() 738 if (size - i - 1 > 0) in p2p_check_pref_chan() [all …]
|
/hostap-latest/tests/fuzzing/x509/ |
D | x509.c | 16 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 22 cert = x509_certificate_parse(data, size); in LLVMFuzzerTestOneInput()
|
/hostap-latest/tests/fuzzing/json/ |
D | json.c | 15 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 23 root = json_parse((const char *) data, size); in LLVMFuzzerTestOneInput()
|
/hostap-latest/src/crypto/ |
D | tls_gnutls.c | 505 ca.size = params->ca_cert_blob_len; in tls_connection_set_params() 613 cert.size = params->client_cert_blob_len; in tls_connection_set_params() 615 key.size = params->private_key_blob_len; in tls_connection_set_params() 650 key.size = params->private_key_blob_len; in tls_connection_set_params() 728 resp->size = len; in server_ocsp_status_req() 890 keys->client_random_len = client.size; in tls_connection_get_random() 891 keys->server_random_len = client.size; in tls_connection_get_random() 946 cert_buf = wpabuf_alloc_copy(cert->data, cert->size); in gnutls_tls_fail_event() 1310 certs[i].size); in tls_connection_verify_peer() 1315 _len[0] = certs[i].size; in tls_connection_verify_peer() [all …]
|
/hostap-latest/tests/fuzzing/pasn-init/ |
D | pasn-init.c | 28 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 50 wpa_pasn_auth_rx(&pasn, data, size, &pasn_data); in LLVMFuzzerTestOneInput()
|