Home
last modified time | relevance | path

Searched refs:strlcpy (Results 1 – 25 of 450) sorted by relevance

12345678910>>...18

/f-stack/tools/ifconfig/
H A Diflagg.c45 strlcpy(rp.rp_ifname, name, sizeof(rp.rp_ifname)); in setlaggport()
46 strlcpy(rp.rp_portname, val, sizeof(rp.rp_portname)); in setlaggport()
67 strlcpy(rp.rp_ifname, name, sizeof(rp.rp_ifname)); in unsetlaggport()
68 strlcpy(rp.rp_portname, val, sizeof(rp.rp_portname)); in unsetlaggport()
93 strlcpy(ra.ra_ifname, name, sizeof(ra.ra_ifname)); in setlaggproto()
105 strlcpy(ro.ro_ifname, name, sizeof(ro.ro_ifname)); in setlaggflowidshift()
120 strlcpy(ro.ro_ifname, name, sizeof(ro.ro_ifname)); in setlaggrr_limit()
154 strlcpy(ro.ro_ifname, name, sizeof(ro.ro_ifname)); in setlaggsetopt()
183 strlcpy(rf.rf_ifname, name, sizeof(rf.rf_ifname)); in setlagghash()
231 strlcpy(ra.ra_ifname, name, sizeof(ra.ra_ifname)); in lagg_status()
[all …]
H A Difgroup.c59 strlcpy(ifgr.ifgr_name, name, IFNAMSIZ); in setifgroup()
64 if (strlcpy(ifgr.ifgr_group, group_name, IFNAMSIZ) >= IFNAMSIZ) in setifgroup()
77 strlcpy(ifgr.ifgr_name, name, IFNAMSIZ); in unsetifgroup()
82 if (strlcpy(ifgr.ifgr_group, group_name, IFNAMSIZ) >= IFNAMSIZ) in unsetifgroup()
96 strlcpy(ifgr.ifgr_name, name, IFNAMSIZ); in getifgroups()
149 strlcpy(ifgr.ifgr_name, groupname, sizeof(ifgr.ifgr_name)); in printgroup()
H A Diffib.c54 strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in fib_status()
60 strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in fib_status()
79 strlcpy(ifr.ifr_name, name, sizeof (ifr.ifr_name)); in setiffib()
98 strlcpy(ifr.ifr_name, name, sizeof (ifr.ifr_name)); in settunfib()
H A Daf_nd6.c89 strlcpy(nd.ifname, ifr.ifr_name, sizeof(nd.ifname)); in setnd6flags()
123 strlcpy(ndifreq.ifname, ifr.ifr_name, sizeof(ndifreq.ifname)); in setnd6defif()
154 strlcpy(ndifreq.ifname, ifr.ifr_name, sizeof(ndifreq.ifname)); in isnd6defif()
178 strlcpy(nd.ifname, ifr.ifr_name, sizeof(nd.ifname)); in nd6_status()
H A Difclone.c147 strlcpy(dcp->ifprefix, ifprefix, IFNAMSIZ-1); in clone_setdefcallback_prefix()
178 (void) strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in ifclonecreate()
209 strlcpy(name, ifr.ifr_name, sizeof(name)); in ifclonecreate()
223 (void) strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in DECL_CMD_FUNC()
H A Difconfig.c503 strlcpy(options, "G:adf:klmnuv", sizeof(options)); in main()
621 iflen = strlcpy(name, ifname, sizeof(name)); in main()
638 iflen = strlcpy(name, ifname, sizeof(name)); in main()
678 iflen = strlcpy(name, ifname, sizeof(name)); in main()
806 strlcpy(ifgr.ifgr_name, ifname, IFNAMSIZ); in group_member()
987 strlcpy(ifr.ifr_name, name, sizeof ifr.ifr_name); in ifconfig()
1416 strlcpy(name, newname, sizeof(name));
1583 strlcpy(ifs.ifs_name, name, sizeof ifs.ifs_name);
1683 strlcpy(ifname, name, sizeof(ifname));
1696 strlcpy(ifkind, mme->kldname, sizeof(ifkind));
[all …]
H A Difbridge.c95 strlcpy(ifd.ifd_name, ifr.ifr_name, sizeof(ifd.ifd_name)); in do_cmd()
114 strlcpy(req.ifbr_ifsname, ifs, sizeof(req.ifbr_ifsname)); in do_bridgeflag()
288 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname)); in setbridge_add()
299 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname)); in setbridge_delete()
352 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname)); in setbridge_span()
363 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname)); in unsetbridge_span()
460 strlcpy(req.ifba_ifsname, val, sizeof(req.ifba_ifsname)); in setbridge_static()
618 strlcpy(req.ifbr_ifsname, ifn, sizeof(req.ifbr_ifsname)); in setbridge_ifpriority()
637 strlcpy(req.ifbr_ifsname, ifn, sizeof(req.ifbr_ifsname)); in setbridge_ifpathcost()
656 strlcpy(req.ifbr_ifsname, ifn, sizeof(req.ifbr_ifsname)); in setbridge_ifmaxaddr()
H A Difmac.c62 strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in maclabel_status()
95 strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in setifmaclabel()
/f-stack/dpdk/lib/librte_telemetry/
H A Dtelemetry_data.c36 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()
167 const size_t bytes = strlcpy(e->name, name, RTE_TEL_MAX_STRING_LEN); in rte_tel_data_add_dict_container()
/f-stack/freebsd/netpfil/pf/
H A Dpf_ruleset.c127 strlcpy(key->path, path, sizeof(key->path)); in pf_find_kanchor()
180 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_kruleset()
192 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_kruleset()
212 strlcpy(anchor->name, q, sizeof(anchor->name)); in pf_find_or_create_kruleset()
214 strlcpy(anchor->path, parent->path, in pf_find_or_create_kruleset()
299 strlcpy(path, name + 1, MAXPATHLEN); in pf_kanchor_setup()
306 strlcpy(path, s->anchor->path, MAXPATHLEN); in pf_kanchor_setup()
347 strlcpy(pr->anchor_call, "/", sizeof(pr->anchor_call)); in pf_kanchor_copyout()
360 strlcpy(a, rs->anchor->path, MAXPATHLEN); in pf_kanchor_copyout()
/f-stack/freebsd/ddb/
H A Ddb_textdump.c219 strlcpy(uhp->uh_filename, filename, sizeof(uhp->uh_filename)); in textdump_mkustar()
220 strlcpy(uhp->uh_mode, TAR_MODE, sizeof(uhp->uh_mode)); in textdump_mkustar()
222 strlcpy(uhp->uh_tar_owner, TAR_UID, sizeof(uhp->uh_tar_owner)); in textdump_mkustar()
223 strlcpy(uhp->uh_tar_group, TAR_GID, sizeof(uhp->uh_tar_group)); in textdump_mkustar()
224 strlcpy(uhp->uh_owner, TAR_USER, sizeof(uhp->uh_owner)); in textdump_mkustar()
225 strlcpy(uhp->uh_group, TAR_GROUP, sizeof(uhp->uh_group)); in textdump_mkustar()
229 strlcpy(uhp->uh_ustar, TAR_USTAR, sizeof(uhp->uh_ustar)); in textdump_mkustar()
/f-stack/freebsd/contrib/openzfs/lib/libzfs_core/
H A Dlibzfs_core.c189 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name)); in lzc_ioctl()
301 (void) strlcpy(zc.zc_name, fsname, sizeof (zc.zc_name)); in lzc_promote()
319 (void) strlcpy(zc.zc_name, source, sizeof (zc.zc_name)); in lzc_rename()
365 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_snapshot()
415 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_destroy_snaps()
440 (void) strlcpy(fs, firstsnap, sizeof (fs)); in lzc_snaprange_space()
525 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_hold()
570 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_release()
800 (void) strlcpy(fsname, snapname, sizeof (fsname)); in recv_impl()
914 (void) strlcpy(zc.zc_string, origin, in recv_impl()
[all …]
/f-stack/dpdk/drivers/net/memif/
H A Dmemif_socket.c123 strlcpy((char *)d->string, reason, sizeof(d->string)); in memif_msg_enq_disconnect()
126 strlcpy(pmd->local_disc_string, reason, in memif_msg_enq_disconnect()
151 strlcpy((char *)h->name, rte_version(), sizeof(h->name)); in memif_msg_enq_hello()
225 strlcpy(pmd->remote_name, (char *)i->name, in memif_msg_receive_init()
339 strlcpy(pmd->remote_if_name, (char *)c->if_name, in memif_msg_receive_connect()
357 strlcpy(pmd->remote_if_name, (char *)c->if_name, in memif_msg_receive_connected()
371 strlcpy(pmd->remote_disc_string, (char *)d->string, in memif_msg_receive_disconnect()
410 strlcpy((char *)i->name, rte_version(), sizeof(i->name)); in memif_msg_enq_init()
413 strlcpy((char *)i->secret, pmd->secret, sizeof(i->secret)); in memif_msg_enq_init()
880 strlcpy(sock->filename, key, MEMIF_SOCKET_UN_SIZE); in memif_socket_create()
[all …]
/f-stack/dpdk/app/proc-info/
H A Dmain.c191 strlcpy(host_id, argv[i + 1], sizeof(host_id)); in proc_info_preparse_args()
199 strlcpy(host_id, "unknown", sizeof(host_id)); in proc_info_preparse_args()
392 strlcpy(cnt_type, "if_rx_errors", cnt_type_len); in collectd_resolve_cnt_type()
396 strlcpy(cnt_type, "if_rx_octets", cnt_type_len); in collectd_resolve_cnt_type()
401 strlcpy(cnt_type, "if_rx_errors", cnt_type_len); in collectd_resolve_cnt_type()
406 strlcpy(cnt_type, "derive", cnt_type_len); in collectd_resolve_cnt_type()
419 strlcpy(cnt_type, "derive", cnt_type_len); in collectd_resolve_cnt_type()
423 strlcpy(cnt_type, "operations", cnt_type_len); in collectd_resolve_cnt_type()
425 strlcpy(cnt_type, "errors", cnt_type_len); in collectd_resolve_cnt_type()
431 strlcpy(cnt_type, "errors", cnt_type_len); in collectd_resolve_cnt_type()
[all …]
/f-stack/tools/netstat/
H A Dnhops.c229 strlcpy(map->ptr[idx].ifname, ifname, sizeof(map->ptr[idx].ifname)); in nhop_map_update()
230 strlcpy(map->ptr[idx].gw, gw, sizeof(map->ptr[idx].gw)); in nhop_map_update()
268 strlcpy(iface_name, ifmap[nh->ifindex].ifname, in print_nhop_entry_sysctl()
271 strlcpy(iface_name, "---", sizeof(iface_name)); in print_nhop_entry_sysctl()
284 strlcpy(gw_addr, cp, sizeof(gw_addr)); in print_nhop_entry_sysctl()
310 strlcpy(iface_name, ifmap[nh->aifindex].ifname, in print_nhop_entry_sysctl()
313 strlcpy(iface_name, "---", sizeof(iface_name)); in print_nhop_entry_sysctl()
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dzcp_get.c86 (void) strlcpy(str, "snapshot", ZAP_MAXVALUELEN); in get_objset_type_name()
89 (void) strlcpy(str, "filesystem", ZAP_MAXVALUELEN); in get_objset_type_name()
92 (void) strlcpy(str, "volume", ZAP_MAXVALUELEN); in get_objset_type_name()
325 (void) strlcpy(setpoint, "", ZFS_MAX_DATASET_NAME_LEN); in get_special_prop()
329 (void) strlcpy(setpoint, "", ZFS_MAX_DATASET_NAME_LEN); in get_special_prop()
349 (void) strlcpy(strval, token, ZAP_MAXVALUELEN); in get_special_prop()
353 (void) strlcpy(strval, childval, ZAP_MAXVALUELEN); in get_special_prop()
371 (void) strlcpy(setpoint, dsname, in get_special_prop()
407 strlcpy(setpoint, source, sizeof (setpoint)); in get_special_prop()
701 (void) strlcpy(snap_name, name, ZFS_MAX_DATASET_NAME_LEN); in parse_written_prop()
/f-stack/tools/libnetgraph/
H A Dsock.c105 strlcpy(sg->sg_data, name, NG_NODESIZ); in NgMkSockNode()
116 strlcpy(namebuf, name, sizeof(namebuf)); in NgMkSockNode()
239 strlcpy(hook, from->sg_data, NG_HOOKSIZ); in NgRecvData()
290 strlcpy(sg->sg_data, hook, NG_HOOKSIZ); in NgSendData()
/f-stack/dpdk/lib/librte_eal/include/
H A Drte_string_fns.h81 #define strlcpy(dst, src, size) rte_strlcpy(dst, src, size) macro
90 #define strlcpy(dst, src, size) rte_strlcpy(dst, src, size) macro
/f-stack/dpdk/lib/librte_eal/common/
H A Dmalloc_mp.c164 strlcpy(reply.name, msg->name, sizeof(reply.name)); in handle_sync()
282 strlcpy(resp_msg.name, MP_ACTION_RESPONSE, in handle_request()
306 strlcpy(sr_msg.name, MP_ACTION_SYNC, sizeof(sr_msg.name)); in handle_request()
400 strlcpy(msg.name, MP_ACTION_RESPONSE, sizeof(msg.name)); in handle_sync_response()
424 strlcpy(msg.name, MP_ACTION_RESPONSE, sizeof(msg.name)); in handle_sync_response()
454 strlcpy(rb_msg.name, MP_ACTION_ROLLBACK, sizeof(rb_msg.name)); in handle_sync_response()
524 strlcpy(msg.name, MP_ACTION_RESPONSE, sizeof(msg.name)); in handle_rollback_response()
586 strlcpy(msg.name, MP_ACTION_SYNC, sizeof(msg.name)); in request_sync()
676 strlcpy(msg.name, MP_ACTION_REQUEST, sizeof(msg.name)); in request_to_primary()
/f-stack/dpdk/examples/ip_pipeline/
H A Dtap.c78 strlcpy(ifr.ifr_name, name, IFNAMSIZ); in tap_create()
93 strlcpy(tap->name, name, sizeof(tap->name)); in tap_create()
/f-stack/freebsd/contrib/openzfs/cmd/mount_zfs/
H A Dmount_zfs.c54 strlcpy(*dataset, target, PATH_MAX); in parse_dataset()
64 strlcpy(*dataset, nm, PATH_MAX); in parse_dataset()
169 (void) strlcpy(mntopts, optarg, sizeof (mntopts)); in main()
266 (void) strlcpy(prop, ZFS_MOUNTPOINT_LEGACY, ZFS_MAXPROPLEN); in main()
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_pool.c290 (void) strlcpy(buf, zpool_get_name(zhp), len); in zpool_get_prop()
307 (void) strlcpy(buf, in zpool_get_prop()
314 (void) strlcpy(buf, "-", len); in zpool_get_prop()
353 (void) strlcpy(buf, "-", len); in zpool_get_prop()
374 (void) strlcpy(buf, "-", len); in zpool_get_prop()
414 (void) strlcpy(buf, strval, len); in zpool_get_prop()
908 (void) strlcpy(buf, "-", len); in zpool_prop_get_feature()
919 (void) strlcpy(buf, ZFS_FEATURE_DISABLED, len); in zpool_prop_get_feature()
924 (void) strlcpy(buf, ZFS_FEATURE_ACTIVE, len); in zpool_prop_get_feature()
934 (void) strlcpy(buf, "-", len); in zpool_prop_get_feature()
[all …]
/f-stack/tools/libutil/
H A Dpidfile.c122 if (strlcpy(path, pathp, sizeof(path)) >= sizeof(path)) { in pidfile_open()
127 dirlen = strlcpy(pfh->pf_dir, dirname(path), in pidfile_open()
129 (void)strlcpy(path, pathp, sizeof(path)); in pidfile_open()
130 filenamelen = strlcpy(pfh->pf_filename, basename(path), in pidfile_open()
/f-stack/freebsd/contrib/openzfs/lib/libshare/os/linux/
H A Dsmb.c169 (void) strlcpy(shares->name, name, in smb_retrieve_shares()
172 (void) strlcpy(shares->path, path, in smb_retrieve_shares()
175 (void) strlcpy(shares->comment, comment, in smb_retrieve_shares()
227 strlcpy(name, sharename, sizeof (name)); in smb_enable_share_one()
/f-stack/dpdk/lib/librte_cfgfile/
H A Drte_cfgfile.c124 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()

12345678910>>...18