[Winpcap-users] pcap_findalldevs_ex

Gerald Combs gerald at wireshark.org
Wed Aug 27 23:23:40 UTC 2014


I recently found that pcap_findalldevs_ex can write more than
PCAP_ERRBUF_SIZE bytes to errbuf. For example, trying to connect to
rpcap://8.8.8.8 using WinPcap 4.1.3 on Windows 7 x64 returns:

----
Can't get list of interfaces: Is the server properly installed on
8.8.8.8? connect() failed: A connection attempt failed because the
connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to
respond.  (code 1
----

I worked around the problem in Wireshark by increasing the size of
errbuf to PCAP_ERRBUF_SIZE * 4 (https://code.wireshark.org/review/3880).
Obviously this isn't the preferred solution but it seems to work.


More information about the Winpcap-users mailing list