On Jan 14, 2005, at 4:35 PM, Ed Remmell wrote:

I was able to work-around this by recoding to call pcap_lookupnet instead of
PacketGetNetInfo. I noted that the latest Ethereal code also calls
pcap_lookupnet, so I expect this API will be supported for awhile even
though you have deprecated it in winpcap v3.1.

It's a libpcap API, so it probably can't be removed any time soon.

It's not *exactly* replaced by pcap_findalldevs(), in that it returns information about a particular interface, rather than enumerating interfaces and supplying information on all of them.

If all you want is the address and netmask, pcap_lookupnet() is the right choice, as it's available on more platforms than any of the alternatives (the packet.dll functions aren't present on UN*Xes, and the packet.dll API is subject to change from WinPcap release to release, and pcap_findalldevs() is available only on newer versions of libpcap/WinPcap).



==================================================================
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[email protected]/

To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to