if (optarg[0] == '0' && optarg[1] == 0) error("Invalid adapter index");device = optarg;break; … //-x为以十六进制打印报文,如使用-xx,xflag数值为2,后面根据xflag>1来打印出链路层头部case 'x': ++xflag; ++suppress_default_print; break; case
*/ if (devnum <= 0) { /* * No, it's not an ordinal. */ error("Invalid adapter index"); } return (devnum); } else { /* * It's not all-numeric; return -1, so our caller * knows that. */ return (-1); } } static char * find_interface_by_number(const char ...
error("Invalid adapter index"); device = strdup(dev->name); pcap_freealldevs(devlist); return (device); } #endif static pcap_t * open_interface(const char *device, netdissect_options *ndo, char *ebuf) { pcap_t *pc; #ifdef HAVE_PCAP_CREATE int status; char *cp...
Looking into the bytes, I see that the patch did change the layout, so there is no longer any tag insertion, but still the packets on the parent interface (even-numbered packets above) are invalid, because the "protocol" field is set to 0x8100, while the rest of the header and frame ...
#tcpdump -lni 900tcpdump: Invalid adapter index Any suggestions? Thank you in advance. Fabio. 0 Kudos Reply Matti_Kurkela Honored Contributor 10-28-2012 06:36 AM Re: tcpdump on APA lan On my system, "man tcpdump" includes this note for the -D option: The -D flag will...
error("Invalid adapter index"); } return (devnum); } else { /* * It's not all-numeric; return -1, so our caller * knows that. */ return (-1); } } static char * find_interface_by_number(const char *url #ifndef HAVE_PCAP_FINDALLDEVS_EX _U_ #endif ...