I tried to install libpcap under cygwin on windows 7, but I had this error: $. / Configure,,,, configure: error: see INSTALL for more information
how can i solve this? I am using libpcap-1.0.0, which is the latest version.
I know this is a late answer, but I just went through the same installation issues on Windows 7.
On Windows, you should use Winpcap: http://www.winpcap.org/
http://mathieu.carbou.free.fr/wiki/index.php?title=How_to_install_Winpcap_/_Libpcap_under_Cygwin
libpcap http://www.winpcap.org/devel.htm
:
Winpcap. WpdPack_4_0_1.zip.:WpdPack\Lib\libpacket.a cygwin\lib\WpdPack\Lib\libwpcap.a cygwin\lib\cygwin\usr\include\pcap\WpdPack\Include cygwin\usr\include\winpcap\, Winpcap , :which packet.dll which wpcap.dll /cygdrive/c/WINDOWS/system 32/Cygwincygwin WpdPack\Examples-pcap\basic_dump\ :basic_dump:CFLAGS="-g -Wall -mno-cygwin -I /usr/include/pcap" LIBS="-lwpcap" PROG="basic_dump" gcc $CFLAGS -c $PROG.c gcc $CFLAGS -o $PROG.exe $PROG.o $LIBS ./$PROG.exe basic_dump_ex:CFLAGS="-g -Wall -mno-cygwin -I /usr/include/pcap" LIBS="-lwpcap" PROG="basic_dump_ex" gcc $CFLAGS -c $PROG.c gcc $CFLAGS -o $PROG.exe $PROG.o $LIBS ./$PROG.exe iflist:CFLAGS="-g -Wall -mno-cygwin -I /usr/include/pcap" LIBS="-lwpcap" PROG="iflist" gcc $CFLAGS -c $PROG.c gcc $CFLAGS -o $PROG.exe $PROG.o $LIBS ./$PROG.exe pcap_filter ( ):I think you can catch the pattern ;) Only replace PROG=... by the program name and it should compile. UDPdump:CFLAGS="-g -Wall -mno-cygwin -I /usr/include/pcap" LIBS="-lwpcap -lwsock32" PROG="UDPdump" gcc $CFLAGS -c $PROG.c gcc $CFLAGS -o $PROG.exe $PROG.o $LIBS ./$PROG.exe , pool.ntp.org .
Winpcap
. WpdPack_4_0_1.zip.
cygwin\usr\include\pcap\
WpdPack\Include cygwin\usr\include\winpcap\
, Winpcap , :
which packet.dll which wpcap.dll
/cygdrive/c/WINDOWS/system 32/
Cygwin
cygwin WpdPack\Examples-pcap\basic_dump\ :
basic_dump:
CFLAGS="-g -Wall -mno-cygwin -I /usr/include/pcap" LIBS="-lwpcap" PROG="basic_dump" gcc $CFLAGS -c $PROG.c gcc $CFLAGS -o $PROG.exe $PROG.o $LIBS ./$PROG.exe
basic_dump_ex:
CFLAGS="-g -Wall -mno-cygwin -I /usr/include/pcap" LIBS="-lwpcap" PROG="basic_dump_ex" gcc $CFLAGS -c $PROG.c gcc $CFLAGS -o $PROG.exe $PROG.o $LIBS ./$PROG.exe
iflist:
CFLAGS="-g -Wall -mno-cygwin -I /usr/include/pcap" LIBS="-lwpcap" PROG="iflist" gcc $CFLAGS -c $PROG.c gcc $CFLAGS -o $PROG.exe $PROG.o $LIBS ./$PROG.exe
pcap_filter ( ):
I think you can catch the pattern ;) Only replace PROG=... by the program name and it should compile.
UDPdump:
CFLAGS="-g -Wall -mno-cygwin -I /usr/include/pcap" LIBS="-lwpcap -lwsock32" PROG="UDPdump" gcc $CFLAGS -c $PROG.c gcc $CFLAGS -o $PROG.exe $PROG.o $LIBS ./$PROG.exe
, pool.ntp.org .
libpcap , , Windows. , , ( libpcap , ).
UN * Xes , libpcap .
Windows , WinPcap , , , libpcap, .
libpcap , libpcap Windows.
, WinPcap.
Source: https://habr.com/ru/post/1735785/More articles:sql to select the top 10 records - sqlHow to get interface index from ip addres interface - linuxUsing Records with Delphi Web Services - wsdlcreating Linq to sqlite dbml from DbLinq source code - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1735784/can-we-convert-all-sql-scripts-to-linq-to-sql-expressions-or-there-is-any-limitation&usg=ALkJrhhxl8m9LNKCCL13UfPdX9yB8rKFhAGet HModule from inside a DLL - c ++3 types of tree were added on my main page, but they are not visible - .netWPF - manipulating VisualState from UserControl - c #Why isn't the listShuttle component in richFaces updated? - javaOcaml exception handling for open input channel - matchingAll Articles