• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcpdump-61/tcpdump/

Lines Matching defs:device

140 static void show_dlts_and_exit(const char *device, pcap_t *pd) __attribute__((noreturn));
398 /* packet capture handle to read packets from device or file */
446 show_tstamp_types_and_exit(const char *device, pcap_t *pd)
459 device);
463 device);
479 show_dlts_and_exit(const char *device, pcap_t *pd)
501 device,
505 device);
755 register char *cp, *infile, *device, *RFileName, *VFileName, *WFileName;
797 device = NULL;
953 device = devpointer->name;
957 device = optarg;
1406 * The special device name "all" means to tap on all interfaces
1408 if (device == NULL)
1409 device = PKTAP_IFNAME;
1410 if (strncmp(device, PKTAP_IFNAME, strlen(PKTAP_IFNAME)) == 0 ||
1411 strncmp(device, IPTAP_IFNAME, strlen(IPTAP_IFNAME)) == 0 ||
1412 strcmp(device, "any") == 0 ||
1413 strcmp(device, "all") == 0) {
1433 if (device == NULL) {
1434 device = pcap_lookupdev(ebuf);
1435 if (device == NULL)
1444 if(strlen(device) == 1) //we assume that an ASCII string is always longer than 1 char
1446 fprintf(stderr, "%s: listening on %ws\n", program_name, device);
1450 fprintf(stderr, "%s: listening on %s\n", program_name, device);
1456 pd = pcap_create(device, ebuf);
1461 show_tstamp_types_and_exit(device, pd);
1479 device, pcap_statustostr(status));
1483 device, pcap_statustostr(status));
1488 device, pcap_statustostr(status));
1493 device, pcap_statustostr(status));
1498 device, pcap_statustostr(status));
1505 device, pcap_statustostr(status));
1519 error("%s: %s\n(%s)", device,
1522 error("%s: %s", device,
1534 warning("%s: %s\n(%s)", device,
1537 warning("%s: %s", device,
1542 pd = pcap_open_live(device, gndo->ndo_snaplen, !pflag, 1000, ebuf);
1563 show_dlts_and_exit(device, pd);
1575 error("%s is not one of the DLTs supported by this device\n",
1599 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
1775 * than capturing from a device.
1814 device, dlt, gndo->ndo_snaplen);
1817 device, dlt_name,