Lines Matching refs:device
65 "\t%s [-b bufsize] [-d] [-f filter] [-p port] [-v] <device> <host>\n"
66 "\t%s [-b bufsize] [-d] [-f filter] [-l] [-p port] [-v] <device>\n",
215 Tap(char *device);
227 PCap(char *device, char *filter = NULL);
233 PCap::PCap(char *device, char *filter)
237 pcap = pcap_open_live(device, 1500, 1, -1, errbuf);
244 if (pcap_lookupnet(device, &localnet, &netmask, errbuf) == -1) {
282 Tap::Tap(char *device)
284 fd = open(device, O_RDWR, 0);
286 panic("could not open %s: %s\n", device, strerror(errno));
322 char *device = NULL;
387 device = *argv++;
401 panic("-f parameter not valid with a tap device!");
402 tap = new Tap(device);
404 tap = new PCap(device, filter);