Lines Matching refs:reply
267 char *cmd, char *reply, in hostapd_ctrl_iface_wps_nfc_config_token() argument
285 res = wpa_snprintf_hex_uppercase(reply, max_len, wpabuf_head(buf), in hostapd_ctrl_iface_wps_nfc_config_token()
287 reply[res++] = '\n'; in hostapd_ctrl_iface_wps_nfc_config_token()
288 reply[res] = '\0'; in hostapd_ctrl_iface_wps_nfc_config_token()
297 char *reply, size_t max_len, in hostapd_ctrl_iface_wps_nfc_token_gen() argument
307 res = wpa_snprintf_hex_uppercase(reply, max_len, wpabuf_head(buf), in hostapd_ctrl_iface_wps_nfc_token_gen()
309 reply[res++] = '\n'; in hostapd_ctrl_iface_wps_nfc_token_gen()
310 reply[res] = '\0'; in hostapd_ctrl_iface_wps_nfc_token_gen()
319 char *cmd, char *reply, in hostapd_ctrl_iface_wps_nfc_token() argument
323 return hostapd_ctrl_iface_wps_nfc_token_gen(hapd, reply, in hostapd_ctrl_iface_wps_nfc_token()
327 return hostapd_ctrl_iface_wps_nfc_token_gen(hapd, reply, in hostapd_ctrl_iface_wps_nfc_token()
343 char *cmd, char *reply, in hostapd_ctrl_iface_nfc_get_handover_sel() argument
370 res = wpa_snprintf_hex_uppercase(reply, max_len, wpabuf_head(buf), in hostapd_ctrl_iface_nfc_get_handover_sel()
372 reply[res++] = '\n'; in hostapd_ctrl_iface_nfc_get_handover_sel()
373 reply[res] = '\0'; in hostapd_ctrl_iface_nfc_get_handover_sel()
3005 static int hostapd_ctrl_iface_mib(struct hostapd_data *hapd, char *reply, in hostapd_ctrl_iface_mib() argument
3010 return radius_server_get_mib(hapd->radius_srv, reply, in hostapd_ctrl_iface_mib()
3026 struct wpabuf *reply; in hostapd_ctrl_iface_vendor() local
3066 reply = wpabuf_alloc((buflen - 1) / 2); in hostapd_ctrl_iface_vendor()
3067 if (!reply) { in hostapd_ctrl_iface_vendor()
3073 nested_attr_flag, reply); in hostapd_ctrl_iface_vendor()
3076 ret = wpa_snprintf_hex(buf, buflen, wpabuf_head_u8(reply), in hostapd_ctrl_iface_vendor()
3077 wpabuf_len(reply)); in hostapd_ctrl_iface_vendor()
3079 wpabuf_free(reply); in hostapd_ctrl_iface_vendor()
3284 const char *cmd, char *reply, in hostapd_ctrl_iface_req_beacon() argument
3318 ret = os_snprintf(reply, reply_size, "%d", ret); in hostapd_ctrl_iface_req_beacon()
3324 const char *cmd, char *reply, in hostapd_ctrl_iface_req_link_measurement() argument
3338 ret = os_snprintf(reply, reply_size, "%d", ret); in hostapd_ctrl_iface_req_link_measurement()
3988 char *buf, char *reply, in hostapd_ctrl_iface_receive_process() argument
3994 char *buf, char *reply, in hostapd_ctrl_iface_receive_process()
4002 os_memcpy(reply, "OK\n", 3); in hostapd_ctrl_iface_receive_process()
4006 os_memcpy(reply, "PONG\n", 5); in hostapd_ctrl_iface_receive_process()
4016 reply_len = hostapd_ctrl_iface_status(hapd, reply, in hostapd_ctrl_iface_receive_process()
4019 reply_len = hostapd_drv_status(hapd, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4021 reply_len = ieee802_11_get_mib(hapd, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4023 res = wpa_get_mib(hapd->wpa_auth, reply + reply_len, in hostapd_ctrl_iface_receive_process()
4031 res = ieee802_1x_get_mib(hapd, reply + reply_len, in hostapd_ctrl_iface_receive_process()
4041 reply + reply_len, in hostapd_ctrl_iface_receive_process()
4050 reply_len = hostapd_ctrl_iface_mib(hapd, reply, reply_size, in hostapd_ctrl_iface_receive_process()
4053 reply_len = hostapd_ctrl_iface_sta_first(hapd, reply, in hostapd_ctrl_iface_receive_process()
4056 reply_len = hostapd_ctrl_iface_sta(hapd, buf + 4, reply, in hostapd_ctrl_iface_receive_process()
4059 reply_len = hostapd_ctrl_iface_sta_next(hapd, buf + 9, reply, in hostapd_ctrl_iface_receive_process()
4089 reply, reply_size); in hostapd_ctrl_iface_receive_process()
4108 hapd, buf + 14, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4117 reply, reply_size); in hostapd_ctrl_iface_receive_process()
4122 reply_len = hostapd_ctrl_iface_wps_get_status(hapd, reply, in hostapd_ctrl_iface_receive_process()
4130 hapd, buf + 21, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4133 hapd, buf + 14, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4136 hapd, buf + 21, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4173 reply_len = hostapd_ctrl_iface_get_config(hapd, reply, in hostapd_ctrl_iface_receive_process()
4179 reply_len = hostapd_ctrl_iface_get(hapd, buf + 4, reply, in hostapd_ctrl_iface_receive_process()
4189 reply_len = hostapd_ctrl_iface_get_rxkhs(hapd, reply, in hostapd_ctrl_iface_receive_process()
4243 reply_len = testing_get_fail_pattern(true, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4248 reply_len = testing_get_fail_pattern(false, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4271 reply_len = hostapd_ctrl_get_pmk(hapd, buf + 8, reply, in hostapd_ctrl_iface_receive_process()
4289 reply_len = hostapd_ctrl_iface_vendor(hapd, buf + 7, reply, in hostapd_ctrl_iface_receive_process()
4304 hapd, buf + 9, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4308 hapd, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4311 reply_len = hostapd_ctrl_iface_pmksa_list(hapd, reply, in hostapd_ctrl_iface_receive_process()
4322 reply_len = hostapd_ctrl_iface_show_neighbor(hapd, reply, in hostapd_ctrl_iface_receive_process()
4335 reply, reply_size); in hostapd_ctrl_iface_receive_process()
4338 hapd, buf + 21, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4340 reply_len = hostapd_ctrl_driver_flags(hapd->iface, reply, in hostapd_ctrl_iface_receive_process()
4343 reply_len = hostapd_ctrl_driver_flags2(hapd->iface, reply, in hostapd_ctrl_iface_receive_process()
4364 hapd->conf->num_accept_mac, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4392 hapd->conf->num_deny_mac, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4408 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4417 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4426 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4435 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4444 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4460 reply_len = os_snprintf(reply, reply_size, "%s", uri); in hostapd_ctrl_iface_receive_process()
4467 reply, reply_size); in hostapd_ctrl_iface_receive_process()
4488 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4507 reply, reply_size); in hostapd_ctrl_iface_receive_process()
4513 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4551 reply_len = hostapd_ctrl_nan_publish(hapd, buf + 12, reply, in hostapd_ctrl_iface_receive_process()
4560 reply_len = hostapd_ctrl_nan_subscribe(hapd, buf + 14, reply, in hostapd_ctrl_iface_receive_process()
4576 hapd, buf + 15, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4579 reply_len = ptksa_cache_list(hapd->ptksa, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4583 reply_len = hostapd_ctrl_iface_driver_cmd(hapd, buf + 7, reply, in hostapd_ctrl_iface_receive_process()
4596 reply, reply_size)) in hostapd_ctrl_iface_receive_process()
4601 os_memcpy(reply, "UNKNOWN COMMAND\n", 16); in hostapd_ctrl_iface_receive_process()
4606 os_memcpy(reply, "FAIL\n", 5); in hostapd_ctrl_iface_receive_process()
4623 char *reply, *pos = buf; in hostapd_ctrl_iface_receive() local
4640 reply = os_malloc(reply_size); in hostapd_ctrl_iface_receive()
4641 if (reply == NULL) { in hostapd_ctrl_iface_receive()
4652 os_memcpy(reply, "COOKIE=", 7); in hostapd_ctrl_iface_receive()
4653 wpa_snprintf_hex(reply + 7, 2 * CTRL_IFACE_COOKIE_LEN + 1, in hostapd_ctrl_iface_receive()
4664 os_free(reply); in hostapd_ctrl_iface_receive()
4672 os_free(reply); in hostapd_ctrl_iface_receive()
4686 reply, reply_size, in hostapd_ctrl_iface_receive()
4692 if (sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in hostapd_ctrl_iface_receive()
4697 os_free(reply); in hostapd_ctrl_iface_receive()
5261 char *reply, int reply_size) in hostapd_global_ctrl_iface_interfaces() argument
5272 pos = reply; in hostapd_global_ctrl_iface_interfaces()
5273 end = reply + reply_size; in hostapd_global_ctrl_iface_interfaces()
5293 return pos - reply; in hostapd_global_ctrl_iface_interfaces()
5299 return pos - reply; in hostapd_global_ctrl_iface_interfaces()
5350 char *buf, char *reply, in hostapd_global_ctrl_iface_ifname() argument
5361 res = os_snprintf(reply, reply_size, "FAIL-NO-IFNAME-MATCH\n"); in hostapd_global_ctrl_iface_ifname()
5367 return hostapd_ctrl_iface_receive_process(hapd, buf, reply,reply_size, in hostapd_global_ctrl_iface_ifname()
5380 char *reply; in hostapd_global_ctrl_iface_receive() local
5397 reply = os_malloc(reply_size); in hostapd_global_ctrl_iface_receive()
5398 if (reply == NULL) { in hostapd_global_ctrl_iface_receive()
5407 os_memcpy(reply, "OK\n", 3); in hostapd_global_ctrl_iface_receive()
5412 os_memcpy(reply, "COOKIE=", 7); in hostapd_global_ctrl_iface_receive()
5413 wpa_snprintf_hex(reply + 7, 2 * CTRL_IFACE_COOKIE_LEN + 1, in hostapd_global_ctrl_iface_receive()
5424 os_free(reply); in hostapd_global_ctrl_iface_receive()
5432 os_free(reply); in hostapd_global_ctrl_iface_receive()
5447 interfaces, buf + 7, pos, reply, reply_size, in hostapd_global_ctrl_iface_receive()
5454 os_memcpy(reply, "PONG\n", 5); in hostapd_global_ctrl_iface_receive()
5487 reply_len = os_snprintf(reply, reply_size, "OK\n"); in hostapd_global_ctrl_iface_receive()
5492 reply_len = os_snprintf(reply, reply_size, "OK\n"); in hostapd_global_ctrl_iface_receive()
5496 reply_len = fst_ctrl_iface_receive(buf + 12, reply, reply_size); in hostapd_global_ctrl_iface_receive()
5501 reply_len = os_snprintf(reply, reply_size, "OK\n"); in hostapd_global_ctrl_iface_receive()
5506 interfaces, buf + 10, reply, reply_size); in hostapd_global_ctrl_iface_receive()
5517 os_memcpy(reply, "FAIL\n", 5); in hostapd_global_ctrl_iface_receive()
5521 if (sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in hostapd_global_ctrl_iface_receive()
5526 os_free(reply); in hostapd_global_ctrl_iface_receive()