[tcpdump-workers] Add WinPcap specific functions like pcap_open() to libpcap on Windows for binary compatibility

2016-06-27 Thread Yang Luo
Hi list, When compiling WinDump (https://github.com/hsluoyz/WinDump) against the latest libpcap's SDK, I encountered the following errors: 1> Generating Code... 1>wpcap.lib(wpcap.dll) : error LNK2005: pcap_list_datalinks already defined in datalinks.obj 1>wpcap.lib(wpcap.dll) : error LNK2005: pc

[tcpdump-workers] Remove the eproto_db symbol exporting to keep the DLL delay-load feature on Windows

2016-06-27 Thread Yang Luo
Hi list, Because of libpcap has exported the a data structure called eproto_db ( https://github.com/the-tcpdump-group/libpcap/blob/master/nametoaddr.c#L320), when I compiled WinDump in MSVC specifying "wpcap.dll" as a delay loaded DLL, I encountered the link error 1194. The cause is here: https://

[tcpdump-workers] Why the wpcap.dll built from the latest libpcap doesn't work for any existing applications?

2016-06-27 Thread Yang Luo
Hi list, Now libpcap can compile out the wpcap.dll to be used on Windows. But no existing applications can use that wpcap.dll, including Wireshark, Nmap and WinDump. Wireshark said "Unable to load WinPcap (wpcap.dll)". Nmap crashes when actual scanning starts. When I run WinDump in MSVC's debug

Re: [tcpdump-workers] Changes in libpcap SDK for Windows

2016-06-27 Thread Yang Luo
Hi, I noticed that the source release has some additional files in Win32\Include\ compared to the repo, including bittypes.h, ip6_misc.h, etc. And when I compiled WinDump (https://github.com/hsluoyz/WinDump), it also requires bittypes.h, net\netdb.h, net\paths.h to build. But I didn't find any scr

[tcpdump-workers] Changes in libpcap SDK for Windows

2016-06-27 Thread Yang Luo
Hi list, I'm working on Npcap's SDK based on the latest libpcap. Is there any difference here since libpcap 1.0 (which is the version used by Npcap/WinPcap)? Like the headers, this bat is the used to package the headers ( https://github.com/nmap/npcap/blob/master/create_include.bat), still the or