Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 6 of 6) sorted by relevance

/mOS-networking-stack/core/src/
H A Dnetmap_module.c42 char ifname[MAX_IFNAMELEN]; in netmap_init_handle() local
61 if (if_indextoname(devices_attached[j], ifname) == NULL) { in netmap_init_handle()
64 ifname, devices_attached[j], strerror(errno)); in netmap_init_handle()
68 strcpy(ifname, ent[j]->dev_name); in netmap_init_handle()
71 sprintf(nifname, "netmap:%s", ifname); in netmap_init_handle()
73 sprintf(nifname, "netmap:%s-%d", ifname, ctxt->cpu); in netmap_init_handle()
293 set_promisc(char *ifname) in set_promisc() argument
303 strcpy(eth.ifr_name, ifname); in set_promisc()
307 ifname); in set_promisc()
314 "promiscuous mode\n", ifname); in set_promisc()
[all …]
/mOS-networking-stack/core/src/include/
H A Dnetmap_user.h329 static struct nm_desc *nm_open(const char *ifname, const struct nmreq *req,
608 nm_open(const char *ifname, const struct nmreq *req, in nm_open() argument
621 if (strncmp(ifname, "netmap:", 7) && strncmp(ifname, "vale", 4)) { in nm_open()
625 if (ifname[0] == 'n') in nm_open()
626 ifname += 7; in nm_open()
628 for (port = ifname; *port && !index("-*^{}/", *port); port++) in nm_open()
630 namelen = port - ifname; in nm_open()
751 memcpy(d->req.nr_name, ifname, namelen); in nm_open()
826 D("%s tx %d .. %d %d rx %d .. %d %d", ifname, in nm_open()
847 D("%s %s", errmsg, ifname); in nm_open()
/mOS-networking-stack/dpdk-iface-kmod/
H A Ddpdk_iface_common.h40 char ifname[IFNAMSIZ]; member
H A Ddpdk_iface.c210 if (strcmp(netdev->name, pd.ifname) == 0) { in igb_net_ioctl()
213 THIS_MODULE->name, pd.ifname); in igb_net_ioctl()
H A Ddpdk_iface_main.c318 di[ret].pd.ifname); in main()
/mOS-networking-stack/core/src/bpf/
H A Dsf_gencode.c7441 struct block *gen_pf_ifname(const char *ifname) in gen_pf_ifname() argument
7451 len = sizeof(((struct pfloghdr *) 0)->ifname); in gen_pf_ifname()
7452 off = offsetof(struct pfloghdr, ifname); in gen_pf_ifname()
7453 if (strlen(ifname) >= len) in gen_pf_ifname()
7458 b0 = gen_bcmp(OR_LINK, off, strlen(ifname), (const u_char *) ifname); in gen_pf_ifname()
7544 struct block *gen_pf_ifname(const char *ifname) in gen_pf_ifname() argument