| /freebsd/contrib/wpa/src/fst/ |
| H A D | fst_ctrl_iface.c | 50 os_snprintf(reject_str, sizeof(reject_str), "%u", in format_session_state_extra() 70 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() 244 return os_snprintf(buf, buflen, "%s\n", ret ? "FAIL" : "OK"); in session_set() 258 return os_snprintf(buf, buflen, "FAIL\n"); in session_add() 266 return os_snprintf(buf, buflen, "FAIL\n"); in session_add() [all …]
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | taxonomy.c | 145 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 D | ctrl_iface_ap.c | 37 ret = os_snprintf(buf + len, buflen - len, in hostapd_write_ht_mcs_bitmask() 46 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_write_ht_mcs_bitmask() 74 ret = os_snprintf(buf, buflen, "connected_time=%lu\n", secs); in hostapd_get_sta_conn_time() 92 ret = os_snprintf(buf, buflen, "rx_packets=%lu\ntx_packets=%lu\n" in hostapd_get_sta_info() 102 ret = os_snprintf(buf + len, buflen - len, "rx_rate_info=%lu", in hostapd_get_sta_info() 108 ret = os_snprintf(buf + len, buflen - len, " mcs %u", in hostapd_get_sta_info() 114 ret = os_snprintf(buf + len, buflen - len, " vhtmcs %u", in hostapd_get_sta_info() 120 ret = os_snprintf(buf + len, buflen - len, " vhtnss %u", in hostapd_get_sta_info() 126 ret = os_snprintf(buf + len, buflen - len, " shortGI"); in hostapd_get_sta_info() 130 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_get_sta_info() [all …]
|
| H A D | mbo_ap.c | 67 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 D | vlan_full.c | 396 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() 530 ret = os_snprintf(vlan_ifname, sizeof(vlan_ifname), "%s.%d", in vlan_dellink_tagged() 533 ret = os_snprintf(vlan_ifname, sizeof(vlan_ifname), "vlan%d", in vlan_dellink_tagged()
|
| H A D | pmksa_cache_auth.c | 599 os_snprintf(buf, sizeof(buf), "%016llX", in das_attr_match() 675 ret = os_snprintf(pos, buf + len - pos, "%d " MACSTR " ", in pmksa_cache_auth_list() 682 ret = os_snprintf(pos, buf + len - pos, " %d %d\n", in pmksa_cache_auth_list() 731 ret = os_snprintf(pos, end - pos, MACSTR " ", in pmksa_cache_auth_list_mesh() 740 ret = os_snprintf(pos, end - pos, " "); in pmksa_cache_auth_list_mesh() 748 ret = os_snprintf(pos, end - pos, " %d\n", in pmksa_cache_auth_list_mesh()
|
| /freebsd/contrib/wpa/src/common/ |
| H A D | ocv.c | 108 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params() 114 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params() 125 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params() 132 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params() 141 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params() 155 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params() 167 os_snprintf(ocv_errorstr, sizeof(ocv_errorstr), in ocv_verify_tx_params()
|
| H A D | cli.c | 98 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 D | ptksa_cache.c | 193 ret = os_snprintf(pos, buf + len - pos, in ptksa_cache_list() 200 ret = os_snprintf(pos, buf + len - pos, "%u " MACSTR, in ptksa_cache_list() 206 ret = os_snprintf(pos, buf + len - pos, " %s %lu ", in ptksa_cache_list() 219 ret = os_snprintf(pos, buf + len - pos, " "); in ptksa_cache_list() 230 ret = os_snprintf(pos, buf + len - pos, "\n"); in ptksa_cache_list()
|
| H A D | wpa_ctrl.c | 121 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() 278 dirnamelen = (size_t) os_snprintf(pathname, sizeof(pathname), "%s/", in wpa_ctrl_cleanup() 462 os_snprintf(ps, WPA_CTRL_MAX_PS_NAME, "%s/%s", in wpa_ctrl_get_remote_ifname() 683 ret = os_snprintf(name, 256, NAMED_PIPE_PREFIX); in wpa_ctrl_open() 685 ret = os_snprintf(name, 256, NAMED_PIPE_PREFIX "-%s", in wpa_ctrl_open()
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | ctrl_iface.c | 1018 res = os_snprintf(buf, buflen, "%s", VERSION_STR); in wpa_supplicant_ctrl_iface_get() 1020 res = os_snprintf(buf, buflen, "%u", CTRL_IFACE_MAX_LEN); in wpa_supplicant_ctrl_iface_get() 1023 res = os_snprintf(buf, buflen, "%c%c", in wpa_supplicant_ctrl_iface_get() 1034 res = os_snprintf(buf, buflen, "%d", enabled); in wpa_supplicant_ctrl_iface_get() 1052 res = os_snprintf(buf, buflen, "%d", wpa_s->last_tk_key_idx); in wpa_supplicant_ctrl_iface_get() 1185 ret = os_snprintf(buf, buflen, "%s\n", in ctrl_iface_get_capability_tdls() 1313 ret = os_snprintf(buf, buflen, "TDLS link status: %s\n", tdls_status); in wpa_supplicant_ctrl_iface_tdls_link_status() 1505 ret = os_snprintf(buf, buflen, "%s", pin); in wpa_supplicant_ctrl_iface_wps_pin() 1517 ret = os_snprintf(buf, buflen, "%08d", ret); in wpa_supplicant_ctrl_iface_wps_pin() 1554 ret = os_snprintf(buf, buflen, "FAIL-CHECKSUM\n"); in wpa_supplicant_ctrl_iface_wps_check_pin() [all …]
|
| H A D | wpa_cli.c | 163 res = os_snprintf(cfile, flen, "%s/%s", ctrl_iface_dir, in wpa_cli_open_connection() 239 os_snprintf(buf, sizeof(buf), "IFNAME=%s %s", in _wpa_ctrl_command() 441 res = os_snprintf(cmd, sizeof(cmd), "SET %s ", argv[0]); in wpa_cli_cmd_set() 714 res = os_snprintf(cmd, sizeof(cmd), "BSS_FLUSH 0"); in wpa_cli_cmd_bss_flush() 716 res = os_snprintf(cmd, sizeof(cmd), "BSS_FLUSH %s", argv[0]); in wpa_cli_cmd_bss_flush() 804 os_snprintf(buf, buflen, "WPS_NFC_TAG_READ %s", argv[0]); in wpa_cli_cmd_wps_nfc_tag_read() 842 res = os_snprintf(cmd, sizeof(cmd), "WPS_REG %s %s", in wpa_cli_cmd_wps_reg() 853 os_snprintf(&ssid_hex[i * 2], 3, "%02x", argv[2][i]); in wpa_cli_cmd_wps_reg() 861 os_snprintf(&key_hex[i * 2], 3, "%02x", in wpa_cli_cmd_wps_reg() 866 res = os_snprintf(cmd, sizeof(cmd), in wpa_cli_cmd_wps_reg() [all …]
|
| H A D | config.c | 268 res = os_snprintf(value, 20, "%d", *src); in wpa_config_write_int() 331 res = os_snprintf(value, 20, "%d", *src); in wpa_config_write_bool() 469 res = os_snprintf(value, 20, MACSTR, MAC2STR(ssid->bssid)); in wpa_config_write_bssid() 514 res = os_snprintf(value, 20, MACSTR, MAC2STR(ssid->bssid_hint)); in wpa_config_write_bssid_hint() 710 res = os_snprintf(buf, len, "ext:%s", ssid->ext_psk); in wpa_config_write_psk() 835 ret = os_snprintf(pos, end - pos, "%sWPA", in wpa_config_write_proto() 843 ret = os_snprintf(pos, end - pos, "%sRSN", in wpa_config_write_proto() 995 ret = os_snprintf(pos, end - pos, "%sWPA-PSK", in wpa_config_write_key_mgmt() 1005 ret = os_snprintf(pos, end - pos, "%sWPA-EAP", in wpa_config_write_key_mgmt() 1015 ret = os_snprintf(pos, end - pos, "%sIEEE8021X", in wpa_config_write_key_mgmt() [all …]
|
| H A D | robust_av.c | 1152 res = os_snprintf(pos, rem_len, " src_ip=%s", addr); in write_ipv4_info() 1167 res = os_snprintf(pos, rem_len, " dst_ip=%s", addr); in write_ipv4_info() 1176 res = os_snprintf(pos, rem_len, " src_port=%d", v4->src_port); in write_ipv4_info() 1185 res = os_snprintf(pos, rem_len, " dst_port=%d", v4->dst_port); in write_ipv4_info() 1194 res = os_snprintf(pos, rem_len, " protocol=%d", v4->protocol); in write_ipv4_info() 1222 res = os_snprintf(pos, rem_len, " src_ip=%s", addr); in write_ipv6_info() 1237 res = os_snprintf(pos, rem_len, " dst_ip=%s", addr); in write_ipv6_info() 1246 res = os_snprintf(pos, rem_len, " src_port=%d", v6->src_port); in write_ipv6_info() 1255 res = os_snprintf(pos, rem_len, " dst_port=%d", v6->dst_port); in write_ipv6_info() 1264 res = os_snprintf(pos, rem_len, " protocol=%d", in write_ipv6_info() [all …]
|
| H A D | mesh.c | 758 ret = os_snprintf(pos, end - pos, "mesh_id=%s\n", mesh_id); in mesh_attr_text() 765 ret = os_snprintf(pos, end - pos, in mesh_attr_text() 801 ret = os_snprintf(pos, end - pos, "bss_basic_rate_set=%d", in mesh_attr_text() 808 ret = os_snprintf(pos, end - pos, " %d", in mesh_attr_text() 815 ret = os_snprintf(pos, end - pos, "\n"); in mesh_attr_text() 840 res = os_snprintf(ifname, len, "mesh-%s-%d", ifname_ptr, in wpas_mesh_get_ifname() 846 res = os_snprintf(ifname, len, "mesh-%d", wpa_s->mesh_if_idx); in wpas_mesh_get_ifname()
|
| /freebsd/contrib/wpa/hostapd/ |
| H A D | hostapd_cli.c | 284 os_snprintf(buf, sizeof(buf), "MIB %s", argv[0]); in hostapd_cli_cmd_mib() 302 os_snprintf(arg, len, "%s %s", arg1, arg2); in hostapd_cli_exec() 388 os_snprintf(buf, sizeof(buf), "DEAUTHENTICATE %s %s", in hostapd_cli_cmd_deauthenticate() 391 os_snprintf(buf, sizeof(buf), "DEAUTHENTICATE %s", argv[0]); in hostapd_cli_cmd_deauthenticate() 406 os_snprintf(buf, sizeof(buf), "DISASSOCIATE %s %s", in hostapd_cli_cmd_disassociate() 409 os_snprintf(buf, sizeof(buf), "DISASSOCIATE %s", argv[0]); in hostapd_cli_cmd_disassociate() 424 os_snprintf(buf, sizeof(buf), "SIGNATURE %s", argv[0]); in hostapd_cli_cmd_signature() 479 res = os_snprintf(cmd, sizeof(cmd), "WPS_CHECK_PIN %s %s", in hostapd_cli_cmd_wps_check_pin() 482 res = os_snprintf(cmd, sizeof(cmd), "WPS_CHECK_PIN %s", in hostapd_cli_cmd_wps_check_pin() 524 os_snprintf(buf, buflen, "WPS_NFC_TAG_READ %s", argv[0]); in hostapd_cli_cmd_wps_nfc_tag_read() [all …]
|
| H A D | ctrl_iface.c | 221 ret = os_snprintf(buf, buflen, "FAIL-CHECKSUM\n"); in hostapd_ctrl_iface_wps_check_pin() 228 ret = os_snprintf(buf, buflen, "%s", pin); in hostapd_ctrl_iface_wps_check_pin() 464 return os_snprintf(buf, buflen, "OK\n"); in hostapd_ctrl_iface_wps_ap_pin() 473 return os_snprintf(buf, buflen, "%s", pin_txt); in hostapd_ctrl_iface_wps_ap_pin() 480 return os_snprintf(buf, buflen, "%s", pin_txt); in hostapd_ctrl_iface_wps_ap_pin() 497 return os_snprintf(buf, buflen, "%s", pin); in hostapd_ctrl_iface_wps_ap_pin() 557 ret = os_snprintf(pos, end - pos, "PBC Status: %s\n", in hostapd_ctrl_iface_wps_get_status() 564 ret = os_snprintf(pos, end - pos, "Last WPS result: %s\n", in hostapd_ctrl_iface_wps_get_status() 577 ret = os_snprintf(pos, end - pos, in hostapd_ctrl_iface_wps_get_status() 587 ret = os_snprintf(pos, end - pos, "Peer Address: " MACSTR "\n", in hostapd_ctrl_iface_wps_get_status() [all …]
|
| /freebsd/contrib/wpa/src/eapol_auth/ |
| H A D | eapol_auth_dump.c | 130 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/contrib/wpa/src/eap_server/ |
| H A D | eap_sim_db.c | 89 os_snprintf(cmd, sizeof(cmd), "SELECT 1 FROM %s;", name); in db_table_exists() 192 os_snprintf(cmd, sizeof(cmd), "INSERT OR REPLACE INTO pseudonyms " in db_add_pseudonym() 231 os_snprintf(cmd, sizeof(cmd), in db_get_pseudonym() 257 pos += os_snprintf(pos, end - pos, "INSERT OR REPLACE INTO reauth " in db_add_reauth() 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() [all …]
|
| /freebsd/contrib/wpa/src/wps/ |
| H A D | wps.c | 559 ret = os_snprintf(pos, end - pos, in wps_attr_text() 562 ret = os_snprintf(pos, end - pos, in wps_attr_text() 572 ret = os_snprintf(pos, end - pos, in wps_attr_text() 580 ret = os_snprintf(pos, end - pos, in wps_attr_text() 588 ret = os_snprintf(pos, end - pos, in wps_attr_text() 597 ret = os_snprintf(pos, end - pos, in wps_attr_text() 608 ret = os_snprintf(pos, end - pos, in wps_attr_text() 631 ret = os_snprintf(pos, end - pos, "wps_device_name=%s\n", str); in wps_attr_text() 639 ret = os_snprintf(pos, end - pos, in wps_attr_text()
|
| /freebsd/contrib/wpa/src/drivers/ |
| H A D | driver_nl80211_android.c | 109 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/contrib/wpa/wpa_supplicant/dbus/ |
| H A D | dbus_new.c | 382 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() 969 os_snprintf(bss_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_interworking_ap_added() 974 os_snprintf(cred_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_interworking_ap_added() 1035 os_snprintf(addr, WPAS_DBUS_OBJECT_PATH_MAX, MACSTR, MAC2STR(dst)); in wpas_dbus_signal_anqp_query_done() 1201 os_snprintf(sta_mac, WPAS_DBUS_OBJECT_PATH_MAX, MACSTR, MAC2STR(sta)); in wpas_dbus_signal_sta() 1448 os_snprintf(pin, sizeof(pin), "%08d", generated_pin); in wpas_dbus_signal_p2p_provision_discovery() 1461 os_snprintf(peer_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_p2p_provision_discovery() 1526 os_snprintf(peer_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_p2p_go_neg_req() [all …]
|
| /freebsd/contrib/wpa/src/p2p/ |
| H A D | p2p_parse.c | 814 ret = os_snprintf(pos, end - pos, "p2p_group_client: " in p2p_group_info_text() 822 ret = os_snprintf(pos, end - pos, in p2p_group_info_text() 834 ret = os_snprintf(pos, end - pos, " dev_type=%s", in p2p_group_info_text() 852 ret = os_snprintf(pos, end - pos, " dev_name='%s'\n", name); in p2p_group_info_text() 883 ret = os_snprintf(pos, end - pos, in p2p_attr_text() 894 ret = os_snprintf(pos, end - pos, in p2p_attr_text() 904 ret = os_snprintf(pos, end - pos, "p2p_device_name=%s\n", in p2p_attr_text() 911 ret = os_snprintf(pos, end - pos, "p2p_device_addr=" MACSTR in p2p_attr_text() 919 ret = os_snprintf(pos, end - pos, "p2p_config_methods=0x%x\n", in p2p_attr_text()
|
| /freebsd/contrib/wpa/src/eap_peer/ |
| H A D | eap_fast_pac.c | 506 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/contrib/wpa/src/utils/ |
| H A D | os.h | 494 int os_snprintf(char *str, size_t size, const char *format, ...); 568 #ifndef os_snprintf 570 #define os_snprintf _snprintf macro 572 #define os_snprintf snprintf macro
|