Call that routine from fad-win32.c, rather than duplicating the code.
pcap_findalldevs() is now a libpcap API, and expects the main "find all interfaces" call for the platform to be named pcap_findalldevs_interfaces(); make it so. Also, note that the first PacketGetAdapterNames() is trying to find out how big the packet buffer should be, and should always return FALSE. Initialize the NameLength variable, because PacketGetAdapterNames() may refer to it before it's set (harmlessly, but might as well be clean here, at least until it's fixed to check the pointer argument first).
…nder linux. Updated the copyright notice.
…Names() from a "buffer too small" error.
…sp to NULL if no adapters are present.
…ndle an indefinite number of adapters. Before the buffer passed to PacketGetAdapterNames was limited to 8kB.
warnings from newer versions of GCC.
…p inside sockaddr_storage structures. Simplified pcap_findalldevs() since PacketGetAdapterNames() now returns ascii strings under WinNTx as well.
…itecno di Torino developers from the 4-clause BSD code to the modified BSD license
…hout addresses. Now it doesn't add anything to the address list.