Lines Matching defs:device
120 static char device[IF_NAMESIZE + 1];
146 (void)strlcpy(errbuf, "no suitable device found",
152 (void)strlcpy(device, mp->ifa_name, sizeof(device));
154 return (device);
162 static char device[sizeof(ifrp->ifr_name) + 1];
234 (void)strlcpy(errbuf, "no suitable device found",
239 (void)strlcpy(device, mp->ifr_name, sizeof(device));
240 return (device);
245 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp,
263 (void)strlcpy(ifr.ifr_name, device, sizeof(ifr.ifr_name));
267 "%s: no IPv4 address assigned", device);
271 device, pcap_strerror(errno));
280 "SIOCGIFNETMASK: %s: %s", device, pcap_strerror(errno));