| /dpdk/lib/telemetry/ |
| H A D | telemetry_data.c | 36 d->data_len = strlcpy(d->data.str, str, sizeof(d->data.str)); in rte_tel_data_string() 51 const size_t bytes = strlcpy(d->data.array[d->data_len++].sval, in rte_tel_data_add_array_string() 109 vbytes = strlcpy(e->value.sval, val, RTE_TEL_MAX_STRING_LEN); in rte_tel_data_add_dict_string() 110 nbytes = strlcpy(e->name, name, RTE_TEL_MAX_STRING_LEN); in rte_tel_data_add_dict_string() 129 const size_t bytes = strlcpy(e->name, name, RTE_TEL_MAX_STRING_LEN); in rte_tel_data_add_dict_int() 146 const size_t bytes = strlcpy(e->name, name, RTE_TEL_MAX_STRING_LEN); in rte_tel_data_add_dict_u64() 168 const size_t bytes = strlcpy(e->name, name, RTE_TEL_MAX_STRING_LEN); in rte_tel_data_add_dict_container()
|
| H A D | telemetry_legacy.c | 65 strlcpy(callbacks[num_legacy_callbacks].action, STATS_ACTION, MAX_LEN); in rte_telemetry_legacy_register() 95 strlcpy(data, strchr(params, ':'), sizeof(data)); in register_client() 109 strlcpy(addrs.sun_path, data, sizeof(addrs.sun_path)); in register_client()
|
| /dpdk/drivers/net/memif/ |
| H A D | memif_socket.c | 127 strlcpy((char *)d->string, reason, sizeof(d->string)); in memif_msg_enq_disconnect() 130 strlcpy(pmd->local_disc_string, reason, in memif_msg_enq_disconnect() 155 strlcpy((char *)h->name, rte_version(), sizeof(h->name)); in memif_msg_enq_hello() 229 strlcpy(pmd->remote_name, (char *)i->name, in memif_msg_receive_init() 345 strlcpy(pmd->remote_if_name, (char *)c->if_name, in memif_msg_receive_connect() 363 strlcpy(pmd->remote_if_name, (char *)c->if_name, in memif_msg_receive_connected() 377 strlcpy(pmd->remote_disc_string, (char *)d->string, in memif_msg_receive_disconnect() 415 strlcpy((char *)i->name, rte_version(), sizeof(i->name)); in memif_msg_enq_init() 418 strlcpy((char *)i->secret, pmd->secret, sizeof(i->secret)); in memif_msg_enq_init() 908 strlcpy(sock->filename, key, MEMIF_SOCKET_UN_SIZE); in memif_socket_create() [all …]
|
| /dpdk/app/proc-info/ |
| H A D | main.c | 201 strlcpy(host_id, argv[i + 1], sizeof(host_id)); in proc_info_preparse_args() 209 strlcpy(host_id, "unknown", sizeof(host_id)); in proc_info_preparse_args() 410 strlcpy(cnt_type, "if_rx_errors", cnt_type_len); in collectd_resolve_cnt_type() 414 strlcpy(cnt_type, "if_rx_octets", cnt_type_len); in collectd_resolve_cnt_type() 419 strlcpy(cnt_type, "if_rx_errors", cnt_type_len); in collectd_resolve_cnt_type() 421 strlcpy(cnt_type, "if_rx_errors", cnt_type_len); in collectd_resolve_cnt_type() 424 strlcpy(cnt_type, "derive", cnt_type_len); in collectd_resolve_cnt_type() 437 strlcpy(cnt_type, "derive", cnt_type_len); in collectd_resolve_cnt_type() 443 strlcpy(cnt_type, "errors", cnt_type_len); in collectd_resolve_cnt_type() 447 strlcpy(cnt_type, "errors", cnt_type_len); in collectd_resolve_cnt_type() [all …]
|
| /dpdk/drivers/common/mlx5/ |
| H A D | mlx5_common_mp.h | 80 strlcpy(mp_id->name, MLX5_MP_NAME, RTE_MP_MAX_NAME_LEN); in mlx5_mp_id_init() 103 strlcpy(msg->name, mp_id->name, sizeof(msg->name)); in mp_init_msg() 123 strlcpy(msg->name, MLX5_MP_NAME, sizeof(msg->name)); in mp_init_port_agnostic_msg()
|
| /dpdk/lib/cfgfile/ |
| H A D | rte_cfgfile.c | 124 strlcpy(curr_entry->name, entryname, sizeof(curr_entry->name)); in _add_entry() 125 strlcpy(curr_entry->value, entryvalue, sizeof(curr_entry->value)); in _add_entry() 359 strlcpy(cfg->sections[cfg->num_sections].name, sectionname, in rte_cfgfile_add_section() 410 strlcpy(curr_section->entries[i].value, entryvalue, in rte_cfgfile_set_entry() 486 strlcpy(sections[i], cfg->sections[i].name, CFG_NAME_LEN); in rte_cfgfile_sections() 516 strlcpy(sectionname, sect->name, CFG_NAME_LEN); in rte_cfgfile_section_num_entries_by_index() 543 strlcpy(sectionname, sect->name, CFG_NAME_LEN); in rte_cfgfile_section_entries_by_index()
|
| /dpdk/lib/eal/common/ |
| H A D | malloc_mp.c | 164 strlcpy(reply.name, msg->name, sizeof(reply.name)); in handle_sync() 338 strlcpy(resp_msg.name, MP_ACTION_RESPONSE, in handle_request() 362 strlcpy(sr_msg.name, MP_ACTION_SYNC, sizeof(sr_msg.name)); in handle_request() 456 strlcpy(msg.name, MP_ACTION_RESPONSE, sizeof(msg.name)); in handle_sync_response() 480 strlcpy(msg.name, MP_ACTION_RESPONSE, sizeof(msg.name)); in handle_sync_response() 510 strlcpy(rb_msg.name, MP_ACTION_ROLLBACK, sizeof(rb_msg.name)); in handle_sync_response() 580 strlcpy(msg.name, MP_ACTION_RESPONSE, sizeof(msg.name)); in handle_rollback_response() 642 strlcpy(msg.name, MP_ACTION_SYNC, sizeof(msg.name)); in request_sync() 732 strlcpy(msg.name, MP_ACTION_REQUEST, sizeof(msg.name)); in request_to_primary()
|
| H A D | hotplug_mp.c | 72 strlcpy(mp_resp.name, EAL_DEV_MP_ACTION_REQUEST, sizeof(mp_resp.name)); in send_response_to_secondary() 292 strlcpy(mp_resp.name, EAL_DEV_MP_ACTION_REQUEST, sizeof(mp_resp.name)); in __handle_primary_request() 315 strlcpy(mp_resp.name, EAL_DEV_MP_ACTION_REQUEST, sizeof(mp_resp.name)); in handle_primary_request() 375 strlcpy(mp_req.name, EAL_DEV_MP_ACTION_REQUEST, sizeof(mp_req.name)); in eal_dev_hotplug_request_to_primary() 403 strlcpy(mp_req.name, EAL_DEV_MP_ACTION_REQUEST, sizeof(mp_req.name)); in eal_dev_hotplug_request_to_secondary()
|
| H A D | eal_common_proc.c | 142 strlcpy(buf, prefix, len); in create_socket_path() 221 strlcpy(entry->action_name, name, sizeof(entry->action_name)); in rte_mp_action_register() 377 strlcpy(dummy.name, msg->name, sizeof(dummy.name)); in process_msg() 611 strlcpy(mp_filter, basename(path), sizeof(mp_filter)); in rte_mp_channel_init() 615 strlcpy(mp_dir_path, dirname(path), sizeof(mp_dir_path)); in rte_mp_channel_init() 692 strlcpy(dst.sun_path, dst_path, sizeof(dst.sun_path)); in send_msg() 865 strlcpy(pending_req->dst, dst, sizeof(pending_req->dst)); in mp_request_async() 920 strlcpy(pending_req.dst, dst, sizeof(pending_req.dst)); in mp_request_sync()
|
| /dpdk/lib/eal/include/ |
| H A D | rte_string_fns.h | 81 #define strlcpy(dst, src, size) rte_strlcpy(dst, src, size) macro 90 #define strlcpy(dst, src, size) rte_strlcpy(dst, src, size) macro
|
| /dpdk/examples/pipeline/ |
| H A D | obj.c | 99 strlcpy(mempool->name, name, sizeof(mempool->name)); in mempool_create() 323 strlcpy(link->name, name, sizeof(link->name)); in link_create() 411 strlcpy(ring->name, name, sizeof(ring->name)); in ring_create() 490 strlcpy(ifr.ifr_name, name, IFNAMSIZ); in tap_create() 505 strlcpy(tap->name, name, sizeof(tap->name)); in tap_create() 546 strlcpy(pipeline->name, name, sizeof(pipeline->name)); in pipeline_create()
|
| /dpdk/examples/ip_pipeline/ |
| H A D | tap.c | 78 strlcpy(ifr.ifr_name, name, IFNAMSIZ); in tap_create() 93 strlcpy(tap->name, name, sizeof(tap->name)); in tap_create()
|
| H A D | kni.c | 132 strlcpy(kni_conf.name, name, RTE_KNI_NAMESIZE); in kni_create() 160 strlcpy(kni->name, name, sizeof(kni->name)); in kni_create()
|
| /dpdk/drivers/net/softnic/ |
| H A D | rte_eth_softnic_tap.c | 94 strlcpy(ifr.ifr_name, name, IFNAMSIZ); in softnic_tap_create() 109 strlcpy(tap->name, name, sizeof(tap->name)); in softnic_tap_create()
|
| /dpdk/examples/vm_power_manager/guest_cli/ |
| H A D | vm_power_cli_guest.c | 106 strlcpy(pkt->vm_name, "ubuntu2", sizeof(pkt->vm_name)); in set_policy_defaults() 203 strlcpy(pkt.vm_name, policy.vm_name, sizeof(pkt.vm_name)); in cmd_query_freq_list_parsed() 214 strlcpy(pkt.vm_name, policy.vm_name, sizeof(pkt.vm_name)); in cmd_query_freq_list_parsed() 313 strlcpy(pkt.vm_name, policy.vm_name, sizeof(pkt.vm_name)); in cmd_query_caps_list_parsed() 324 strlcpy(pkt.vm_name, policy.vm_name, sizeof(pkt.vm_name)); in cmd_query_caps_list_parsed()
|
| /dpdk/drivers/crypto/scheduler/ |
| H A D | scheduler_pmd.c | 148 strlcpy(param_name, init_params->mode_param_str, in cryptodev_scheduler_create() 151 strlcpy(param_val, s, in cryptodev_scheduler_create() 374 strlcpy(params->name, value, RTE_CRYPTODEV_NAME_MAX_LEN); in parse_name_arg() 427 strlcpy(param->mode_param_str, value, in parse_mode_param_arg()
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | parser.c | 54 strlcpy(ip_str, token, in parse_ipv4_addr() 63 strlcpy(ip_str, token, sizeof(ip_str)); in parse_ipv4_addr() 84 strlcpy(ip_str, token, in parse_ipv6_addr() 93 strlcpy(ip_str, token, sizeof(ip_str)); in parse_ipv6_addr()
|
| /dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_device.c | 77 strlcpy(ops->name, h->name, sizeof(ops->name)); in bcmfs_hw_queue_pair_register_ops() 192 strlcpy(addr[count], entry->d_name, in fsdev_find_all_devs() 222 strlcpy(output, entry->d_name, BCMFS_MAX_PATH_LEN); in fsdev_find_sub_dir()
|
| /dpdk/lib/cmdline/ |
| H A D | cmdline_parse_string.c | 124 strlcpy(res, buf, STR_MULTI_TOKEN_SIZE); in cmdline_parse_string() 127 strlcpy(res, buf, STR_TOKEN_SIZE); in cmdline_parse_string()
|
| /dpdk/drivers/net/tap/ |
| H A D | rte_eth_tap.c | 163 strlcpy(ifr.ifr_name, pmd->name, IFNAMSIZ); in tun_alloc() 202 strlcpy(pmd->name, ifr.ifr_name, RTE_ETH_NAME_MAX_LEN); in tun_alloc() 829 strlcpy(ifr->ifr_name, pmd->remote_iface, IFNAMSIZ); in tap_ioctl() 831 strlcpy(ifr->ifr_name, pmd->name, IFNAMSIZ); in tap_ioctl() 1992 strlcpy(pmd->name, tap_name, sizeof(pmd->name)); in eth_dev_tap_create() 2223 strlcpy(name, value, RTE_ETH_NAME_MAX_LEN); in set_interface_name() 2244 strlcpy(name, value, RTE_ETH_NAME_MAX_LEN); in set_remote_iface() 2259 strlcpy(mac_temp, value, sizeof(mac_temp)); in parse_user_mac() 2390 strlcpy(request.name, TAP_MP_KEY, sizeof(request.name)); in tap_mp_attach_queues() 2391 strlcpy(request_param->port_name, port_name, in tap_mp_attach_queues() [all …]
|
| /dpdk/lib/eal/linux/ |
| H A D | eal_dev.c | 174 strlcpy(action, buf, sizeof(action)); in dev_uev_parse() 178 strlcpy(subsystem, buf, sizeof(subsystem)); in dev_uev_parse() 182 strlcpy(pci_slot_name, buf, sizeof(subsystem)); in dev_uev_parse()
|
| /dpdk/devtools/cocci/ |
| H A D | strlcpy.cocci | 6 + strlcpy(dst, src, size)
|
| H A D | strlcpy-with-header.cocci | 11 + strlcpy(dst, src, size)
|
| /dpdk/app/test/ |
| H A D | test_table_acl.c | 469 strlcpy(line, lines[n], sizeof(line)); in setup_acl_pipeline() 511 strlcpy(line, lines[n], sizeof(line)); in setup_acl_pipeline() 547 strlcpy(line, lines[n - 1], sizeof(line)); in setup_acl_pipeline() 573 strlcpy(line, lines[n - 1], sizeof(line)); in setup_acl_pipeline() 600 strlcpy(line, lines[n - 1], sizeof(line)); in setup_acl_pipeline()
|
| /dpdk/examples/fips_validation/ |
| H A D | fips_validation.c | 75 strlcpy(info.vec[i], info.one_line_text, size + 1); in fips_test_fetch_one_block() 220 strlcpy(tmp_output, info.vec[i], tmp - info.vec[i] + 1); in fips_test_parse_header() 232 strlcpy(tmp_output, info.vec[i], tmp - info.vec[i] + 1); in fips_test_parse_header() 244 strlcpy(tmp_output, info.vec[i], tmp - info.vec[i] + 1); in fips_test_parse_header() 556 strlcpy(tmp_data, data, data_len); in parser_read_uint32_val()
|