Lines Matching refs:ifname
39 char ifname[100];
61 l2->eth = eth_open(l2->ifname);
63 printf("Failed to open interface '%s'.\n", l2->ifname);
70 l2->ifname);
210 char ifname[128];
211 os_snprintf(ifname, sizeof(ifname), "\\Device\\NPF_%s", l2->ifname);
212 pcap_lookupnet(ifname, &pcap_netp, &pcap_maskp, pcap_err);
213 l2->pcap = pcap_open_live(ifname, 2500, 0, 10, pcap_err);
216 fprintf(stderr, "ifname='%s'\n", ifname);
223 pcap_lookupnet(l2->ifname, &pcap_netp, &pcap_maskp, pcap_err);
224 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 10, pcap_err);
227 fprintf(stderr, "ifname='%s'\n", l2->ifname);
266 __func__, l2->ifname, strerror(errno));
285 const char *ifname, const u8 *own_addr, unsigned short protocol,
295 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname));
352 if (os_strcmp(dev->name, l2->ifname) != 0)