Home
last modified time | relevance | path

Searched refs:nr_name (Results 1 – 20 of 20) sorted by relevance

/freebsd/sys/dev/netmap/
H A Dnetmap_legacy.c97 if (strlen(hdr->nr_name) + strlen(suffix) in nmreq_register_from_legacy()
98 >= sizeof(hdr->nr_name)) { in nmreq_register_from_legacy()
102 strlcat(hdr->nr_name, suffix, sizeof(hdr->nr_name)); in nmreq_register_from_legacy()
132 nmr->nr_name[sizeof(nmr->nr_name) - 1] = '\0'; in nmreq_from_legacy()
137 strlcpy(hdr->nr_name, nmr->nr_name, sizeof(nmr->nr_name)); in nmreq_from_legacy()
327 strlcpy(nmr->nr_name, hdr->nr_name, sizeof(nmr->nr_name)); in nmreq_to_legacy()
416 if_t ifp = ifunit_ref(nmr->nr_name); in netmap_ioctl_legacy()
H A Dnetmap_bdg.c389 char *nr_name = hdr->nr_name; in netmap_get_bdg_na() local
403 if (strncmp(nr_name, ops->name, strlen(ops->name) - 1)) { in netmap_get_bdg_na()
407 b = nm_find_bridge(nr_name, create, ops); in netmap_get_bdg_na()
409 nm_prdis("no bridges available for '%s'", nr_name); in netmap_get_bdg_na()
412 if (strlen(nr_name) < b->bdg_namelen) /* impossible */ in netmap_get_bdg_na()
427 if (!strcmp(vpna->up.name, nr_name)) { in netmap_get_bdg_na()
429 nm_prdis("found existing if %s refs %d", nr_name) in netmap_get_bdg_na()
453 ifname = nr_name + b->bdg_namelen + 1; in netmap_get_bdg_na()
496 error = hw->nm_bdg_attach(nr_name, hw, b); in netmap_get_bdg_na()
498 error = b->bdg_ops.bwrap_attach(nr_name, hw); in netmap_get_bdg_na()
[all …]
H A Dnetmap_vale.c321 int namelen = strlen(hdr->nr_name); in netmap_vale_list()
331 if (strncmp(hdr->nr_name, NM_BDG_NAME, in netmap_vale_list()
336 b = nm_find_bridge(hdr->nr_name, 0 /* don't create */, NULL); in netmap_vale_list()
354 if (!strcmp(vpna->up.name, hdr->nr_name)) { in netmap_vale_list()
379 strlcpy(hdr->nr_name, vpna->up.name, in netmap_vale_list()
380 sizeof(hdr->nr_name)); in netmap_vale_list()
1161 strlcpy(na->name, hdr->nr_name, sizeof(na->name)); in netmap_vale_vp_create()
1274 netmap_vale_bwrap_attach(const char *nr_name, struct netmap_adapter *hwna) in netmap_vale_bwrap_attach() argument
1286 strlcpy(na->name, nr_name, sizeof(na->name)); in netmap_vale_bwrap_attach()
1430 if (!strncmp(hdr->nr_name, NM_BDG_NAME, strlen(NM_BDG_NAME))) in netmap_vi_create()
[all …]
H A Dnetmap_null.c139 snprintf(nna->up.name, sizeof(nna->up.name), "null:%s", hdr->nr_name); in netmap_get_null_na()
H A Dnetmap_pipe.c666 cbra = strrchr(hdr->nr_name, '{'); in netmap_get_pipe_na()
670 cbra = strrchr(hdr->nr_name, '}'); in netmap_get_pipe_na()
680 if (*pipe_id == '\0' || cbra == hdr->nr_name) { in netmap_get_pipe_na()
H A Dnetmap_bdg.h62 typedef int (*bdg_bwrap_attach_fn_t)(const char *nr_name, struct netmap_adapter *hwna);
H A Dnetmap.c1630 *ifp = ifunit_ref(hdr->nr_name); in netmap_get_na()
2776 hdr->nr_name[sizeof(hdr->nr_name) - 1] = '\0'; in netmap_ioctl()
2815 hdr->nr_name, req->nr_mem_id); in netmap_ioctl()
2921 if (hdr->nr_name[0] != '\0') { in netmap_ioctl()
2952 hdr->nr_name, in netmap_ioctl()
3070 error = nm_vi_destroy(hdr->nr_name); in netmap_ioctl()
H A Dnetmap_kern.h1572 ((strchr(hdr->nr_name, '{') != NULL || strchr(hdr->nr_name, '}') != NULL) ? EOPNOTSUPP : 0)
/freebsd/tools/tools/netmap/
H A Dbridge.c300 pa->hdr.nr_name, pa->first_rx_ring, pa->reg.nr_rx_rings, in main()
301 pb->hdr.nr_name, pb->first_rx_ring, pb->reg.nr_rx_rings); in main()
309 pa->hdr.nr_name, pa_sw_rings ? "host" : "nic", in main()
310 pb->hdr.nr_name, pb_sw_rings ? "host" : "nic"); in main()
313 pb->hdr.nr_name, pb_sw_rings ? "host" : "nic", in main()
314 pa->hdr.nr_name, pa_sw_rings ? "host" : "nic"); in main()
H A Dlb.c723 strncpy(glob_arg.base_name, rxport->nmd->hdr.nr_name, MAX_IFNAMELEN); in main()
H A Dpkt-gen.c526 const char *ifname = g->nmd->hdr.nr_name; in get_if_mtu()
/freebsd/usr.sbin/valectl/
H A Dvalectl.c186 hdr->nr_name[0] = '\0'; in list_all()
195 printf("%s bridge_idx %"PRIu16" port_idx %"PRIu32"\n", hdr->nr_name, in list_all()
226 strncpy(hdr.nr_name, a->name, NETMAP_REQ_IFNAMSIZ - 1); in bdg_ctl()
227 hdr.nr_name[NETMAP_REQ_IFNAMSIZ - 1] = '\0'; in bdg_ctl()
/freebsd/lib/libnetmap/
H A Dnmport.c133 nmctx_ferror(ctx, "%s: cannot set extmem of an already registered port", d->hdr.nr_name); in nmport_extmem()
139 nmctx_ferror(ctx, "%s: extmem already in use", d->hdr.nr_name); in nmport_extmem()
153 nmctx_ferror(ctx, "%s: cannot allocate extmem option", d->hdr.nr_name); in nmport_extmem()
282 nmctx_ferror(ctx, "%s: cannot allocate offset option", d->hdr.nr_name); in nmport_offset()
605 nmctx_ferror(ctx, "%s: already registered", d->hdr.nr_name); in nmport_register()
622 d->hdr.nr_name, in nmport_register()
630 nmctx_ferror(ctx, "%s: %s", d->hdr.nr_name, strerror(errno)); in nmport_register()
665 nmctx_ferror(ctx, "%s: already mapped", d->hdr.nr_name); in nmport_mmap()
H A Dnmreq.c172 if (namelen >= sizeof(h->nr_name)) { in nmreq_header_decode()
182 memcpy(h->nr_name, ifname, namelen); in nmreq_header_decode()
183 h->nr_name[namelen] = '\0'; in nmreq_header_decode()
184 ED("name %s", h->nr_name); in nmreq_header_decode()
670 printf(" nr_name: %s\n", d->hdr.nr_name);
/freebsd/sys/net/
H A Dnetmap_user.h674 if (namelen >= sizeof(d->req.nr_name)) { in nm_parse()
678 memcpy(d->req.nr_name, ifname, namelen); in nm_parse()
679 d->req.nr_name[namelen] = '\0'; in nm_parse()
891 parent->req.nr_name, parent->req.nr_ringid, in nm_open()
893 memcpy(d->req.nr_name, parent->req.nr_name, in nm_open()
894 sizeof(d->req.nr_name)); in nm_open()
H A Dnetmap_legacy.h151 char nr_name[IFNAMSIZ]; member
H A Dnetmap.h518 char nr_name[NETMAP_REQ_IFNAMSIZ]; /* port name */ member
/freebsd/usr.sbin/bhyve/
H A Dnet_backend_netmap.c64 strlcpy(req->nr_name, ifname, sizeof(req->nr_name)); in nmreq_init()
/freebsd/tests/sys/netmap/
H A Dctrl-api-test.c187 strncpy(hdr->nr_name, ifname, sizeof(hdr->nr_name)); in nmreq_hdr_init()
325 memcpy(req.nr_name, ctx->ifname_ext, sizeof(req.nr_name)); in niocregif()
326 req.nr_name[sizeof(req.nr_name) - 1] = '\0'; in niocregif()
1872 if (strcmp(t->exp_port, hdr->nr_name) != 0) { in nmreq_hdr_parsing()
1873 printf("!!! got '%s', want '%s'\n", hdr->nr_name, t->exp_port); in nmreq_hdr_parsing()
/freebsd/contrib/libpcap/
H A Dpcap-netmap.c142 strncpy(ifr.ifr_name, d->req.nr_name, sizeof(ifr.ifr_name)); in pcap_netmap_ioctl()