Re: [tcpdump-workers] Adding loopback adapter detection for Windows

2016-01-25 Thread Yang Luo
On Tue, Jan 26, 2016 at 4:46 AM, Guy Harris wrote: > On Jan 24, 2016, at 7:47 PM, Yang Luo wrote: > > > My ubuntu 14.04 shows the lines below, so I think it doesn't support > IFF_LOOPBACK. > > root@ly-controller:~# ifconfig lo > > loLink encap:Local Loopback > > > > inet addr:1

Re: [tcpdump-workers] Adding loopback adapter detection for Windows

2016-01-25 Thread Guy Harris
On Jan 24, 2016, at 7:47 PM, Yang Luo wrote: > My ubuntu 14.04 shows the lines below, so I think it doesn't support > IFF_LOOPBACK. > root@ly-controller:~# ifconfig lo > loLink encap:Local Loopback > > inet addr:127.0.0.1 Mask:255.0.0.0 > inet6 addr: ::1/128 Scope

Re: [tcpdump-workers] Adding loopback adapter detection for Windows

2016-01-25 Thread Gisle Vanem
Yang Luo wrote: > But the trunk code of libpcap is lower-case, > see https://github.com/the-tcpdump-group/libpcap/blob/master/CMakeLists.txt I don't know how Cmake translates a ${PROJECT_NAME} into '-DBUILDING_pcap'. (and I don't really care to learn the contorted mess called Cmake). > And in fa

Re: [tcpdump-workers] Adding loopback adapter detection for Windows

2016-01-25 Thread Gisle Vanem
Yang Luo wrote: > 1) Modified the CMakeLists.txt Line 3 from > set( PROJECT_NAME pcap ) > to > set( PROJECT_NAME wpcap ) > I thought the output binary should be wpcap.dll instead of pcap.dll, so I > just changed it, I don't know if this is the correct move.. No, it seems be require "set( PROJECT_

Re: [tcpdump-workers] Adding loopback adapter detection for Windows

2016-01-25 Thread Yang Luo
Hi, I successfully built libpcap on Windows using CMake 3.4.1 and generated wpcap.dll, but it is unusable: After I substitute my built wpcap.dll with the original wpcap.dll in Npcap/WinPcap. Wireshark said: "Unable to load WinPcap (wpcap.dll); you will not be able to capture packets". So I think t