Home
last modified time | relevance | path

Searched refs:os_snprintf (Results 1 – 25 of 121) sorted by relevance

12345

/freebsd-12.1/contrib/wpa/src/fst/
H A Dfst_ctrl_iface.c70 len = os_snprintf(buffer, size, in format_session_state_extra()
183 return os_snprintf(buf, buflen, "FAIL\n"); in session_get()
191 return os_snprintf(buf, buflen, in session_get()
222 return os_snprintf(buf, buflen, "FAIL\n"); in session_set()
226 return os_snprintf(buf, buflen, "FAIL\n"); in session_set()
241 return os_snprintf(buf, buflen, "FAIL\n"); in session_set()
292 return os_snprintf(buf, buflen, "OK\n"); in session_remove()
315 return os_snprintf(buf, buflen, "OK\n"); in session_initiate()
358 return os_snprintf(buf, buflen, "OK\n"); in session_respond()
382 return os_snprintf(buf, buflen, "OK\n"); in session_transfer()
[all …]
/freebsd-12.1/contrib/wpa/src/ap/
H A Dctrl_iface_ap.c35 ret = os_snprintf(buf + len, buflen - len, in hostapd_write_ht_mcs_bitmask()
139 ret = os_snprintf(buf + len, buflen - len, in hostapd_get_sta_tx_rx()
157 ret = os_snprintf(buf + len, buflen - len, in hostapd_get_sta_tx_rx()
299 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
309 res = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
320 res = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
339 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
372 ret = os_snprintf(buf, buflen, "FAIL\n"); in hostapd_ctrl_iface_sta()
414 ret = os_snprintf(buf, buflen, "FAIL\n"); in hostapd_ctrl_iface_sta_next()
657 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
[all …]
H A Dtaxonomy.c145 os_snprintf(wps, sizeof(wps), in ie_to_string()
150 ret = os_snprintf(fpos, fend - fpos, in ie_to_string()
156 os_snprintf(htcap, sizeof(htcap), in ie_to_string()
163 os_snprintf(htagg, sizeof(htagg), in ie_to_string()
168 os_snprintf(htmcs, sizeof(htmcs), in ie_to_string()
174 os_snprintf(vhtcap, sizeof(vhtcap), in ie_to_string()
181 os_snprintf(vhtrxmcs, sizeof(vhtrxmcs), in ie_to_string()
188 os_snprintf(vhttxmcs, sizeof(vhttxmcs), in ie_to_string()
199 p += os_snprintf(extcap, sizeof(extcap), in ie_to_string()
208 p += os_snprintf(p, lim, "%02x", in ie_to_string()
[all …]
H A Dmbo_ap.c67 ret = os_snprintf(pos, end - pos, "%s%u", in mbo_ap_parse_non_pref_chan()
126 ret = os_snprintf(pos, end - pos, "mbo_cell_capa=%u\n", sta->cell_capa); in mbo_ap_get_info()
134 ret = os_snprintf(pos2, end - pos2, in mbo_ap_get_info()
144 ret = os_snprintf(pos2, end - pos2, "%u%s", in mbo_ap_get_info()
157 ret = os_snprintf(pos2, end - pos2, "\n"); in mbo_ap_get_info()
H A Dvlan_full.c396 ret = os_snprintf(vlan_ifname, sizeof(vlan_ifname), "%s.%d", in vlan_newlink_tagged()
399 ret = os_snprintf(vlan_ifname, sizeof(vlan_ifname), "vlan%d", in vlan_newlink_tagged()
430 ret = os_snprintf(br_name, IFNAMSIZ, "%s%d", in vlan_bridge_name()
433 ret = os_snprintf(br_name, IFNAMSIZ, "br%s.%d", in vlan_bridge_name()
436 ret = os_snprintf(br_name, IFNAMSIZ, "brvlan%d", vid); in vlan_bridge_name()
522 ret = os_snprintf(vlan_ifname, sizeof(vlan_ifname), "%s.%d", in vlan_dellink_tagged()
525 ret = os_snprintf(vlan_ifname, sizeof(vlan_ifname), "vlan%d", in vlan_dellink_tagged()
H A Dpmksa_cache_auth.c566 os_snprintf(buf, sizeof(buf), "%016llX", in das_attr_match()
638 ret = os_snprintf(pos, buf + len - pos, in pmksa_cache_auth_list()
646 ret = os_snprintf(pos, buf + len - pos, "%d " MACSTR " ", in pmksa_cache_auth_list()
653 ret = os_snprintf(pos, buf + len - pos, " %d %d\n", in pmksa_cache_auth_list()
701 ret = os_snprintf(pos, end - pos, MACSTR " ", in pmksa_cache_auth_list_mesh()
710 ret = os_snprintf(pos, end - pos, " "); in pmksa_cache_auth_list_mesh()
718 ret = os_snprintf(pos, end - pos, " %d\n", in pmksa_cache_auth_list_mesh()
/freebsd-12.1/contrib/wpa/src/common/
H A Docv.c105 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params()
111 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params()
122 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params()
129 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params()
138 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params()
152 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params()
165 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params()
H A Dcli.c98 os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(addr)); in cli_txt_list_del_addr()
147 os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(addr)); in cli_txt_list_add_addr()
219 res = os_snprintf(pos, end - pos, "%s", cmd); in write_cmd()
225 res = os_snprintf(pos, end - pos, " %s", argv[i]); in write_cmd()
H A Dwpa_ctrl.c121 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2()
126 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2()
194 os_snprintf(buf, sizeof(buf), "wpa_%s", ctrl_path); in wpa_ctrl_open2()
279 dirnamelen = (size_t) os_snprintf(pathname, sizeof(pathname), "%s/", in wpa_ctrl_cleanup()
463 os_snprintf(ps, WPA_CTRL_MAX_PS_NAME, "%s/%s", in wpa_ctrl_get_remote_ifname()
674 ret = os_snprintf(name, 256, NAMED_PIPE_PREFIX); in wpa_ctrl_open()
676 ret = os_snprintf(name, 256, NAMED_PIPE_PREFIX "-%s", in wpa_ctrl_open()
/freebsd-12.1/contrib/wpa/hostapd/
H A Dhostapd_cli.c264 os_snprintf(buf, sizeof(buf), "MIB %s", argv[0]); in hostapd_cli_cmd_mib()
282 os_snprintf(arg, len, "%s %s", arg1, arg2); in hostapd_cli_exec()
362 os_snprintf(buf, sizeof(buf), "DEAUTHENTICATE %s %s", in hostapd_cli_cmd_deauthenticate()
380 os_snprintf(buf, sizeof(buf), "DISASSOCIATE %s %s", in hostapd_cli_cmd_disassociate()
622 os_snprintf(&ssid_hex[i * 2], 3, "%02x", argv[0][i]); in hostapd_cli_cmd_wps_config()
630 os_snprintf(&key_hex[i * 2], 3, "%02x", in hostapd_cli_cmd_wps_config()
785 os_snprintf(cmd, sizeof(cmd), "STA-NEXT %s", addr); in hostapd_cli_cmd_list_sta()
893 res = os_snprintf(buf, sizeof(buf), in hostapd_cli_cmd_hs20_deauth_req()
897 res = os_snprintf(buf, sizeof(buf), in hostapd_cli_cmd_hs20_deauth_req()
942 os_snprintf(cmd, sizeof(cmd), "STA-NEXT %s", addr); in update_stations()
[all …]
H A Dctrl_iface.c222 ret = os_snprintf(buf, buflen, "%s", pin); in hostapd_ctrl_iface_wps_check_pin()
458 return os_snprintf(buf, buflen, "OK\n"); in hostapd_ctrl_iface_wps_ap_pin()
571 ret = os_snprintf(pos, end - pos, in hostapd_ctrl_iface_wps_get_status()
1131 ret = os_snprintf(pos, end - pos, in hostapd_ctrl_iface_get_key_mgmt()
1243 ret = os_snprintf(pos, end - pos, "\n"); in hostapd_ctrl_iface_get_config()
1269 ret = os_snprintf(pos, end - pos, "\n"); in hostapd_ctrl_iface_get_config()
1287 ret = os_snprintf(pos, end - pos, "\n"); in hostapd_ctrl_iface_get_config()
3489 os_snprintf(buf, len, "%s/%s", in hostapd_ctrl_iface_path()
3552 os_snprintf(p, sizeof(p), "%d", port); in hostapd_ctrl_iface_init()
4025 res = os_snprintf(pos, end - pos, in hostapd_global_ctrl_iface_interfaces()
[all …]
/freebsd-12.1/contrib/wpa/wpa_supplicant/
H A Dctrl_iface.c2084 ret = os_snprintf(pos, end - pos, in wpa_supplicant_ctrl_iface_status()
2092 ret = os_snprintf(pos, end - pos, in wpa_supplicant_ctrl_iface_status()
2102 ret = os_snprintf(pos, end - pos, in wpa_supplicant_ctrl_iface_status()
2106 ret = os_snprintf(pos, end - pos, in wpa_supplicant_ctrl_iface_status()
2138 ret = os_snprintf(pos, end - pos, in wpa_supplicant_ctrl_iface_status()
2512 ret = os_snprintf(pos, end - pos, in wpa_supplicant_ctrl_iface_list_networks()
2855 ret = os_snprintf(pos, end - pos, in wpa_supplicant_ctrl_iface_scan_result()
3570 ret = os_snprintf(pos, end - pos, in wpa_supplicant_ctrl_iface_list_creds()
4748 ret = os_snprintf( in print_bss_info()
7651 ret = os_snprintf(pos, end - pos, in wpa_supplicant_signal_poll()
[all …]
H A Dwpa_cli.c236 os_snprintf(buf, sizeof(buf), "IFNAME=%s %s", in _wpa_ctrl_command()
825 os_snprintf(&key_hex[i * 2], 3, "%02x", in wpa_cli_cmd_wps_reg()
830 res = os_snprintf(cmd, sizeof(cmd), in wpa_cli_cmd_wps_reg()
954 os_snprintf(&key_hex[i * 2], 3, "%02x", in wpa_cli_cmd_wps_er_config()
959 res = os_snprintf(cmd, sizeof(cmd), in wpa_cli_cmd_wps_er_config()
1827 res = os_snprintf(cmd, sizeof(cmd), in wpa_cli_cmd_interface_add()
1889 os_snprintf(buf, sizeof(buf), "IFNAME=%s %s", in wpa_ctrl_command_sta()
2325 res = os_snprintf(cmd, sizeof(cmd), in wpa_cli_cmd_p2p_service_del()
2329 res = os_snprintf(cmd, sizeof(cmd), in wpa_cli_cmd_p2p_service_del()
3764 os_snprintf(res[i], len, "ifname=%s", e->txt); in wpa_list_cmd_list()
[all …]
H A Dconfig.c251 res = os_snprintf(value, 20, "%d", *src); in wpa_config_write_int()
668 ret = os_snprintf(pos, end - pos, "%sWPA", in wpa_config_write_proto()
676 ret = os_snprintf(pos, end - pos, "%sRSN", in wpa_config_write_proto()
684 ret = os_snprintf(pos, end - pos, "%sOSEN", in wpa_config_write_proto()
937 ret = os_snprintf(pos, end - pos, "%sWPS", in wpa_config_write_key_mgmt()
949 ret = os_snprintf(pos, end - pos, "%sSAE", in wpa_config_write_key_mgmt()
1048 ret = os_snprintf(pos, end - pos, "%sDPP", in wpa_config_write_key_mgmt()
1060 ret = os_snprintf(pos, end - pos, "%sOWE", in wpa_config_write_key_mgmt()
1433 ret = os_snprintf(pos, end - pos, "%s%u", in wpa_config_write_freqs()
2106 os_snprintf(value, 20, "%d", ssid->ocv); in wpa_config_write_ocv()
[all …]
H A Dmesh.c568 ret = os_snprintf(pos, end - pos, "mesh_id=%s\n", mesh_id); in mesh_attr_text()
575 ret = os_snprintf(pos, end - pos, in mesh_attr_text()
611 ret = os_snprintf(pos, end - pos, "bss_basic_rate_set=%d", in mesh_attr_text()
618 ret = os_snprintf(pos, end - pos, " %d", in mesh_attr_text()
625 ret = os_snprintf(pos, end - pos, "\n"); in mesh_attr_text()
650 res = os_snprintf(ifname, len, "mesh-%s-%d", ifname_ptr, in wpas_mesh_get_ifname()
656 res = os_snprintf(ifname, len, "mesh-%d", wpa_s->mesh_if_idx); in wpas_mesh_get_ifname()
/freebsd-12.1/contrib/wpa/src/eapol_auth/
H A Deapol_auth_dump.c130 ret = os_snprintf(pos, end - pos, "aWhile=%d\nquietWhile=%d\n" in eapol_auth_dump_state()
138 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state()
180 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state()
222 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state()
247 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state()
258 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state()
265 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state()
274 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state()
/freebsd-12.1/contrib/wpa/src/eap_server/
H A Deap_sim_db.c231 os_snprintf(cmd, sizeof(cmd), in db_get_pseudonym()
268 pos += os_snprintf(pos, end - pos, ", '"); in db_add_reauth()
270 pos += os_snprintf(pos, end - pos, "'"); in db_add_reauth()
274 pos += os_snprintf(pos, end - pos, ", '"); in db_add_reauth()
277 pos += os_snprintf(pos, end - pos, "'"); in db_add_reauth()
281 pos += os_snprintf(pos, end - pos, ", '"); in db_add_reauth()
284 pos += os_snprintf(pos, end - pos, "'"); in db_add_reauth()
291 pos += os_snprintf(pos, end - pos, "'"); in db_add_reauth()
294 os_snprintf(pos, end - pos, ");"); in db_add_reauth()
349 os_snprintf(cmd, sizeof(cmd), in db_get_reauth()
[all …]
/freebsd-12.1/contrib/wpa/src/wps/
H A Dwps.c558 ret = os_snprintf(pos, end - pos, in wps_attr_text()
561 ret = os_snprintf(pos, end - pos, in wps_attr_text()
571 ret = os_snprintf(pos, end - pos, in wps_attr_text()
579 ret = os_snprintf(pos, end - pos, in wps_attr_text()
587 ret = os_snprintf(pos, end - pos, in wps_attr_text()
596 ret = os_snprintf(pos, end - pos, in wps_attr_text()
607 ret = os_snprintf(pos, end - pos, in wps_attr_text()
630 ret = os_snprintf(pos, end - pos, "wps_device_name=%s\n", str); in wps_attr_text()
638 ret = os_snprintf(pos, end - pos, in wps_attr_text()
/freebsd-12.1/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_new.c382 os_snprintf(net_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_network()
485 os_snprintf(net_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_network_request()
518 os_snprintf(path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_network_enabled_changed()
1288 os_snprintf(peer_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_p2p_provision_discovery()
1353 os_snprintf(peer_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_p2p_go_neg_req()
2326 os_snprintf(path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_bss_signal_prop_changed()
2361 os_snprintf(path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_sta_signal_prop_changed()
2710 os_snprintf(net_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_register_network()
2782 os_snprintf(net_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_unregister_network()
2920 os_snprintf(bss_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_unregister_bss()
[all …]
/freebsd-12.1/contrib/wpa/src/p2p/
H A Dp2p_parse.c725 ret = os_snprintf(pos, end - pos, "p2p_group_client: " in p2p_group_info_text()
733 ret = os_snprintf(pos, end - pos, in p2p_group_info_text()
745 ret = os_snprintf(pos, end - pos, " dev_type=%s", in p2p_group_info_text()
763 ret = os_snprintf(pos, end - pos, " dev_name='%s'\n", name); in p2p_group_info_text()
794 ret = os_snprintf(pos, end - pos, in p2p_attr_text()
805 ret = os_snprintf(pos, end - pos, in p2p_attr_text()
815 ret = os_snprintf(pos, end - pos, "p2p_device_name=%s\n", in p2p_attr_text()
822 ret = os_snprintf(pos, end - pos, "p2p_device_addr=" MACSTR in p2p_attr_text()
830 ret = os_snprintf(pos, end - pos, "p2p_config_methods=0x%x\n", in p2p_attr_text()
/freebsd-12.1/contrib/wpa/src/drivers/
H A Ddriver_nl80211_android.c109 os_snprintf(&buf[bp], WEXT_PNO_SCAN_INTERVAL_LENGTH + 1, "%x", in android_pno_start()
114 os_snprintf(&buf[bp], WEXT_PNO_REPEAT_LENGTH + 1, "%x", in android_pno_start()
119 os_snprintf(&buf[bp], WEXT_PNO_MAX_REPEAT_LENGTH + 1, "%x", in android_pno_start()
/freebsd-12.1/contrib/wpa/hs20/client/
H A Dest.c134 os_snprintf(buf, buflen, "%s/cacerts", url); in est_load_cacerts()
462 os_snprintf(name, sizeof(name), "cert-user-%u", val); in generate_csr()
616 os_snprintf(buf, buflen, "%s/csrattrs", url); in est_build_csr()
662 os_snprintf(old_cert_buf, sizeof(old_cert_buf), in est_build_csr()
709 os_snprintf(buf, buflen, "%s/simplereenroll", url); in est_simple_enroll()
710 os_snprintf(client_cert_buf, sizeof(client_cert_buf), in est_simple_enroll()
713 os_snprintf(client_key_buf, sizeof(client_key_buf), in est_simple_enroll()
717 os_snprintf(buf, buflen, "%s/simpleenroll", url); in est_simple_enroll()
/freebsd-12.1/contrib/wpa/src/eap_peer/
H A Deap_teap_pac.c507 ret = os_snprintf(*pos, end - *pos, "%s=", field); in eap_teap_write()
512 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_teap_write()
518 ret = os_snprintf(*pos, end - *pos, "%s-txt=", field); in eap_teap_write()
523 ret = os_snprintf(*pos, end - *pos, "%c", data[i]); in eap_teap_write()
528 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_teap_write()
584 ret = os_snprintf(*pos, *buf + *buf_len - *pos, in eap_teap_add_pac_data()
606 ret = os_snprintf(*pos, *buf + *buf_len - *pos, "END\n"); in eap_teap_add_pac_data()
638 ret = os_snprintf(pos, buf + buf_len - pos, "%s\n", pac_file_hdr); in eap_teap_save_pac()
H A Deap_fast_pac.c506 ret = os_snprintf(*pos, end - *pos, "%s=", field); in eap_fast_write()
511 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_fast_write()
517 ret = os_snprintf(*pos, end - *pos, "%s-txt=", field); in eap_fast_write()
522 ret = os_snprintf(*pos, end - *pos, "%c", data[i]); in eap_fast_write()
527 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_fast_write()
579 ret = os_snprintf(*pos, *buf + *buf_len - *pos, in eap_fast_add_pac_data()
602 ret = os_snprintf(*pos, *buf + *buf_len - *pos, "END\n"); in eap_fast_add_pac_data()
634 ret = os_snprintf(pos, buf + buf_len - pos, "%s\n", pac_file_hdr); in eap_fast_save_pac()
/freebsd-12.1/contrib/wpa/src/utils/
H A Dos.h474 int os_snprintf(char *str, size_t size, const char *format, ...);
548 #ifndef os_snprintf
550 #define os_snprintf _snprintf macro
552 #define os_snprintf snprintf macro

12345