Lines Matching refs:device
60 register char *cp, *cmdbuf, *device;
72 device = NULL;
83 device = optarg;
119 if (device == NULL) {
120 device = pcap_lookupdev(ebuf);
121 if (device == NULL)
125 pd = pcap_create(device, ebuf);
131 device, pcap_statustostr(status));
136 device, pcap_statustostr(status));
141 device, pcap_statustostr(status));
147 error("%s: %s\n(%s)", device,
154 warning("%s: %s\n(%s)", device,
157 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
171 printf("Listening on %s\n", device);