Lines Matching defs:device

111 		 * Give the "any" device an artificially high instance
161 * On OS X, we don't do this check if the device
164 * a separate "monitor mode" device for each wireless
167 * Opening that device puts the adapter into monitor
173 * device (so that we don't end up with, for users
185 * device's name.
375 * string based on the device type or something such as that.
679 static char device[IF_NAMESIZE + 1];
687 * There are no devices on the list, or the first device
688 * on the list is a loopback device, which means there
690 * we can't return any device.
692 * XXX - why not return a loopback device? If we can't
695 * so why not just supply it as the default device?
697 (void)strlcpy(errbuf, "no suitable device found",
702 * Return the name of the first device on the list.
704 (void)strlcpy(device, alldevs->name, sizeof(device));
705 ret = device;
713 pcap_lookupnet(device, netp, maskp, errbuf)
714 register const char *device;
723 * The pseudo-device "any" listens on all interfaces and therefore
727 if (!device || strcmp(device, "any") == 0
729 || strstr(device, "dag") != NULL
732 || strstr(device, "septel") != NULL
735 || strstr(device, "bluetooth") != NULL
738 || strstr(device, "usbmon") != NULL
741 || !strncmp(device, "netmap:", 7)
742 || !strncmp(device, "vale", 4)
745 || strstr(device, "snf") != NULL
763 (void)strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name));
767 "%s: no IPv4 address assigned", device);
771 device, pcap_strerror(errno));
783 (void)strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name));
786 "SIOCGIFNETMASK: %s: %s", device, pcap_strerror(errno));
867 * Convert and copy the device names
899 pcap_lookupnet(device, netp, maskp, errbuf)
900 register const char *device;
913 if (!PacketGetNetInfoEx((void *)device, if_addrs, &if_addr_size)) {