[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Why pcap_findalldevs_ex()?
From: |
Gisle Vanem |
Subject: |
[lwip-devel] Why pcap_findalldevs_ex()? |
Date: |
Sun, 07 Aug 2011 02:08:03 +0200 |
In contrib/ports/win32/pcap_helper.c there is a call to pcap_findalldevs_ex().
What's the advantage of this over the more normal pcap_findalldevs()?
char source[] = "rpcap://";
int index = 0;
...
if (pcap_findalldevs_ex(source, NULL, &alldevs, errbuf) == -1) {
printf("Error in pcap_findalldevs: %s\n", errbuf);
return -1;
}
Can we please use the simpler pcap_findalldevs()? There is a lot of
problem elsewhere with this function. E.g. look at the Wireshark
developers mailing-list; some distros of libpcap seems to require
PCAP_REMOTE be defined when building or using this function in
libpcap.
--gv
- [lwip-devel] Why pcap_findalldevs_ex()?,
Gisle Vanem <=