Home
last modified time | relevance | path

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

12

/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/wpa_gui-qt4/
Dnetworkconfig.cpp188 size_t reply_len; in addNetwork() local
226 reply_len = sizeof(reply) - 1; in addNetwork()
229 wpagui->ctrlRequest("ADD_NETWORK", reply, &reply_len); in addNetwork()
405 reply_len = sizeof(reply); in addNetwork()
406 wpagui->ctrlRequest(cmd, reply, &reply_len); in addNetwork()
415 wpagui->ctrlRequest("SAVE_CONFIG", reply, &reply_len); in addNetwork()
431 size_t reply_len; in setNetworkParam() local
434 reply_len = sizeof(reply); in setNetworkParam()
435 wpagui->ctrlRequest(cmd, reply, &reply_len); in setNetworkParam()
496 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.cpp57 size_t reply_len; in updateResults() local
69 reply_len = sizeof(reply) - 1; in updateResults()
70 if (wpagui->ctrlRequest(cmd, reply, &reply_len) < 0) in updateResults()
72 reply[reply_len] = '\0'; in updateResults()
117 size_t reply_len = sizeof(reply); in scanRequest() local
122 wpagui->ctrlRequest("SCAN", reply, &reply_len); in scanRequest()
Dwpagui.cpp772 size_t reply_len = sizeof(reply); in disconnect() local
773 ctrlRequest("DISCONNECT", reply, &reply_len); in disconnect()
869 size_t reply_len = sizeof(reply); in signalMeterUpdate() local
873 ctrlRequest("SIGNAL_POLL", reply, &reply_len); in signalMeterUpdate()
1055 size_t reply_len = sizeof(reply); in connectB() local
1056 ctrlRequest("REASSOCIATE", reply, &reply_len); in connectB()
1064 size_t reply_len = sizeof(reply); in selectNetwork() local
1071 ctrlRequest(cmd.toLocal8Bit().constData(), reply, &reply_len); in selectNetwork()
1081 size_t reply_len = sizeof(reply); in enableNetwork() local
1091 ctrlRequest(cmd.toLocal8Bit().constData(), reply, &reply_len); in enableNetwork()
[all …]
Duserdatarequest.cpp82 size_t reply_len = sizeof(reply); in sendReply() local
92 wpagui->ctrlRequest(cmd.toLocal8Bit().constData(), reply, &reply_len); in sendReply()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/wpa_gui-qt4/
Dnetworkconfig.cpp188 size_t reply_len; in addNetwork() local
226 reply_len = sizeof(reply) - 1; in addNetwork()
229 wpagui->ctrlRequest("ADD_NETWORK", reply, &reply_len); in addNetwork()
405 reply_len = sizeof(reply); in addNetwork()
406 wpagui->ctrlRequest(cmd, reply, &reply_len); in addNetwork()
415 wpagui->ctrlRequest("SAVE_CONFIG", reply, &reply_len); in addNetwork()
431 size_t reply_len; in setNetworkParam() local
434 reply_len = sizeof(reply); in setNetworkParam()
435 wpagui->ctrlRequest(cmd, reply, &reply_len); in setNetworkParam()
496 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.cpp57 size_t reply_len; in updateResults() local
69 reply_len = sizeof(reply) - 1; in updateResults()
70 if (wpagui->ctrlRequest(cmd, reply, &reply_len) < 0) in updateResults()
72 reply[reply_len] = '\0'; in updateResults()
117 size_t reply_len = sizeof(reply); in scanRequest() local
122 wpagui->ctrlRequest("SCAN", reply, &reply_len); in scanRequest()
Dwpagui.cpp787 size_t reply_len = sizeof(reply); in disconnect() local
788 ctrlRequest("DISCONNECT", reply, &reply_len); in disconnect()
884 size_t reply_len = sizeof(reply); in signalMeterUpdate() local
888 ctrlRequest("SIGNAL_POLL", reply, &reply_len); in signalMeterUpdate()
1070 size_t reply_len = sizeof(reply); in connectB() local
1071 ctrlRequest("REASSOCIATE", reply, &reply_len); in connectB()
1079 size_t reply_len = sizeof(reply); in selectNetwork() local
1086 ctrlRequest(cmd.toLocal8Bit().constData(), reply, &reply_len); in selectNetwork()
1096 size_t reply_len = sizeof(reply); in enableNetwork() local
1106 ctrlRequest(cmd.toLocal8Bit().constData(), reply, &reply_len); in enableNetwork()
[all …]
Duserdatarequest.cpp82 size_t reply_len = sizeof(reply); in sendReply() local
92 wpagui->ctrlRequest(cmd.toLocal8Bit().constData(), reply, &reply_len); in sendReply()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dctrl_iface_udp.c199 size_t *reply_len) argument
204 *reply_len = 1;
212 *reply_len = 7 + 2 * COOKIE_LEN;
234 size_t reply_len = 0; local
272 reply = wpa_supplicant_ctrl_iface_get_cookie(priv, &reply_len);
308 reply_len = 1;
311 reply_len = 2;
316 reply_len = 1;
318 reply_len = 2;
322 reply_len = 1;
[all …]
Dctrl_iface.c8380 char *reply, int reply_size, int *reply_len) in wpas_ctrl_scan() argument
8396 *reply_len = -1; in wpas_ctrl_scan()
8403 *reply_len = os_snprintf(reply, reply_size, "FAIL-BUSY\n"); in wpas_ctrl_scan()
8411 *reply_len = os_snprintf(reply, reply_size, "FAIL-BUSY\n"); in wpas_ctrl_scan()
8425 *reply_len = -1; in wpas_ctrl_scan()
8445 *reply_len = -1; in wpas_ctrl_scan()
8456 *reply_len = -1; in wpas_ctrl_scan()
8479 *reply_len = -1; in wpas_ctrl_scan()
8491 *reply_len = -1; in wpas_ctrl_scan()
8546 *reply_len = os_snprintf(reply, reply_size, "%u\n", in wpas_ctrl_scan()
[all …]
Dctrl_iface_unix.c139 size_t reply_len = 0; in wpa_supplicant_ctrl_iface_receive() local
154 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
157 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
162 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
164 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
168 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
170 reply_len = 2; in wpa_supplicant_ctrl_iface_receive()
173 &reply_len); in wpa_supplicant_ctrl_iface_receive()
184 if (!reply && reply_len == 1) { in wpa_supplicant_ctrl_iface_receive()
186 reply_len = 5; 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 …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
Dap_ctrl_iface.c2943 int reply_len, res; in hostapd_ctrl_iface_receive_process() local
2946 reply_len = 3; in hostapd_ctrl_iface_receive_process()
2950 reply_len = 5; in hostapd_ctrl_iface_receive_process()
2953 reply_len = -1; in hostapd_ctrl_iface_receive_process()
2957 reply_len = hostapd_ctrl_iface_status(hapd, reply, in hostapd_ctrl_iface_receive_process()
2960 reply_len = hostapd_drv_status(hapd, reply, reply_size); in hostapd_ctrl_iface_receive_process()
2962 reply_len = ieee802_11_get_mib(hapd, reply, reply_size); in hostapd_ctrl_iface_receive_process()
2963 if (reply_len >= 0) { in hostapd_ctrl_iface_receive_process()
2964 res = wpa_get_mib(hapd->wpa_auth, reply + reply_len, in hostapd_ctrl_iface_receive_process()
2965 reply_size - reply_len); in hostapd_ctrl_iface_receive_process()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
Dap_ctrl_iface.c3509 int reply_len, res; in hostapd_ctrl_iface_receive_process() local
3512 reply_len = 3; in hostapd_ctrl_iface_receive_process()
3516 reply_len = 5; in hostapd_ctrl_iface_receive_process()
3519 reply_len = -1; in hostapd_ctrl_iface_receive_process()
3523 reply_len = hostapd_ctrl_iface_status(hapd, reply, in hostapd_ctrl_iface_receive_process()
3526 reply_len = hostapd_drv_status(hapd, reply, reply_size); in hostapd_ctrl_iface_receive_process()
3528 reply_len = ieee802_11_get_mib(hapd, reply, reply_size); in hostapd_ctrl_iface_receive_process()
3529 if (reply_len >= 0) { in hostapd_ctrl_iface_receive_process()
3530 res = wpa_get_mib(hapd->wpa_auth, reply + reply_len, in hostapd_ctrl_iface_receive_process()
3531 reply_size - reply_len); in hostapd_ctrl_iface_receive_process()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dctrl_iface_udp.c199 size_t *reply_len) argument
204 *reply_len = 1;
212 *reply_len = 7 + 2 * COOKIE_LEN;
234 size_t reply_len = 0; local
283 reply = wpa_supplicant_ctrl_iface_get_cookie(priv, &reply_len);
322 reply_len = 1;
325 reply_len = 2;
330 reply_len = 1;
332 reply_len = 2;
336 reply_len = 1;
[all …]
Dctrl_iface.c8889 char *reply, int reply_size, int *reply_len) in wpas_ctrl_scan() argument
8905 *reply_len = -1; in wpas_ctrl_scan()
8912 *reply_len = os_snprintf(reply, reply_size, "FAIL-BUSY\n"); in wpas_ctrl_scan()
8920 *reply_len = os_snprintf(reply, reply_size, "FAIL-BUSY\n"); in wpas_ctrl_scan()
8934 *reply_len = -1; in wpas_ctrl_scan()
8954 *reply_len = -1; in wpas_ctrl_scan()
8965 *reply_len = -1; in wpas_ctrl_scan()
8991 *reply_len = -1; in wpas_ctrl_scan()
9003 *reply_len = -1; in wpas_ctrl_scan()
9058 *reply_len = os_snprintf(reply, reply_size, "%u\n", in wpas_ctrl_scan()
[all …]
Dctrl_iface_unix.c139 size_t reply_len = 0; in wpa_supplicant_ctrl_iface_receive() local
163 reply_len = 1; in wpa_supplicant_ctrl_iface_receive()
166 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()
193 if (!reply && reply_len == 1) { in wpa_supplicant_ctrl_iface_receive()
195 reply_len = 5; 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()
721 size_t reply_len = 0, send_len; in wpa_supplicant_global_iface_rx() local
730 &reply_len); in wpa_supplicant_global_iface_rx()
733 send_len = reply_len; in wpa_supplicant_global_iface_rx()
[all …]
/third_party/e2fsprogs/misc/
Duuidd.c150 int32_t reply_len = 0; in call_daemon() local
197 ret = read_all(s, (char *) &reply_len, sizeof(reply_len)); in call_daemon()
204 if (reply_len < 0 || reply_len > buflen) { in call_daemon()
210 ret = read_all(s, (char *) buf, reply_len); in call_daemon()
213 if (reply_len >= (int) (16+sizeof(int))) in call_daemon()
236 int32_t reply_len = 0; in server_loop() local
370 reply_len = strlen(reply_buf)+1; in server_loop()
374 reply_len = strlen(reply_buf)+1; in server_loop()
384 reply_len = sizeof(uu); in server_loop()
394 reply_len = sizeof(uu); in server_loop()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dwpa_ctrl.c517 char *reply, size_t *reply_len, in wpa_ctrl_request() argument
591 res = recv(ctrl->s, reply, *reply_len, 0); in wpa_ctrl_request()
603 if ((size_t) res == *reply_len) in wpa_ctrl_request()
604 res = (*reply_len) - 1; in wpa_ctrl_request()
610 *reply_len = res; in wpa_ctrl_request()
651 int wpa_ctrl_recv(struct wpa_ctrl *ctrl, char *reply, size_t *reply_len) in wpa_ctrl_recv() argument
655 res = recv(ctrl->s, reply, *reply_len, 0); in wpa_ctrl_recv()
658 *reply_len = res; in wpa_ctrl_recv()
760 char *reply, size_t *reply_len, in wpa_ctrl_request() argument
764 DWORD readlen = *reply_len; in wpa_ctrl_request()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dwpa_ctrl.c518 char *reply, size_t *reply_len, in wpa_ctrl_request() argument
592 res = recv(ctrl->s, reply, *reply_len, 0); in wpa_ctrl_request()
604 if ((size_t) res == *reply_len) in wpa_ctrl_request()
605 res = (*reply_len) - 1; in wpa_ctrl_request()
611 *reply_len = res; in wpa_ctrl_request()
652 int wpa_ctrl_recv(struct wpa_ctrl *ctrl, char *reply, size_t *reply_len) in wpa_ctrl_recv() argument
656 res = recv(ctrl->s, reply, *reply_len, 0); in wpa_ctrl_recv()
659 *reply_len = res; in wpa_ctrl_recv()
761 char *reply, size_t *reply_len, in wpa_ctrl_request() argument
765 DWORD readlen = *reply_len; in wpa_ctrl_request()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_privsep.c45 void *reply, size_t *reply_len) in wpa_priv_cmd() argument
83 res = recv(drv->cmd_socket, reply, *reply_len, 0); in wpa_priv_cmd()
89 *reply_len = res; in wpa_priv_cmd()
135 size_t reply_len = 60000; in wpa_driver_privsep_get_scan_results2() local
139 buf = os_malloc(reply_len); in wpa_driver_privsep_get_scan_results2()
143 NULL, 0, buf, &reply_len); in wpa_driver_privsep_get_scan_results2()
150 (unsigned long) reply_len); in wpa_driver_privsep_get_scan_results2()
151 if (reply_len < sizeof(int)) { in wpa_driver_privsep_get_scan_results2()
153 (unsigned long) reply_len); in wpa_driver_privsep_get_scan_results2()
159 end = buf + reply_len; in wpa_driver_privsep_get_scan_results2()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_privsep.c45 void *reply, size_t *reply_len) in wpa_priv_cmd() argument
83 res = recv(drv->cmd_socket, reply, *reply_len, 0); in wpa_priv_cmd()
89 *reply_len = res; in wpa_priv_cmd()
135 size_t reply_len = 60000; in wpa_driver_privsep_get_scan_results2() local
139 buf = os_malloc(reply_len); in wpa_driver_privsep_get_scan_results2()
143 NULL, 0, buf, &reply_len); in wpa_driver_privsep_get_scan_results2()
150 (unsigned long) reply_len); in wpa_driver_privsep_get_scan_results2()
151 if (reply_len < sizeof(int)) { in wpa_driver_privsep_get_scan_results2()
153 (unsigned long) reply_len); in wpa_driver_privsep_get_scan_results2()
159 end = buf + reply_len; in wpa_driver_privsep_get_scan_results2()

12