Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_6/wpa_supplicant/wpa_gui/
Dnetworkconfig.ui.h101 size_t reply_len; in addNetwork() local
119 reply_len = sizeof(reply) - 1; in addNetwork()
122 wpagui->ctrlRequest("ADD_NETWORK", reply, &reply_len); in addNetwork()
208 reply_len = sizeof(reply); in addNetwork()
209 wpagui->ctrlRequest(cmd, reply, &reply_len); in addNetwork()
216 wpagui->ctrlRequest("SAVE_CONFIG", reply, &reply_len); in addNetwork()
231 size_t reply_len; in setNetworkParam() local
234 reply_len = sizeof(reply); in setNetworkParam()
235 wpagui->ctrlRequest(cmd, reply, &reply_len); in setNetworkParam()
296 static int key_value_isset(const char *reply, size_t reply_len) in key_value_isset() argument
[all …]
Dscanresults.ui.h39 size_t reply_len; in updateResults() local
44 reply_len = sizeof(reply) - 1; in updateResults()
45 if (wpagui->ctrlRequest("SCAN_RESULTS", reply, &reply_len) < 0) in updateResults()
47 reply[reply_len] = '\0'; in updateResults()
75 size_t reply_len = sizeof(reply); in scanRequest() local
80 wpagui->ctrlRequest("SCAN", reply, &reply_len); in scanRequest()
Duserdatarequest.ui.h60 size_t reply_len = sizeof(reply); in sendReply() local
70 wpagui->ctrlRequest(cmd.ascii(), reply, &reply_len); in sendReply()
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/
Dnetworkconfig.cpp187 size_t reply_len; in addNetwork() local
225 reply_len = sizeof(reply) - 1; in addNetwork()
228 wpagui->ctrlRequest("ADD_NETWORK", reply, &reply_len); in addNetwork()
404 reply_len = sizeof(reply); in addNetwork()
405 wpagui->ctrlRequest(cmd, reply, &reply_len); in addNetwork()
414 wpagui->ctrlRequest("SAVE_CONFIG", reply, &reply_len); in addNetwork()
430 size_t reply_len; in setNetworkParam() local
433 reply_len = sizeof(reply); in setNetworkParam()
434 wpagui->ctrlRequest(cmd, reply, &reply_len); in setNetworkParam()
495 static int key_value_isset(const char *reply, size_t reply_len) in key_value_isset() argument
[all …]
Dpeers.cpp322 size_t reply_len; in enter_pin() local
334 reply_len = sizeof(reply) - 1; in enter_pin()
335 if (wpagui->ctrlRequest(cmd, reply, &reply_len) < 0) { in enter_pin()
353 size_t reply_len; in ctx_p2p_start() local
354 reply_len = sizeof(reply) - 1; in ctx_p2p_start()
355 if (wpagui->ctrlRequest("P2P_FIND", reply, &reply_len) < 0 || in ctx_p2p_start()
368 size_t reply_len; in ctx_p2p_stop() local
369 reply_len = sizeof(reply) - 1; in ctx_p2p_stop()
370 wpagui->ctrlRequest("P2P_STOP_FIND", reply, &reply_len); in ctx_p2p_stop()
377 size_t reply_len; in ctx_p2p_listen() local
[all …]
Dscanresults.cpp56 size_t reply_len; in updateResults() local
68 reply_len = sizeof(reply) - 1; in updateResults()
69 if (wpagui->ctrlRequest(cmd, reply, &reply_len) < 0) in updateResults()
71 reply[reply_len] = '\0'; in updateResults()
116 size_t reply_len = sizeof(reply); in scanRequest() local
121 wpagui->ctrlRequest("SCAN", reply, &reply_len); in scanRequest()
Dwpagui.cpp729 size_t reply_len = sizeof(reply); in disconnect() local
730 ctrlRequest("DISCONNECT", reply, &reply_len); in disconnect()
965 size_t reply_len = sizeof(reply); in connectB() local
966 ctrlRequest("REASSOCIATE", reply, &reply_len); in connectB()
974 size_t reply_len = sizeof(reply); in selectNetwork() local
981 ctrlRequest(cmd.toAscii().constData(), reply, &reply_len); in selectNetwork()
991 size_t reply_len = sizeof(reply); in enableNetwork() local
1001 ctrlRequest(cmd.toAscii().constData(), reply, &reply_len); in enableNetwork()
1010 size_t reply_len = sizeof(reply); in disableNetwork() local
1020 ctrlRequest(cmd.toAscii().constData(), reply, &reply_len); in disableNetwork()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui-qt4/
Dnetworkconfig.cpp185 size_t reply_len; in addNetwork() local
220 reply_len = sizeof(reply) - 1; in addNetwork()
223 wpagui->ctrlRequest("ADD_NETWORK", reply, &reply_len); in addNetwork()
391 reply_len = sizeof(reply); in addNetwork()
392 wpagui->ctrlRequest(cmd, reply, &reply_len); in addNetwork()
400 wpagui->ctrlRequest("SAVE_CONFIG", reply, &reply_len); in addNetwork()
416 size_t reply_len; in setNetworkParam() local
419 reply_len = sizeof(reply); in setNetworkParam()
420 wpagui->ctrlRequest(cmd, reply, &reply_len); in setNetworkParam()
482 static int key_value_isset(const char *reply, size_t reply_len) in key_value_isset() argument
[all …]
Dscanresults.cpp60 size_t reply_len; in updateResults() local
72 reply_len = sizeof(reply) - 1; in updateResults()
73 if (wpagui->ctrlRequest(cmd, reply, &reply_len) < 0) in updateResults()
75 reply[reply_len] = '\0'; in updateResults()
120 size_t reply_len = sizeof(reply); in scanRequest() local
125 wpagui->ctrlRequest("SCAN", reply, &reply_len); in scanRequest()
Dwpagui.cpp706 size_t reply_len = sizeof(reply); in disconnect() local
707 ctrlRequest("DISCONNECT", reply, &reply_len); in disconnect()
943 size_t reply_len = sizeof(reply); in connectB() local
944 ctrlRequest("REASSOCIATE", reply, &reply_len); in connectB()
952 size_t reply_len = sizeof(reply); in selectNetwork() local
966 ctrlRequest(cmd.toAscii().constData(), reply, &reply_len); in selectNetwork()
976 size_t reply_len = sizeof(reply); in enableNetwork() local
988 ctrlRequest(cmd.toAscii().constData(), reply, &reply_len); in enableNetwork()
997 size_t reply_len = sizeof(reply); in disableNetwork() local
1009 ctrlRequest(cmd.toAscii().constData(), reply, &reply_len); in disableNetwork()
[all …]
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c808 int reply_len; in hostapd_ctrl_iface_receive() local
830 reply_len = 3; in hostapd_ctrl_iface_receive()
834 reply_len = 5; in hostapd_ctrl_iface_receive()
837 reply_len = -1; in hostapd_ctrl_iface_receive()
839 reply_len = ieee802_11_get_mib(hapd, reply, reply_size); in hostapd_ctrl_iface_receive()
840 if (reply_len >= 0) { in hostapd_ctrl_iface_receive()
841 res = wpa_get_mib(hapd->wpa_auth, reply + reply_len, in hostapd_ctrl_iface_receive()
842 reply_size - reply_len); in hostapd_ctrl_iface_receive()
844 reply_len = -1; in hostapd_ctrl_iface_receive()
846 reply_len += res; in hostapd_ctrl_iface_receive()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/
Dctrl_iface_udp.c134 size_t *reply_len) in wpa_supplicant_ctrl_iface_get_cookie() argument
139 *reply_len = 1; in wpa_supplicant_ctrl_iface_get_cookie()
147 *reply_len = 7 + 2 * COOKIE_LEN; in wpa_supplicant_ctrl_iface_get_cookie()
162 size_t reply_len = 0; in wpa_supplicant_ctrl_iface_receive() local
186 reply = wpa_supplicant_ctrl_iface_get_cookie(priv, &reply_len); in wpa_supplicant_ctrl_iface_receive()
221 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
224 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
228 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
230 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
234 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
[all …]
Dctrl_iface.c1645 int reply_len; in wpa_supplicant_ctrl_iface_process() local
1667 reply_len = 3; in wpa_supplicant_ctrl_iface_process()
1671 reply_len = 5; in wpa_supplicant_ctrl_iface_process()
1673 reply_len = wpa_sm_get_mib(wpa_s->wpa, reply, reply_size); in wpa_supplicant_ctrl_iface_process()
1674 if (reply_len >= 0) { in wpa_supplicant_ctrl_iface_process()
1676 res = eapol_sm_get_mib(wpa_s->eapol, reply + reply_len, in wpa_supplicant_ctrl_iface_process()
1677 reply_size - reply_len); in wpa_supplicant_ctrl_iface_process()
1679 reply_len = -1; in wpa_supplicant_ctrl_iface_process()
1681 reply_len += res; in wpa_supplicant_ctrl_iface_process()
1684 reply_len = wpa_supplicant_ctrl_iface_status( in wpa_supplicant_ctrl_iface_process()
[all …]
Dctrl_iface_unix.c151 size_t reply_len = 0; in wpa_supplicant_ctrl_iface_receive() local
164 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
167 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
171 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
173 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
177 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
179 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
182 &reply_len); in wpa_supplicant_ctrl_iface_receive()
186 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive()
189 } else if (reply_len == 1) { in wpa_supplicant_ctrl_iface_receive()
[all …]
Dctrl_iface_named_pipe.c289 size_t reply_len = 0, send_len; in wpa_supplicant_ctrl_iface_rx() local
302 reply_len = 2; in wpa_supplicant_ctrl_iface_rx()
306 reply_len = 2; in wpa_supplicant_ctrl_iface_rx()
310 reply_len = 2; in wpa_supplicant_ctrl_iface_rx()
313 &reply_len); in wpa_supplicant_ctrl_iface_rx()
318 send_len = reply_len; in wpa_supplicant_ctrl_iface_rx()
319 } else if (reply_len == 2) { in wpa_supplicant_ctrl_iface_rx()
724 size_t reply_len = 0, send_len; in wpa_supplicant_global_iface_rx() local
733 &reply_len); in wpa_supplicant_global_iface_rx()
736 send_len = reply_len; in wpa_supplicant_global_iface_rx()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_udp.c128 size_t *reply_len) in wpa_supplicant_ctrl_iface_get_cookie() argument
133 *reply_len = 1; in wpa_supplicant_ctrl_iface_get_cookie()
141 *reply_len = 7 + 2 * COOKIE_LEN; in wpa_supplicant_ctrl_iface_get_cookie()
156 size_t reply_len = 0; in wpa_supplicant_ctrl_iface_receive() local
184 reply = wpa_supplicant_ctrl_iface_get_cookie(priv, &reply_len); in wpa_supplicant_ctrl_iface_receive()
219 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
222 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
226 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
228 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
232 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
[all …]
Dctrl_iface.c4392 int reply_len; in wpa_supplicant_ctrl_iface_process() local
4414 reply_len = 3; in wpa_supplicant_ctrl_iface_process()
4418 reply_len = 5; in wpa_supplicant_ctrl_iface_process()
4420 reply_len = os_strlen(wpa_s->ifname); in wpa_supplicant_ctrl_iface_process()
4421 os_memcpy(reply, wpa_s->ifname, reply_len); in wpa_supplicant_ctrl_iface_process()
4424 reply_len = -1; in wpa_supplicant_ctrl_iface_process()
4428 reply_len = wpa_sm_get_mib(wpa_s->wpa, reply, reply_size); in wpa_supplicant_ctrl_iface_process()
4429 if (reply_len >= 0) { in wpa_supplicant_ctrl_iface_process()
4431 res = eapol_sm_get_mib(wpa_s->eapol, reply + reply_len, in wpa_supplicant_ctrl_iface_process()
4432 reply_size - reply_len); in wpa_supplicant_ctrl_iface_process()
[all …]
Dctrl_iface_unix.c139 size_t reply_len = 0; in wpa_supplicant_ctrl_iface_receive() local
152 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
155 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
159 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
161 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
165 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
167 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
194 &reply_len); in wpa_supplicant_ctrl_iface_receive()
198 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive()
201 } else if (reply_len == 1) { in wpa_supplicant_ctrl_iface_receive()
[all …]
Dctrl_iface_named_pipe.c283 size_t reply_len = 0, send_len; in wpa_supplicant_ctrl_iface_rx() local
296 reply_len = 2; in wpa_supplicant_ctrl_iface_rx()
300 reply_len = 2; in wpa_supplicant_ctrl_iface_rx()
304 reply_len = 2; in wpa_supplicant_ctrl_iface_rx()
307 &reply_len); in wpa_supplicant_ctrl_iface_rx()
312 send_len = reply_len; in wpa_supplicant_ctrl_iface_rx()
313 } else if (reply_len == 2) { in wpa_supplicant_ctrl_iface_rx()
718 size_t reply_len = 0, send_len; in wpa_supplicant_global_iface_rx() local
727 &reply_len); in wpa_supplicant_global_iface_rx()
730 send_len = reply_len; in wpa_supplicant_global_iface_rx()
[all …]
/external/e2fsprogs/misc/
Duuidd.c148 int32_t reply_len = 0; in call_daemon() local
195 ret = read_all(s, (char *) &reply_len, sizeof(reply_len)); in call_daemon()
202 if (reply_len < 0 || reply_len > buflen) { in call_daemon()
208 ret = read_all(s, (char *) buf, reply_len); in call_daemon()
211 if (reply_len >= (int) (16+sizeof(int))) in call_daemon()
234 int32_t reply_len = 0; in server_loop() local
368 reply_len = strlen(reply_buf)+1; in server_loop()
372 reply_len = strlen(reply_buf)+1; in server_loop()
382 reply_len = sizeof(uu); in server_loop()
392 reply_len = sizeof(uu); in server_loop()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/common/
Dwpa_ctrl.c289 char *reply, size_t *reply_len, in wpa_ctrl_request() argument
338 res = recv(ctrl->s, reply, *reply_len, 0); in wpa_ctrl_request()
349 if ((size_t) res == *reply_len) in wpa_ctrl_request()
350 res = (*reply_len) - 1; in wpa_ctrl_request()
356 *reply_len = res; in wpa_ctrl_request()
397 int wpa_ctrl_recv(struct wpa_ctrl *ctrl, char *reply, size_t *reply_len) in wpa_ctrl_recv() argument
401 res = recv(ctrl->s, reply, *reply_len, 0); in wpa_ctrl_recv()
404 *reply_len = res; in wpa_ctrl_recv()
506 char *reply, size_t *reply_len, in wpa_ctrl_request() argument
510 DWORD readlen = *reply_len; in wpa_ctrl_request()
[all …]
Dwpa_ctrl.h136 char *reply, size_t *reply_len,
178 int wpa_ctrl_recv(struct wpa_ctrl *ctrl, char *reply, size_t *reply_len);
/external/wpa_supplicant_8/src/common/
Dwpa_ctrl.c371 char *reply, size_t *reply_len, in wpa_ctrl_request() argument
440 res = recv(ctrl->s, reply, *reply_len, 0); in wpa_ctrl_request()
451 if ((size_t) res == *reply_len) in wpa_ctrl_request()
452 res = (*reply_len) - 1; in wpa_ctrl_request()
458 *reply_len = res; in wpa_ctrl_request()
499 int wpa_ctrl_recv(struct wpa_ctrl *ctrl, char *reply, size_t *reply_len) in wpa_ctrl_recv() argument
503 res = recv(ctrl->s, reply, *reply_len, 0); in wpa_ctrl_recv()
506 *reply_len = res; in wpa_ctrl_recv()
608 char *reply, size_t *reply_len, in wpa_ctrl_request() argument
612 DWORD readlen = *reply_len; in wpa_ctrl_request()
[all …]
/external/wpa_supplicant_8/src/drivers/
Ddriver_privsep.c45 void *reply, size_t *reply_len) in wpa_priv_cmd() argument
82 res = recv(drv->cmd_socket, reply, *reply_len, 0); in wpa_priv_cmd()
87 *reply_len = res; in wpa_priv_cmd()
117 size_t reply_len = 60000; in wpa_driver_privsep_get_scan_results2() local
121 buf = os_malloc(reply_len); in wpa_driver_privsep_get_scan_results2()
125 NULL, 0, buf, &reply_len); in wpa_driver_privsep_get_scan_results2()
132 (unsigned long) reply_len); in wpa_driver_privsep_get_scan_results2()
133 if (reply_len < sizeof(int)) { in wpa_driver_privsep_get_scan_results2()
135 (unsigned long) reply_len); in wpa_driver_privsep_get_scan_results2()
141 end = buf + reply_len; in wpa_driver_privsep_get_scan_results2()
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Ddriver_privsep.c51 void *reply, size_t *reply_len) in wpa_priv_cmd() argument
88 res = recv(drv->cmd_socket, reply, *reply_len, 0); in wpa_priv_cmd()
93 *reply_len = res; in wpa_priv_cmd()
129 size_t reply_len = 60000; in wpa_driver_privsep_get_scan_results2() local
133 buf = os_malloc(reply_len); in wpa_driver_privsep_get_scan_results2()
137 NULL, 0, buf, &reply_len); in wpa_driver_privsep_get_scan_results2()
144 (unsigned long) reply_len); in wpa_driver_privsep_get_scan_results2()
145 if (reply_len < sizeof(int)) { in wpa_driver_privsep_get_scan_results2()
147 (unsigned long) reply_len); in wpa_driver_privsep_get_scan_results2()
153 end = buf + reply_len; in wpa_driver_privsep_get_scan_results2()

12