tcpdump mailing list archives
Re: WinDump fails to compile on latest libpcap
From: Yang Luo <hsluoyb () gmail com>
Date: Thu, 6 Oct 2016 19:46:13 +0800
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 definitions of bittypes.h are nearly the same in pcap-stdinc.h. So I just replaced the bittypes.h including to "pcap-stdinc.h", which is already a part of Npcap SDK. 3) Removed all "eproto_db" stuff. 4) Then I fixed some "inline" errors, some wrong output folders. The entire commits are here: https://github.com/hsluoyz/WinDump/commits/master I don't know if the steps are reasonable. Maybe libpcap can add the "net" folder to the repo? Cheers, Yang On Thu, Oct 6, 2016 at 4:46 PM, Yang Luo <hsluoyb () gmail com> wrote:
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 1>j:\github_repos\windump\tcpdump-stdinc.h(56): fatal error C1083: Cannot open include file: 'net/netdb.h': No such file or directory 1> strcasecmp.c 1>j:\github_repos\windump\tcpdump-stdinc.h(56): fatal error C1083: Cannot open include file: 'net/netdb.h': No such file or directory 1> smbutil.c 1>j:\github_repos\windump\tcpdump-stdinc.h(56): fatal error C1083: Cannot open include file: 'net/netdb.h': No such file or directory 1> setsignal.c Also the similar issue on bittypes.h. The cause is that WinPcap has these two files: \libpcap\Win32\Include\net\netdb.h \libpcap\Win32\Include\bittypes.h But libpcap doesn't have it. Even if I checked the libpcap 1.0.0 release, they are also not there. So I don't think libpcap has deleted them after a certain time. libpcap never added them before. Given that WinDump is kind of "official" example to use libpcap/Npcap API, it's not good that they can't compile. So I want to ask that should libpcap add those two files to its code? If not, should we change the WinDump code to not use it? Thanks! Cheers, Yang
_______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- WinDump fails to compile on latest libpcap Yang Luo (Oct 06)
- Re: WinDump fails to compile on latest libpcap Yang Luo (Oct 06)
- Re: WinDump fails to compile on latest libpcap Gisle Vanem (Oct 06)
- Re: WinDump fails to compile on latest libpcap Guy Harris (Oct 06)
- Re: WinDump fails to compile on latest libpcap Yang Luo (Oct 06)
- Re: WinDump fails to compile on latest libpcap Yang Luo (Oct 06)
- Re: WinDump fails to compile on latest libpcap Guy Harris (Oct 06)