Home
last modified time | relevance | path

Searched defs:buf (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/hostap-latest/src/utils/
Dwpabuf.h23 u8 *buf; /* pointer to the head of the buffer */ member
48 static inline size_t wpabuf_size(const struct wpabuf *buf) in wpabuf_size()
58 static inline size_t wpabuf_len(const struct wpabuf *buf) in wpabuf_len()
68 static inline size_t wpabuf_tailroom(const struct wpabuf *buf) in wpabuf_tailroom()
93 static inline const void * wpabuf_head(const struct wpabuf *buf) in wpabuf_head()
98 static inline const u8 * wpabuf_head_u8(const struct wpabuf *buf) in wpabuf_head_u8()
108 static inline void * wpabuf_mhead(struct wpabuf *buf) in wpabuf_mhead()
113 static inline u8 * wpabuf_mhead_u8(struct wpabuf *buf) in wpabuf_mhead_u8()
118 static inline void wpabuf_put_u8(struct wpabuf *buf, u8 data) in wpabuf_put_u8()
124 static inline void wpabuf_put_le16(struct wpabuf *buf, u16 data) in wpabuf_put_le16()
[all …]
Dwpabuf.c22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) in wpabuf_get_trace()
30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) in wpabuf_overflow()
49 struct wpabuf *buf = *_buf; in wpabuf_resize() local
118 struct wpabuf *buf; in wpabuf_alloc() local
140 struct wpabuf *buf; in wpabuf_alloc_ext_data() local
162 struct wpabuf *buf = wpabuf_alloc(len); in wpabuf_alloc_copy() local
171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); in wpabuf_dup() local
182 void wpabuf_free(struct wpabuf *buf) in wpabuf_free()
208 void wpabuf_clear_free(struct wpabuf *buf) in wpabuf_clear_free()
217 void * wpabuf_put(struct wpabuf *buf, size_t len) in wpabuf_put()
[all …]
Dwpa_debug_zephyr.c67 static void _wpa_hexdump(int level, const char *title, const u8 *buf, size_t len, int show) in _wpa_hexdump()
97 void wpa_hexdump_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_impl()
102 void wpa_hexdump_key_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_key_impl()
107 static void _wpa_hexdump_ascii(int level, const char *title, const void *buf, size_t len, int show) in _wpa_hexdump_ascii()
149 void wpa_hexdump_ascii_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_ascii_impl()
154 void wpa_hexdump_ascii_key_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_ascii_key_impl()
180 char *buf; in wpa_msg_impl() local
217 char *buf; in wpa_msg_ctrl_impl() local
243 char *buf; in wpa_msg_global_impl() local
268 char *buf; in wpa_msg_global_ctrl_impl() local
[all …]
Dwpa_debug.c131 char buf[4096] = {}; in wpa_debug_open_linux_tracing() local
258 static void _wpa_hexdump(int level, const char *title, const u8 *buf, in _wpa_hexdump()
385 void wpa_hexdump(int level, const char *title, const void *buf, size_t len) in wpa_hexdump()
391 void wpa_hexdump_key(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_key()
397 static void _wpa_hexdump_ascii(int level, const char *title, const void *buf, in _wpa_hexdump_ascii()
510 void wpa_hexdump_ascii(int level, const char *title, const void *buf, in wpa_hexdump_ascii()
517 void wpa_hexdump_ascii_key(int level, const char *title, const void *buf, in wpa_hexdump_ascii_key()
650 char *buf; in wpa_msg() local
688 char *buf; in wpa_msg_ctrl() local
716 char *buf; in wpa_msg_global() local
[all …]
/hostap-latest/src/p2p/
Dp2p_build.c19 void p2p_buf_add_action_hdr(struct wpabuf *buf, u8 subtype, u8 dialog_token) in p2p_buf_add_action_hdr()
30 void p2p_buf_add_public_action_hdr(struct wpabuf *buf, u8 subtype, in p2p_buf_add_public_action_hdr()
43 u8 * p2p_buf_add_ie_hdr(struct wpabuf *buf) in p2p_buf_add_ie_hdr()
56 void p2p_buf_update_ie_hdr(struct wpabuf *buf, u8 *len) in p2p_buf_update_ie_hdr()
63 void p2p_buf_add_capability(struct wpabuf *buf, u8 dev_capab, u8 group_capab) in p2p_buf_add_capability()
75 void p2p_buf_add_go_intent(struct wpabuf *buf, u8 go_intent) in p2p_buf_add_go_intent()
86 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_listen_channel()
100 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_operating_channel()
114 void p2p_buf_add_pref_channel_list(struct wpabuf *buf, in p2p_buf_add_pref_channel_list()
154 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, in p2p_buf_add_channel_list()
[all …]
/hostap-latest/src/tls/
Dasn1.c171 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) in asn1_get_next()
290 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) in asn1_parse_oid()
334 int asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, in asn1_get_oid()
351 void asn1_oid_to_str(const struct asn1_oid *oid, char *buf, size_t len) in asn1_oid_to_str()
391 unsigned long asn1_bit_string_to_long(const u8 *buf, size_t len) in asn1_bit_string_to_long()
433 int asn1_get_integer(const u8 *buf, size_t len, int *integer, const u8 **next) in asn1_get_integer()
466 int asn1_get_sequence(const u8 *buf, size_t len, struct asn1_hdr *hdr, in asn1_get_sequence()
480 int asn1_get_alg_id(const u8 *buf, size_t len, struct asn1_oid *oid, in asn1_get_alg_id()
504 void asn1_put_integer(struct wpabuf *buf, int val) in asn1_put_integer()
519 static void asn1_put_len(struct wpabuf *buf, size_t len) in asn1_put_len()
[all …]
Dtlsv1_cred.c46 const u8 *buf, size_t len) in tlsv1_add_cert_der()
90 static const u8 * search_tag(const char *tag, const u8 *buf, size_t len) in search_tag()
108 const u8 *buf, size_t len) in tlsv1_add_cert()
165 u8 *buf; in tlsv1_set_cert_chain() local
416 const u8 *buf, size_t len) in pkcs12_keybag()
424 const u8 *buf, size_t len, in pkcs12_pkcs8_keybag()
444 const u8 *buf, size_t len) in pkcs12_certbag()
607 const u8 *buf, size_t len, const char *passwd) in pkcs12_safebag()
679 const u8 *buf, size_t len, in pkcs12_safecontents()
743 char buf[80]; in pkcs12_parse_content_enc_data() local
[all …]
Dx509v3.c181 int x509_parse_algorithm_identifier(const u8 *buf, size_t len, in x509_parse_algorithm_identifier()
216 static int x509_parse_public_key(const u8 *buf, size_t len, in x509_parse_public_key()
285 int x509_parse_name(const u8 *buf, size_t len, struct x509_name *name, in x509_parse_name()
492 void x509_name_string(struct x509_name *name, char *buf, size_t len) in x509_name_string()
537 char buf[3]; in parse_uint2() local
553 char buf[5]; in parse_uint4() local
569 int x509_parse_time(const u8 *buf, size_t len, u8 asn1_tag, os_time_t *val) in x509_parse_time()
686 static int x509_parse_validity(const u8 *buf, size_t len, in x509_parse_validity()
958 char buf[80]; in x509_parse_alt_name_rid() local
1178 char buf[80]; in x509_parse_ext_certificate_policies() local
[all …]
/hostap-latest/src/ap/
Dgas_serv.c25 static void gas_serv_write_dpp_adv_proto(struct wpabuf *buf) in gas_serv_write_dpp_adv_proto()
162 struct wpabuf *buf) in anqp_add_hs_capab_list()
210 static void anqp_add_elem(struct hostapd_data *hapd, struct wpabuf *buf, in anqp_add_elem()
230 static int anqp_add_override(struct hostapd_data *hapd, struct wpabuf *buf, in anqp_add_override()
243 struct wpabuf *buf) in anqp_add_capab_list()
312 static void anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) in anqp_add_venue_name()
335 static void anqp_add_venue_url(struct hostapd_data *hapd, struct wpabuf *buf) in anqp_add_venue_url()
359 struct wpabuf *buf) in anqp_add_network_auth_type()
374 struct wpabuf *buf) in anqp_add_roaming_consortium()
394 struct wpabuf *buf) in anqp_add_ip_addr_type_availability()
[all …]
Drrm.c96 const u8 *buf, size_t len) in hostapd_handle_radio_msmt_report()
139 static u16 hostapd_parse_location_lci_req_age(const u8 *buf, size_t len) in hostapd_parse_location_lci_req_age()
183 static size_t hostapd_neighbor_report_len(struct wpabuf *buf, in hostapd_neighbor_report_len()
205 struct wpabuf *buf; in hostapd_send_nei_report_resp() local
279 const u8 *buf, size_t len) in hostapd_handle_nei_report_req()
350 const u8 *buf, size_t len) in hostapd_handle_link_mesr_report()
385 const u8 *buf, size_t len) in hostapd_handle_radio_measurement()
419 struct wpabuf *buf; in hostapd_send_lci_req() local
494 struct wpabuf *buf; in hostapd_send_range_req() local
623 struct wpabuf *buf; in hostapd_send_beacon_req() local
[all …]
Dmbo_ap.c34 const u8 *buf, size_t len) in mbo_ap_parse_non_pref_chan()
115 int mbo_ap_get_info(struct sta_info *sta, char *buf, size_t buflen) in mbo_ap_get_info()
169 const u8 *buf, size_t len) in mbo_ap_wnm_notif_req_cell_capa()
181 const u8 *buf, size_t len, in mbo_ap_wnm_notif_req_elem()
209 const u8 *buf, size_t len) in mbo_ap_wnm_notification_req()
Dctrl_iface_ap.c30 static size_t hostapd_write_ht_mcs_bitmask(char *buf, size_t buflen, in hostapd_write_ht_mcs_bitmask()
56 char *buf, size_t buflen) in hostapd_get_sta_conn_time()
82 char *buf, size_t buflen) in hostapd_get_sta_info()
237 char *buf, size_t buflen) in hostapd_ctrl_iface_sta_mib()
496 char *buf, size_t buflen) in hostapd_ctrl_iface_sta_first()
503 char *buf, size_t buflen) in hostapd_ctrl_iface_sta()
545 char *buf, size_t buflen) in hostapd_ctrl_iface_sta_next()
743 char *buf, size_t buflen) in hostapd_ctrl_iface_signature()
783 int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf, in hostapd_ctrl_iface_status()
1156 int hostapd_ctrl_iface_pmksa_list(struct hostapd_data *hapd, char *buf, in hostapd_ctrl_iface_pmksa_list()
[all …]
/hostap-latest/src/common/
Dgas.c20 struct wpabuf *buf; in gas_build_req() local
51 struct wpabuf *buf; in gas_build_resp() local
99 static void gas_add_adv_proto_anqp(struct wpabuf *buf, u8 query_resp_len_limit, in gas_add_adv_proto_anqp()
114 struct wpabuf *buf; in gas_anqp_build_initial_req() local
131 struct wpabuf *buf; in gas_anqp_build_initial_resp() local
151 struct wpabuf *buf; in gas_anqp_build_initial_resp_buf() local
172 struct wpabuf *buf; in gas_anqp_build_comeback_resp() local
193 struct wpabuf *buf; in gas_anqp_build_comeback_resp_buf() local
217 void gas_anqp_set_len(struct wpabuf *buf) in gas_anqp_set_len()
255 u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id) in gas_anqp_add_element()
[all …]
Dwpa_helpers.c24 char buf[128]; in wpa_open_ctrl() local
38 char buf[128]; in wpa_command() local
101 char *buf, size_t buf_size) in get_wpa_cli_event2()
157 const char *event, char *buf, size_t buf_size) in get_wpa_cli_event()
167 char buf[4096]; in get_wpa_status() local
253 char buf[200]; in set_network() local
262 char buf[200]; in set_network_quoted() local
281 char buf[200]; in set_cred() local
290 char buf[200]; in set_cred_quoted() local
/hostap-latest/src/fst/
Dfst_ctrl_iface.c171 static int session_get(const char *session_id, char *buf, size_t buflen) in session_get()
210 static int session_set(const char *session_id, char *buf, size_t buflen) in session_set()
249 static int session_add(const char *group_id, char *buf, size_t buflen) in session_add()
273 static int session_remove(const char *session_id, char *buf, size_t buflen) in session_remove()
297 static int session_initiate(const char *session_id, char *buf, size_t buflen) in session_initiate()
320 static int session_respond(const char *session_id, char *buf, size_t buflen) in session_respond()
363 static int session_transfer(const char *session_id, char *buf, size_t buflen) in session_transfer()
387 static int session_teardown(const char *session_id, char *buf, size_t buflen) in session_teardown()
412 static int test_request(const char *request, char *buf, size_t buflen) in test_request()
463 char *buf; member
[all …]
/hostap-latest/wlantest/
Dctrl.c21 static u8 * attr_get(u8 *buf, size_t buflen, enum wlantest_ctrl_attr attr, in attr_get()
49 static u8 * attr_get_macaddr(u8 *buf, size_t buflen, in attr_get_macaddr()
61 static int attr_get_int(u8 *buf, size_t buflen, enum wlantest_ctrl_attr attr) in attr_get_int()
120 static void ctrl_send(struct wlantest *wt, int sock, const u8 *buf, in ctrl_send()
133 u8 buf[4]; in ctrl_send_simple() local
218 u8 buf[WLANTEST_CTRL_MAX_RESP_LEN], *pos, *len; in ctrl_list_bss() local
243 u8 buf[WLANTEST_CTRL_MAX_RESP_LEN], *pos, *len; in ctrl_list_sta() local
348 u8 buf[4 + 12], *end, *pos; in ctrl_get_sta_counter() local
383 u8 buf[4 + 12], *end, *pos; in ctrl_get_bss_counter() local
420 u8 buf[4 + 12], *end, *pos; in ctrl_get_tdls_counter() local
[all …]
/hostap-latest/hostapd/
Dctrl_iface.c194 struct hostapd_data *hapd, char *cmd, char *buf, size_t buflen) in hostapd_ctrl_iface_wps_check_pin()
243 struct wpabuf *buf; in hostapd_ctrl_iface_wps_nfc_tag_read() local
271 struct wpabuf *buf; in hostapd_ctrl_iface_wps_nfc_config_token() local
300 struct wpabuf *buf; in hostapd_ctrl_iface_wps_nfc_token_gen() local
346 struct wpabuf *buf; in hostapd_ctrl_iface_nfc_get_handover_sel() local
454 char *buf, size_t buflen) in hostapd_ctrl_iface_wps_ap_pin()
551 char *buf, size_t buflen) in hostapd_ctrl_iface_wps_get_status()
730 struct wpabuf *buf; in hostapd_ctrl_iface_send_qos_map_conf() local
820 char *buf, size_t buflen) in hostapd_ctrl_iface_get_key_mgmt()
983 char *buf, size_t buflen) in hostapd_ctrl_iface_get_config()
[all …]
/hostap-latest/wpa_supplicant/
Dwpa_priv.c137 void *buf, size_t len) in wpa_priv_cmd_scan()
186 u8 *buf = NULL, *pos, *end; in wpa_priv_get_scan_results2() local
245 void *buf, size_t len) in wpa_priv_cmd_authenticate()
297 void *buf, size_t len) in wpa_priv_cmd_associate()
393 void *buf, size_t len) in wpa_priv_cmd_set_key()
452 static void wpa_priv_l2_rx(void *ctx, const u8 *src_addr, const u8 *buf, in wpa_priv_l2_rx()
487 void *buf, size_t len) in wpa_priv_cmd_l2_register()
583 void *buf, size_t len) in wpa_priv_cmd_l2_send()
627 char *buf) in wpa_priv_cmd_set_country()
640 char buf[2000], *pos; in wpa_priv_receive() local
[all …]
Drrm.c147 struct wpabuf *buf; in wpas_rrm_send_neighbor_rep_request() local
288 static int wpas_rrm_report_elem(struct wpabuf **buf, u8 token, u8 mode, u8 type, in wpas_rrm_report_elem()
310 struct wpabuf **buf) in wpas_rrm_build_lci_report()
449 struct wpabuf *buf) in wpas_rrm_send_msr_report()
783 struct wpa_bss *bss, u8 *buf, in wpas_beacon_rep_add_frame_body()
874 u8 *buf, *pos; in wpas_add_beacon_rep_elem() local
981 struct wpabuf **buf) in wpas_beacon_rep_no_results()
990 struct wpabuf **buf) in wpas_beacon_rep_table()
1010 struct wpabuf *buf = NULL; in wpas_rrm_refuse_request() local
1199 size_t len, struct wpabuf **buf) in wpas_rm_handle_beacon_req()
[all …]
Dap.c830 static void ap_public_action_rx(void *ctx, const u8 *buf, size_t len, int freq) in ap_public_action_rx()
896 static int ap_vendor_action_rx(void *ctx, const u8 *buf, size_t len, int freq) in ap_vendor_action_rx()
1215 const u8 *buf, size_t len, int ack) in ap_tx_status()
1270 void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok) in ap_mgmt_tx_cb()
1280 const u8 *src_addr, const u8 *buf, size_t len, in wpa_supplicant_ap_rx_eapol()
1331 const char *pin, char *buf, size_t buflen, in wpa_supplicant_ap_wps_pin()
1526 char *buf, size_t buflen) in ap_ctrl_iface_sta_first()
1541 char *buf, size_t buflen) in ap_ctrl_iface_sta()
1556 char *buf, size_t buflen) in ap_ctrl_iface_sta_next()
1590 int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf, in ap_ctrl_iface_wpa_get_status()
[all …]
/hostap-latest/src/crypto/
Drandom.c78 static void random_mix_pool(const void *buf, size_t len) in random_mix_pool()
109 u32 buf[POOL_WORDS / 2]; in random_extract() local
131 void random_add_randomness(const void *buf, size_t len) in random_add_randomness()
159 int random_get_bytes(void *buf, size_t len) in random_get_bytes()
365 char *buf; in random_read_entropy() local
393 char buf[RANDOM_ENTROPY_SIZE]; in random_write_entropy() local
/hostap-latest/src/l2_packet/
Dl2_packet_none.c38 const u8 *buf, size_t len) in l2_packet_send()
55 u8 buf[2300]; in l2_packet_receive() local
70 const u8 *buf, size_t len), in l2_packet_init()
98 const u8 *buf, size_t len), in l2_packet_init_bridge()
120 int l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len) in l2_packet_get_ip_addr()
/hostap-latest/src/wps/
Dndef.c89 static struct wpabuf * ndef_parse_records(const struct wpabuf *buf, in ndef_parse_records()
173 struct wpabuf * ndef_parse_wifi(const struct wpabuf *buf) in ndef_parse_wifi()
179 struct wpabuf * ndef_build_wifi(const struct wpabuf *buf) in ndef_build_wifi()
199 struct wpabuf * ndef_parse_p2p(const struct wpabuf *buf) in ndef_parse_p2p()
205 struct wpabuf * ndef_build_p2p(const struct wpabuf *buf) in ndef_build_p2p()
/hostap-latest/src/eap_common/
Deap_fast_common.c19 void eap_fast_put_tlv_hdr(struct wpabuf *buf, u16 type, u16 len) in eap_fast_put_tlv_hdr()
28 void eap_fast_put_tlv(struct wpabuf *buf, u16 type, const void *data, in eap_fast_put_tlv()
36 void eap_fast_put_tlv_buf(struct wpabuf *buf, u16 type, in eap_fast_put_tlv_buf()
44 struct wpabuf * eap_fast_tlv_eap_payload(struct wpabuf *buf) in eap_fast_tlv_eap_payload()
/hostap-latest/src/drivers/
Ddriver_nl80211_monitor.c26 static void handle_tx_callback(void *ctx, u8 *buf, size_t len, int ok) in handle_tx_callback()
47 u8 *buf, size_t len) in from_unknown_sta()
68 u8 *buf, size_t len, int datarate, int ssi_signal) in handle_frame()
105 unsigned char buf[3000]; in handle_monitor_read() local
346 char buf[IFNAMSIZ]; in nl80211_create_monitor_interface() local

12345678910>>...15