Re: [tcpdump-workers] WinDump fails to compile on latest libpcap

2016-10-06 Thread Yang Luo
Hi Guy, On Fri, Oct 7, 2016 at 2:10 AM, Guy Harris wrote: > On Oct 6, 2016, at 4:53 AM, Gisle Vanem wrote: > > > Yang Luo wrote: > > > >> Given that WinDump is kind of "official" example to use libpcap/Npcap > API, > >> it's not good that they can't compile.

Re: [tcpdump-workers] WinDump fails to compile on latest libpcap

2016-10-06 Thread Guy Harris
On Oct 6, 2016, at 4:53 AM, Gisle Vanem wrote: > Yang Luo wrote: > >> Given that WinDump is kind of "official" example to use libpcap/Npcap API, >> it's not good that they can't compile. > > Why do you say that? IMHO, tcpdump/WinDump at: >

Re: [tcpdump-workers] WinDump fails to compile on latest libpcap

2016-10-06 Thread Gisle Vanem
Yang Luo wrote: > Given that WinDump is kind of "official" example to use libpcap/Npcap API, > it's not good that they can't compile. Why do you say that? IMHO, tcpdump/WinDump at: https://github.com/the-tcpdump-group/tcpdump.git is the "official". Works fine for me on Windows. Have you tried

Re: [tcpdump-workers] WinDump fails to compile on latest libpcap

2016-10-06 Thread Yang Luo
Hi list, I can compile WinDump successfully on MSVC 2013 with Npcap SDK now. Here's what I have done. 1) put WinPcap's netdb.h and paths.h into the "net" subfolder of libpcap. Since libpcap has already excluded the "net" folder in the .gitignore. This doesn't require a commit. 2) I found the

[tcpdump-workers] WinDump fails to compile on latest libpcap

2016-10-06 Thread Yang Luo
Hi list, I'm compiling WinDump on latest Npcap/libpcap there: https://github.com/hsluoyz/windump because I need to use it to test my functions sometimes. But I got compile errors. 1>-- Build started: Project: WinDump, Configuration: Debug x64 -- 1> getopt.c 1> util.c