From ba8045b0f7c4bb97d247a330873ada5f333d3a48 Mon Sep 17 00:00:00 2001 From: Justin Miller Date: Mon, 23 Sep 2024 21:48:01 -0700 Subject: [PATCH] [WPCAP] Import wpcap --- dll/3rdparty/wpcap/PRJ/GNUmakefile | 95 ++ dll/3rdparty/wpcap/PRJ/WPCAP.DEF | 93 ++ dll/3rdparty/wpcap/PRJ/WPCAP.dsw | 59 ++ .../wpcap/PRJ/Wpcap_no_extensions.def | 77 ++ .../wpcap/PRJ/build_scanner_parser.bat | 26 + dll/3rdparty/wpcap/PRJ/wpcap.dsp | 501 ++++++++++ dll/3rdparty/wpcap/PRJ/wpcap.sln | 38 + dll/3rdparty/wpcap/PRJ/wpcap.vcproj | 858 ++++++++++++++++++ .../wpcap/Win32-Extensions/Win32-Extensions.c | 381 ++++++++ .../wpcap/Win32-Extensions/Win32-Extensions.h | 113 +++ .../wpcap/Win32-Extensions/version.aps | Bin 0 -> 32508 bytes .../wpcap/Win32-Extensions/version.rc | 64 ++ .../wpcap/Win32-Extensions/version.rc2 | 45 + dll/3rdparty/wpcap/libpcap | 1 + dll/3rdparty/wpcap/version.h | 42 + 15 files changed, 2393 insertions(+) create mode 100644 dll/3rdparty/wpcap/PRJ/GNUmakefile create mode 100644 dll/3rdparty/wpcap/PRJ/WPCAP.DEF create mode 100644 dll/3rdparty/wpcap/PRJ/WPCAP.dsw create mode 100644 dll/3rdparty/wpcap/PRJ/Wpcap_no_extensions.def create mode 100644 dll/3rdparty/wpcap/PRJ/build_scanner_parser.bat create mode 100644 dll/3rdparty/wpcap/PRJ/wpcap.dsp create mode 100644 dll/3rdparty/wpcap/PRJ/wpcap.sln create mode 100644 dll/3rdparty/wpcap/PRJ/wpcap.vcproj create mode 100644 dll/3rdparty/wpcap/Win32-Extensions/Win32-Extensions.c create mode 100644 dll/3rdparty/wpcap/Win32-Extensions/Win32-Extensions.h create mode 100644 dll/3rdparty/wpcap/Win32-Extensions/version.aps create mode 100644 dll/3rdparty/wpcap/Win32-Extensions/version.rc create mode 100644 dll/3rdparty/wpcap/Win32-Extensions/version.rc2 create mode 160000 dll/3rdparty/wpcap/libpcap create mode 100644 dll/3rdparty/wpcap/version.h diff --git a/dll/3rdparty/wpcap/PRJ/GNUmakefile b/dll/3rdparty/wpcap/PRJ/GNUmakefile new file mode 100644 index 0000000000000..a9d7db8b9cae0 --- /dev/null +++ b/dll/3rdparty/wpcap/PRJ/GNUmakefile @@ -0,0 +1,95 @@ +# Makefile for cygwin gcc +# Nate Lawson + +# Set according to your system type +SYSTYPE = "NT" +# SYSTYPE = "9x" + +# OPTFLAGS = -g +OPTFLAGS = -O +# DO _NOT_ USE -O2! Causes fault upon startup. + +# +# Flex and bison allow you to specify the prefixes of the global symbols +# used by the generated parser. This allows programs to use lex/yacc +# and link against libpcap. If you don't have flex or bison, get them. +# +LFLAGS = -Ppcap_ +YFLAGS = -y -p pcap_ + +FLEX = flex +BISON = bison + +PACKET_DIR = packetNtx +INSTALL_DIR = ${SYSTEMROOT}\system32 + +CFLAGS = -I ../libpcap -I ../libpcap/bpf -I ../libpcap/lbl \ + -I ../libpcap/Win32/Include -I../libpcap/Win32/Include/ipv6kit \ + -I ../../Common -I ../Win32-Extensions \ + -I ../../../AirPcap_DevPack/include \ + -DLIBPCAP_EXPORTS -DYY_NEVER_INTERACTIVE -Dyylval=pcap_lval \ + -DHAVE_STRERROR -DNEED_ADDRINFO_H -DINET6 -DWIN32 \ + -DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG_LONG=8 -DWPCAP -D'_U_=' \ + -DHAVE_SNPRINTF -DHAVE_VSNPRINTF \ + -DSIZEOF_LONG_LONG=8 \ + -DHAVE_REMOTE -DHAVE_AIRPCAP_API \ + -DHAVE_TC_API \ + -DHAVE_ADDRINFO \ + -DHAVE_LIMITS_H \ + -DYY_NO_UNISTD_H \ + -mno-cygwin -shared ${OPTFLAGS} +LDFLAGS = -Wl,--out-implib,../lib/libwpcap.a +LIBS = -L ../../${PACKET_DIR}/Dll/Project -lpacket -lws2_32 +OBJS = ../libpcap/bpf/net/bpf_filter.o \ + ../libpcap/bpf_dump.o \ + ../libpcap/bpf_image.o \ + ../libpcap/etherent.o \ + ../libpcap/Win32/Src/ffs.o \ + ../libpcap/gencode.o\ + ../libpcap/Win32/Src/getnetbynm.o \ + ../libpcap/Win32/Src/getnetent.o \ + ../libpcap/Win32/Src/getservent.o \ + ../libpcap/grammar.o \ + ../libpcap/Win32/Src/getaddrinfo.o \ + ../libpcap/inet.o \ + ../libpcap/Win32/Src/inet_aton.o \ + ../libpcap/Win32/Src/inet_net.o \ + ../libpcap/Win32/Src/inet_pton.o \ + ../libpcap/nametoaddr.o \ + ../libpcap/optimize.o \ + ../libpcap/pcap-win32.o \ + ../libpcap/fad-win32.o \ + ../libpcap/pcap.o \ + ../libpcap/savefile.o \ + ../libpcap/scanner.o \ + ../libpcap/pcap-new.o \ + ../libpcap/pcap-remote.o \ + ../libpcap/sockutils.o \ + ../libpcap/Win32/Src/gai_strerror.o \ + ../libpcap/pcap-tc.o \ + ../Win32-Extensions/Win32-Extensions.o + +main: ${OBJS} + @${RM} -rf ../lib/ + mkdir ../lib/ + ${CC} ${CFLAGS} ${LDFLAGS} -o wpcap.dll WPCAP.DEF ${OBJS} ${LIBS} + +install: + cp wpcap.dll ${INSTALL_DIR} + +clean: + ${RM} ${OBJS} ../libpcap/scanner.c ../libpcap/grammar.c wpcap.a wpcap.dll + +# Keeps intermediate .c files from being deleted +.SECONDARY: ../libpcap/scanner.c ../libpcap/grammar.c + +.y.c: + @${RM} ../libpcap/grammar.c ../libpcap/tokdefs.h + ${BISON} ${YFLAGS} -d $< + mv y.tab.c ../libpcap/grammar.c + mv y.tab.h ../libpcap/tokdefs.h +.l.c: + @${RM} $@ + ${FLEX} ${LFLAGS} -t $< >$*.c +.c.o: + ${CC} ${CFLAGS} -o $*.o -c $< diff --git a/dll/3rdparty/wpcap/PRJ/WPCAP.DEF b/dll/3rdparty/wpcap/PRJ/WPCAP.DEF new file mode 100644 index 0000000000000..8e89da2312ef4 --- /dev/null +++ b/dll/3rdparty/wpcap/PRJ/WPCAP.DEF @@ -0,0 +1,93 @@ +LIBRARY wpcap.dll + +EXPORTS + pcap_lookupdev + pcap_lookupnet + pcap_open_live + pcap_open_offline + pcap_close + pcap_getnonblock + pcap_setnonblock + pcap_loop + pcap_dispatch + pcap_read + pcap_setuserbuffer + pcap_offline_read + pcap_next + pcap_stats + pcap_stats_ex + pcap_setfilter + pcap_perror + pcap_strerror + pcap_geterr + pcap_compile + pcap_compile_nopcap + pcap_freecode + pcap_datalink + pcap_snapshot + pcap_is_swapped + pcap_major_version + pcap_minor_version + pcap_file + pcap_fileno + pcap_dump_open + pcap_dump_close + pcap_dump_flush + pcap_dump + pcap_dump_file + pcap_setbuff + pcap_setmode + pcap_sendpacket + pcap_sendqueue_alloc + pcap_sendqueue_destroy + pcap_sendqueue_queue + pcap_sendqueue_transmit + pcap_next_etherent + pcap_getevent + pcap_setmintocopy + pcap_open_dead + pcap_findalldevs + pcap_freealldevs + pcap_live_dump + pcap_live_dump_ended + bpf_filter + bpf_validate + bpf_image + bpf_dump + wsockinit + endservent + getservent + eproto_db + pcap_stats_ex + pcap_open + pcap_createsrcstr + pcap_parsesrcstr + pcap_findalldevs_ex + pcap_remoteact_accept + pcap_remoteact_list + pcap_remoteact_close + pcap_remoteact_cleanup + install_bpf_program + pcap_next_ex + pcap_offline_filter + pcap_setsampling + pcap_breakloop + pcap_list_datalinks + pcap_list_datalinks + pcap_set_datalink + pcap_datalink_name_to_val + pcap_datalink_val_to_name + pcap_datalink_val_to_description + pcap_lib_version + pcap_dump_file + pcap_dump_ftell + pcap_get_airpcap_handle + pcap_create + pcap_activate + pcap_set_promisc + pcap_set_snaplen + pcap_set_timeout + pcap_set_buffer_size + pcap_hopen_offline + pcap_setdirection + pcap_free_datalinks \ No newline at end of file diff --git a/dll/3rdparty/wpcap/PRJ/WPCAP.dsw b/dll/3rdparty/wpcap/PRJ/WPCAP.dsw new file mode 100644 index 0000000000000..bb14b3204aed4 --- /dev/null +++ b/dll/3rdparty/wpcap/PRJ/WPCAP.dsw @@ -0,0 +1,59 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "libpcap"=..\libpcap\Win32\Prj\libpcap.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "rpcapd"=..\libpcap\rpcapd\rpcapd.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name wpcap + End Project Dependency +}}} + +############################################################################### + +Project: "wpcap"=.\wpcap.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name libpcap + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/dll/3rdparty/wpcap/PRJ/Wpcap_no_extensions.def b/dll/3rdparty/wpcap/PRJ/Wpcap_no_extensions.def new file mode 100644 index 0000000000000..6b3f0fae4d475 --- /dev/null +++ b/dll/3rdparty/wpcap/PRJ/Wpcap_no_extensions.def @@ -0,0 +1,77 @@ +LIBRARY wpcap.dll + +DESCRIPTION 'Win32 Packet Capture Library' + +EXPORTS + pcap_lookupdev + pcap_lookupnet + pcap_open_live + pcap_open_offline + pcap_close + pcap_getnonblock + pcap_setnonblock + pcap_loop + pcap_dispatch + pcap_read + pcap_setuserbuffer + pcap_offline_read + pcap_next + pcap_stats + pcap_stats_ex + pcap_setfilter + pcap_perror + pcap_strerror + pcap_geterr + pcap_compile + pcap_compile_nopcap + pcap_freecode + pcap_datalink + pcap_snapshot + pcap_is_swapped + pcap_major_version + pcap_minor_version + pcap_file + pcap_fileno + pcap_dump_open + pcap_dump_close + pcap_dump_flush + pcap_dump + pcap_dump_file + pcap_setbuff + pcap_setmode + pcap_sendpacket + pcap_sendqueue_alloc + pcap_sendqueue_destroy + pcap_sendqueue_queue + pcap_sendqueue_transmit + pcap_next_etherent + pcap_getevent + pcap_setmintocopy + pcap_open_dead + pcap_findalldevs + pcap_freealldevs + pcap_live_dump + pcap_live_dump_ended + bpf_filter + bpf_validate + bpf_image + bpf_dump + wsockinit + endservent + getservent + eproto_db + pcap_stats_ex + install_bpf_program + pcap_next_ex + pcap_offline_filter + pcap_breakloop + pcap_list_datalinks + pcap_list_datalinks + pcap_set_datalink + pcap_datalink_name_to_val + pcap_datalink_val_to_name + pcap_datalink_val_to_description + pcap_lib_version + pcap_dump_file + pcap_dump_ftell + pcap_get_airpcap_handle \ No newline at end of file diff --git a/dll/3rdparty/wpcap/PRJ/build_scanner_parser.bat b/dll/3rdparty/wpcap/PRJ/build_scanner_parser.bat new file mode 100644 index 0000000000000..c99993bd6aec7 --- /dev/null +++ b/dll/3rdparty/wpcap/PRJ/build_scanner_parser.bat @@ -0,0 +1,26 @@ +@echo off + +echo Building the libpcap parser and scanner... +del /Q /F ..\libpcap\grammar.c > nul 2> nul +del /Q /F ..\libpcap\tokdefs.h > nul 2> nul + +bison -y -p pcap_ -d ../libpcap/GRAMMAR.Y > nul +if not %ERRORLEVEL% == 0 ( + echo failure in generating the grammar. + goto end + ) + +move y.tab.c ..\libpcap\grammar.c +move y.tab.h ..\libpcap\tokdefs.h + +del /Q /F ..\libpcap\scanner.c >/nul 2>/nul +flex -Ppcap_ -t ../libpcap/scanner.l > ../libpcap/scanner.c + +if not %ERRORLEVEL% == 0 ( + echo failure in generating the scanner. + goto end + ) + +echo --- Done! + +:end \ No newline at end of file diff --git a/dll/3rdparty/wpcap/PRJ/wpcap.dsp b/dll/3rdparty/wpcap/PRJ/wpcap.dsp new file mode 100644 index 0000000000000..e53a865151bf7 --- /dev/null +++ b/dll/3rdparty/wpcap/PRJ/wpcap.dsp @@ -0,0 +1,501 @@ +# Microsoft Developer Studio Project File - Name="wpcap" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=wpcap - Win32 Debug REMOTE NO AIRPCAP +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "wpcap.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "wpcap.mak" CFG="wpcap - Win32 Debug REMOTE NO AIRPCAP" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "wpcap - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "wpcap - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "wpcap - Win32 Debug REMOTE" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "wpcap - Win32 Debug REMOTE DAG" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "wpcap - Win32 Release REMOTE" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "wpcap - Win32 Release REMOTE DAG" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "wpcap - Win32 Release REMOTE NO AIRPCAP" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "wpcap - Win32 Debug REMOTE NO AIRPCAP" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "wpcap - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBPCAP_EXPORTS" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /Zi /O2 /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D HAVE_ADDRINFO=1 /D "NDEBUG" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_AIRPCAP_API" /YX /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "NDEBUG" +# ADD RSC /l 0x410 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/release/libpcap.lib /nologo /dll /debug /machine:I386 /nodefaultlib:"libcmtd.lib" /def:".\wpcap_no_extensions.def" /FORCE:MULTIPLE /WARN:0 /opt:ref +# SUBTRACT LINK32 /pdb:none + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBPCAP_EXPORTS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D "HAVE_ADDRINFO" /D "_DEBUG" /D "HAVE_DAG_API" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_AIRPCAP_API" /FR /YX /FD /GZ /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "_DEBUG" +# ADD RSC /l 0x410 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/debug/libpcap.lib /nologo /dll /debug /machine:I386 /def:".\Wpcap_no_extensions.def" /pdbtype:sept /FORCE:MULTIPLE /WARN:0 +# SUBTRACT LINK32 /pdb:none + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug_REMOTE" +# PROP BASE Intermediate_Dir "Debug_REMOTE" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug_REMOTE" +# PROP Intermediate_Dir "Debug_REMOTE" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /D "HAVE_ADDRINFO" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "_DEBUG" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_REMOTE" /FR /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D "HAVE_ADDRINFO" /D "_DEBUG" /D "HAVE_REMOTE" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_AIRPCAP_API" /FR /YX /FD /GZ /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "_DEBUG" +# ADD RSC /l 0x410 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/debug/libpcap.lib /nologo /dll /debug /machine:I386 /implib:"../lib/wpcap.lib" /pdbtype:sept /FORCE:MULTIPLE /WARN:0 +# SUBTRACT BASE LINK32 /pdb:none /incremental:no +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/debug_REMOTE/libpcap.lib /nologo /dll /debug /machine:I386 /def:".\wpcap.def" /pdbtype:sept /FORCE:MULTIPLE /WARN:0 +# SUBTRACT LINK32 /pdb:none +# Begin Special Build Tool +OutDir=.\Debug_REMOTE +SOURCE="$(InputPath)" +PostBuild_Desc=copy wpcap.lib file +PostBuild_Cmds=mkdir $(OutDir)\..\..\LIB > nul copy $(OutDir)\wpcap.lib $(OutDir)\..\..\LIB\ +# End Special Build Tool + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE DAG" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug_REMOTE_DAG" +# PROP BASE Intermediate_Dir "Debug_REMOTE_DAG" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug_REMOTE_DAG" +# PROP Intermediate_Dir "Debug_REMOTE_DAG" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /D "HAVE_ADDRINFO" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "_DEBUG" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_REMOTE" /FR /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D "HAVE_ADDRINFO" /D "_DEBUG" /D "HAVE_REMOTE" /D "HAVE_DAG_API" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_AIRPCAP_API" /FR /YX /FD /GZ /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "_DEBUG" +# ADD RSC /l 0x410 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/Debug_REMOTE_DAG/libpcap.lib /nologo /dll /debug /machine:I386 /implib:"../lib/wpcap.lib" /pdbtype:sept /FORCE:MULTIPLE /WARN:0 +# SUBTRACT BASE LINK32 /pdb:none /incremental:no +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/debug_REMOTE_DAG/libpcap.lib /nologo /dll /debug /machine:I386 /def:".\wpcap.def" /pdbtype:sept /FORCE:MULTIPLE /WARN:0 +# SUBTRACT LINK32 /pdb:none +# Begin Special Build Tool +OutDir=.\Debug_REMOTE_DAG +SOURCE="$(InputPath)" +PostBuild_Desc=copy wpcap.lib file +PostBuild_Cmds=mkdir $(OutDir)\..\..\LIB > nul copy $(OutDir)\wpcap.lib $(OutDir)\..\..\LIB\ +# End Special Build Tool + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release_REMOTE" +# PROP BASE Intermediate_Dir "Release_REMOTE" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release_REMOTE" +# PROP Intermediate_Dir "Release_REMOTE" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /D HAVE_ADDRINFO=1 /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "NDEBUG" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_REMOTE" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /Zi /O2 /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D HAVE_ADDRINFO=1 /D "NDEBUG" /D "HAVE_REMOTE" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_AIRPCAP_API" /YX /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "NDEBUG" +# ADD RSC /l 0x410 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/Release_REMOTE/libpcap.lib /nologo /dll /machine:I386 /nodefaultlib:"libcmtd.lib" /def:".\wpcap.def" /implib:"../lib/wpcap.lib" /FORCE:MULTIPLE /WARN:0 +# SUBTRACT BASE LINK32 /pdb:none +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/release_REMOTE/libpcap.lib /nologo /dll /debug /machine:I386 /nodefaultlib:"libcmtd.lib" /def:".\wpcap.def" /FORCE:MULTIPLE /WARN:0 /opt:ref +# SUBTRACT LINK32 /pdb:none +# Begin Special Build Tool +OutDir=.\Release_REMOTE +SOURCE="$(InputPath)" +PostBuild_Desc=copy wpcap.lib file +PostBuild_Cmds=mkdir $(OutDir)\..\..\LIB > nul copy $(OutDir)\wpcap.lib $(OutDir)\..\..\LIB\ +# End Special Build Tool + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE DAG" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release_REMOTE_DAG" +# PROP BASE Intermediate_Dir "Release_REMOTE_DAG" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release_REMOTE_DAG" +# PROP Intermediate_Dir "Release_REMOTE_DAG" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /D HAVE_ADDRINFO=1 /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "NDEBUG" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_REMOTE" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /Zi /O2 /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D HAVE_ADDRINFO=1 /D "NDEBUG" /D "HAVE_REMOTE" /D "HAVE_DAG_API" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /D "HAVE_AIRPCAP_API" /YX /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "NDEBUG" +# ADD RSC /l 0x410 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/Release_REMOTE_DAG/libpcap.lib /nologo /dll /machine:I386 /nodefaultlib:"libcmtd.lib" /def:".\wpcap.def" /implib:"../lib/wpcap.lib" /FORCE:MULTIPLE /WARN:0 +# SUBTRACT BASE LINK32 /pdb:none +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/release_REMOTE_DAG/libpcap.lib /nologo /dll /debug /machine:I386 /nodefaultlib:"libcmtd.lib" /def:".\wpcap.def" /FORCE:MULTIPLE /WARN:0 /opt:ref +# SUBTRACT LINK32 /pdb:none +# Begin Special Build Tool +OutDir=.\Release_REMOTE_DAG +SOURCE="$(InputPath)" +PostBuild_Desc=copy wpcap.lib file +PostBuild_Cmds=mkdir $(OutDir)\..\..\LIB > nul copy $(OutDir)\wpcap.lib $(OutDir)\..\..\LIB\ +# End Special Build Tool + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE NO AIRPCAP" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "wpcap___Win32_Release_REMOTE_NO_AIRPCAP" +# PROP BASE Intermediate_Dir "wpcap___Win32_Release_REMOTE_NO_AIRPCAP" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release_REMOTE_NO_AIRPCAP" +# PROP Intermediate_Dir "Release_REMOTE_NO_AIRPCAP" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D HAVE_ADDRINFO=1 /D "NDEBUG" /D "HAVE_REMOTE" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /Zi /O2 /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D HAVE_ADDRINFO=1 /D "NDEBUG" /D "HAVE_REMOTE" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /YX /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "NDEBUG" +# ADD RSC /l 0x410 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/release_REMOTE/libpcap.lib /nologo /dll /machine:I386 /nodefaultlib:"libcmtd.lib" /def:".\wpcap.def" /FORCE:MULTIPLE /WARN:0 +# SUBTRACT BASE LINK32 /pdb:none +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/release_REMOTE/libpcap.lib /nologo /dll /debug /machine:I386 /nodefaultlib:"libcmtd.lib" /def:".\wpcap.def" /FORCE:MULTIPLE /WARN:0 /opt:ref +# SUBTRACT LINK32 /pdb:none +# Begin Special Build Tool +OutDir=.\Release_REMOTE_NO_AIRPCAP +SOURCE="$(InputPath)" +PostBuild_Desc=copy wpcap.lib file +PostBuild_Cmds=mkdir $(OutDir)\..\..\LIB > nul copy $(OutDir)\wpcap.lib $(OutDir)\..\..\LIB\ +# End Special Build Tool + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE NO AIRPCAP" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "wpcap___Win32_Debug_REMOTE_NO_AIRPCAP" +# PROP BASE Intermediate_Dir "wpcap___Win32_Debug_REMOTE_NO_AIRPCAP" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug_REMOTE_NO_AIRPCAP" +# PROP Intermediate_Dir "Debug_REMOTE_NO_AIRPCAP" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D "HAVE_ADDRINFO" /D "_DEBUG" /D "HAVE_REMOTE" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /FR /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../libpcap/" /I "../libpcap/bpf" /I "../libpcap/lbl" /I "../libpcap/Win32/Include" /I "../../common" /I "../Win32-Extensions" /I "../../../Airpcap_Devpack/include" /D "HAVE_ADDRINFO" /D "_DEBUG" /D "HAVE_REMOTE" /D "YY_NEVER_INTERACTIVE" /D yylval=pcap_lval /D "_USRDLL" /D "LIBPCAP_EXPORTS" /D "HAVE_STRERROR" /D "__STDC__" /D "INET6" /D "_WINDOWS" /D SIZEOF_CHAR=1 /D SIZEOF_SHORT=2 /D SIZEOF_INT=4 /D "WPCAP" /D "HAVE_SNPRINTF" /D "HAVE_VSNPRINTF" /D "WIN32" /D "_MBCS" /FR /YX /FD /GZ /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "_DEBUG" +# ADD RSC /l 0x410 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/debug_REMOTE/libpcap.lib /nologo /dll /debug /machine:I386 /def:".\wpcap.def" /pdbtype:sept /FORCE:MULTIPLE /WARN:0 +# SUBTRACT BASE LINK32 /pdb:none +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib ../libpcap/win32/prj/debug_REMOTE/libpcap.lib /nologo /dll /debug /machine:I386 /def:".\wpcap.def" /pdbtype:sept /FORCE:MULTIPLE /WARN:0 +# SUBTRACT LINK32 /pdb:none +# Begin Special Build Tool +OutDir=.\Debug_REMOTE_NO_AIRPCAP +SOURCE="$(InputPath)" +PostBuild_Desc=copy wpcap.lib file +PostBuild_Cmds=mkdir $(OutDir)\..\..\LIB > nul copy $(OutDir)\wpcap.lib $(OutDir)\..\..\LIB\ +# End Special Build Tool + +!ENDIF + +# Begin Target + +# Name "wpcap - Win32 Release" +# Name "wpcap - Win32 Debug" +# Name "wpcap - Win32 Debug REMOTE" +# Name "wpcap - Win32 Debug REMOTE DAG" +# Name "wpcap - Win32 Release REMOTE" +# Name "wpcap - Win32 Release REMOTE DAG" +# Name "wpcap - Win32 Release REMOTE NO AIRPCAP" +# Name "wpcap - Win32 Debug REMOTE NO AIRPCAP" +# Begin Group "Extensions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE="..\Win32-Extensions\Win32-Extensions.c" +# End Source File +# End Group +# Begin Group "Libraries" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\..\common\Packet.lib +# End Source File +# End Group +# Begin Source File + +SOURCE="..\libpcap\pcap-new.c" + +!IF "$(CFG)" == "wpcap - Win32 Release" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE DAG" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE DAG" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE NO AIRPCAP" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE NO AIRPCAP" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE="..\libpcap\pcap-remote.c" + +!IF "$(CFG)" == "wpcap - Win32 Release" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE DAG" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE DAG" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE NO AIRPCAP" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE NO AIRPCAP" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\libpcap\sockutils.c + +!IF "$(CFG)" == "wpcap - Win32 Release" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE DAG" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE DAG" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE NO AIRPCAP" + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE NO AIRPCAP" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE="..\Win32-Extensions\version.rc" +# End Source File +# Begin Source File + +SOURCE=.\wpcap.def + +!IF "$(CFG)" == "wpcap - Win32 Release" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE" + +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE DAG" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE" + +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE DAG" + +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE NO AIRPCAP" + +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE NO AIRPCAP" + +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\Wpcap_no_extensions.def + +!IF "$(CFG)" == "wpcap - Win32 Release" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE DAG" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE DAG" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Release REMOTE NO AIRPCAP" + +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "wpcap - Win32 Debug REMOTE NO AIRPCAP" + +# PROP BASE Exclude_From_Build 1 +# PROP Exclude_From_Build 1 + +!ENDIF + +# End Source File +# End Target +# End Project diff --git a/dll/3rdparty/wpcap/PRJ/wpcap.sln b/dll/3rdparty/wpcap/PRJ/wpcap.sln new file mode 100644 index 0000000000000..11ad5aa1091e6 --- /dev/null +++ b/dll/3rdparty/wpcap/PRJ/wpcap.sln @@ -0,0 +1,38 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wpcap", "wpcap.vcproj", "{20B438DA-CBEC-4AFF-B11C-67B301D14AD5}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug - No AirPcap|Win32 = Debug - No AirPcap|Win32 + Debug - No AirPcap|x64 = Debug - No AirPcap|x64 + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release - No AirPcap|Win32 = Release - No AirPcap|Win32 + Release - No AirPcap|x64 = Release - No AirPcap|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Debug - No AirPcap|Win32.ActiveCfg = Debug No AirPcap|Win32 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Debug - No AirPcap|Win32.Build.0 = Debug No AirPcap|Win32 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Debug - No AirPcap|x64.ActiveCfg = Debug No AirPcap|x64 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Debug - No AirPcap|x64.Build.0 = Debug No AirPcap|x64 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Debug|Win32.ActiveCfg = Debug|Win32 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Debug|Win32.Build.0 = Debug|Win32 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Debug|x64.ActiveCfg = Debug|x64 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Debug|x64.Build.0 = Debug|x64 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Release - No AirPcap|Win32.ActiveCfg = Release No AirPcap|Win32 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Release - No AirPcap|Win32.Build.0 = Release No AirPcap|Win32 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Release - No AirPcap|x64.ActiveCfg = Release No AirPcap|x64 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Release - No AirPcap|x64.Build.0 = Release No AirPcap|x64 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Release|Win32.ActiveCfg = Release|Win32 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Release|Win32.Build.0 = Release|Win32 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Release|x64.ActiveCfg = Release|x64 + {20B438DA-CBEC-4AFF-B11C-67B301D14AD5}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/dll/3rdparty/wpcap/PRJ/wpcap.vcproj b/dll/3rdparty/wpcap/PRJ/wpcap.vcproj new file mode 100644 index 0000000000000..c1d56b4762677 --- /dev/null +++ b/dll/3rdparty/wpcap/PRJ/wpcap.vcproj @@ -0,0 +1,858 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dll/3rdparty/wpcap/Win32-Extensions/Win32-Extensions.c b/dll/3rdparty/wpcap/Win32-Extensions/Win32-Extensions.c new file mode 100644 index 0000000000000..70c54ac289ef6 --- /dev/null +++ b/dll/3rdparty/wpcap/Win32-Extensions/Win32-Extensions.c @@ -0,0 +1,381 @@ +/* + * Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy) + * Copyright (c) 2005 - 2010 CACE Technologies, Davis (California) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the Politecnico di Torino, CACE Technologies + * nor the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + + +#include "pcap-int.h" +#include + +#ifdef HAVE_REMOTE +#include +#endif + + +HANDLE +pcap_getevent(pcap_t *p) +{ + if (p->TcInstance != NULL) + { + return TcGetReceiveWaitHandle(p); + } + else + if (p->adapter==NULL) + { + sprintf(p->errbuf, "The read event cannot be retrieved while reading from a file"); + return NULL; + } + + return PacketGetReadEvent(p->adapter); +} + + + +/* +This way is definitely safer than passing the pcap_stat * from the userland. In fact, there could +happen than the user allocates a variable which is not big enough for the new structure, and the +library will write in a zone which is not allocated to this variable. +In this way, we're pretty sure we are writing on memory allocated to this variable. +*/ +struct pcap_stat * +pcap_stats_ex(pcap_t *p, int *pcap_stat_size) +{ + *pcap_stat_size= sizeof (struct pcap_stat); + +#ifdef HAVE_REMOTE + if (p->rmt_clientside) + { + /* We are on an remote capture */ + return pcap_stats_ex_remote(p); + } +#endif + + if (p->adapter == NULL) + { + sprintf(p->errbuf, "Cannot retrieve the extended statistics from a file or a TurboCap port"); + return NULL; + } + + if(PacketGetStatsEx(p->adapter, (struct bpf_stat*) (&p->md.stat) ) != TRUE){ + snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "PacketGetStatsEx error: %s", pcap_win32strerror()); + return NULL; + } + return (&p->md.stat); +} + + +pcap_send_queue* +pcap_sendqueue_alloc(u_int memsize) +{ + + pcap_send_queue *tqueue; + + /* Allocate the queue */ + tqueue = (pcap_send_queue*)malloc(sizeof(pcap_send_queue)); + if(tqueue == NULL){ + return NULL; + } + + /* Allocate the buffer */ + tqueue->buffer = (char*)malloc(memsize); + if(tqueue->buffer == NULL){ + free(tqueue); + return NULL; + } + + tqueue->maxlen = memsize; + tqueue->len = 0; + + return tqueue; +} + +void +pcap_sendqueue_destroy(pcap_send_queue* queue) +{ + free(queue->buffer); + free(queue); +} + +int +pcap_sendqueue_queue(pcap_send_queue* queue, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data) +{ + + if(queue->len + sizeof(struct pcap_pkthdr) + pkt_header->caplen > queue->maxlen){ + return -1; + } + + /* Copy the pcap_pkthdr header*/ + memcpy(queue->buffer + queue->len, pkt_header, sizeof(struct pcap_pkthdr)); + queue->len += sizeof(struct pcap_pkthdr); + + /* copy the packet */ + memcpy(queue->buffer + queue->len, pkt_data, pkt_header->caplen); + queue->len += pkt_header->caplen; + + return 0; +} + +u_int +pcap_sendqueue_transmit(pcap_t *p, pcap_send_queue* queue, int sync){ + + u_int res; + DWORD error; + int errlen; + + if (p->adapter==NULL) + { + sprintf(p->errbuf, "Cannot transmit a queue to an offline capture or to a TurboCap port"); + return 0; + } + + res = PacketSendPackets(p->adapter, + queue->buffer, + queue->len, + (BOOLEAN)sync); + + if(res != queue->len){ + error = GetLastError(); + FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,NULL,error,0,p->errbuf,PCAP_ERRBUF_SIZE,NULL); + /* + * "FormatMessage()" "helpfully" sticks CR/LF at the end of + * the message. Get rid of it. + */ + errlen = strlen(p->errbuf); + if (errlen >= 2) { + p->errbuf[errlen - 1] = '\0'; + p->errbuf[errlen - 2] = '\0'; + } + snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Error opening adapter: %s", p->errbuf); + } + + return res; +} + + +#ifdef WE_HAVE_TO_DELETE_IT_ASAP +int +pcap_next_ex(pcap_t *p, struct pcap_pkthdr **pkt_header, u_char **pkt_data) +{ + /* Check the capture type */ + +#ifdef HAVE_REMOTE + if (p->rmt_clientside) + { + /* We are on an remote capture */ + if (!p->rmt_capstarted) + { + // if the capture has not started yet, please start it + if (pcap_startcapture_remote(p) ) + return -1; + p->rmt_capstarted= 1; + } + return pcap_next_ex_remote(p, pkt_header, pkt_data); + } +#endif + + if (p->adapter!=NULL) + { + /* We are on a live capture */ + int cc; + int n = 0; + register u_char *bp, *ep; + + cc = p->cc; + if (p->cc == 0) + { + /* capture the packets */ + if(PacketReceivePacket(p->adapter, p->Packet, TRUE) == FALSE) + { + sprintf(p->errbuf, "read error: PacketReceivePacket failed"); + return (-1); + } + + cc = p->Packet->ulBytesReceived; + + bp = p->Packet->Buffer; + } + else + bp = p->bp; + + /* + * Loop through each packet. + */ + ep = bp + cc; + if (bp < ep) + { + register int caplen, hdrlen; + caplen = ((struct bpf_hdr *)bp)->bh_caplen; + hdrlen = ((struct bpf_hdr *)bp)->bh_hdrlen; + + /* + * XXX A bpf_hdr matches a pcap_pkthdr. + */ + *pkt_header = (struct pcap_pkthdr*)bp; + *pkt_data = bp + hdrlen; + bp += BPF_WORDALIGN(caplen + hdrlen); + + p->bp = bp; + p->cc = ep - bp; + return (1); + } + else{ + p->cc = 0; + return (0); + } + } + else + { + /* We are on an offline capture */ + struct bpf_insn *fcode = p->fcode.bf_insns; + int status; + int n = 0; + + struct pcap_pkthdr *h=(struct pcap_pkthdr*)(p->buffer+p->bufsize-sizeof(struct pcap_pkthdr)); + + while (1) + { + status = sf_next_packet(p, h, p->buffer, p->bufsize); + if (status==1) + /* EOF */ + return (-2); + if (status==-1) + /* Error */ + return (-1); + + if (fcode == NULL || + bpf_filter(fcode, p->buffer, h->len, h->caplen)) + { + *pkt_header = h; + *pkt_data = p->buffer; + return (1); + } + + } + } +} +#endif + + +int +pcap_setuserbuffer(pcap_t *p, int size) + +{ + unsigned char *new_buff; + + if (!p->adapter) { + sprintf(p->errbuf,"Impossible to set user buffer while reading from a file or on a TurboCap port"); + return -1; + } + + if (size<=0) { + /* Bogus parameter */ + sprintf(p->errbuf,"Error: invalid size %d",size); + return -1; + } + + /* Allocate the buffer */ + new_buff=(unsigned char*)malloc(sizeof(char)*size); + + if (!new_buff) { + sprintf(p->errbuf,"Error: not enough memory"); + return -1; + } + + free(p->buffer); + + p->buffer=new_buff; + p->bufsize=size; + + /* Associate the buffer with the capture packet */ + PacketInitPacket(p->Packet,(BYTE*)p->buffer,p->bufsize); + + return 0; + +} + +int +pcap_live_dump(pcap_t *p, char *filename, int maxsize, int maxpacks){ + + BOOLEAN res; + + if (p->adapter==NULL) + { + sprintf(p->errbuf, "live dump needs a physical interface supported by the NPF driver"); + return -1; + } + + /* Set the packet driver in dump mode */ + res = PacketSetMode(p->adapter, PACKET_MODE_DUMP); + if(res == FALSE){ + sprintf(p->errbuf, "Error setting dump mode"); + return -1; + } + + /* Set the name of the dump file */ + res = PacketSetDumpName(p->adapter, filename, strlen(filename)); + if(res == FALSE){ + sprintf(p->errbuf, "Error setting kernel dump file name"); + return -1; + } + + /* Set the limits of the dump file */ + res = PacketSetDumpLimits(p->adapter, maxsize, maxpacks); + + return 0; +} + +int +pcap_live_dump_ended(pcap_t *p, int sync){ + + if (p->adapter == NULL) + { + sprintf(p->errbuf, "wrong interface type. A physical interface supported by the NPF driver is needed"); + return -1; + } + + return PacketIsDumpEnded(p->adapter, (BOOLEAN)sync); + +} + +PAirpcapHandle pcap_get_airpcap_handle(pcap_t *p) +{ +#ifdef HAVE_AIRPCAP_API + if (p->adapter == NULL) + { + sprintf(p->errbuf, "wrong interface type. A physical interface is needed"); + return NULL; + } + + return PacketGetAirPcapHandle(p->adapter); +#else + return NULL; +#endif /* HAVE_AIRPCAP_API */ +} \ No newline at end of file diff --git a/dll/3rdparty/wpcap/Win32-Extensions/Win32-Extensions.h b/dll/3rdparty/wpcap/Win32-Extensions/Win32-Extensions.h new file mode 100644 index 0000000000000..ad3be25cfafe1 --- /dev/null +++ b/dll/3rdparty/wpcap/Win32-Extensions/Win32-Extensions.h @@ -0,0 +1,113 @@ +/* + * Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy) + * Copyright (c) 2005 - 2006 CACE Technologies, Davis (California) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the Politecnico di Torino, CACE Technologies + * nor the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifndef __WIN32_EXTENSIONS_H__ +#define __WIN32_EXTENSIONS_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +/* Definitions */ + +/*! + \brief A queue of raw packets that will be sent to the network with pcap_sendqueue_transmit(). +*/ +struct pcap_send_queue +{ + u_int maxlen; ///< Maximum size of the the queue, in bytes. This variable contains the size of the buffer field. + u_int len; ///< Current size of the queue, in bytes. + char *buffer; ///< Buffer containing the packets to be sent. +}; + +typedef struct pcap_send_queue pcap_send_queue; + +/*! + \brief This typedef is a support for the pcap_get_airpcap_handle() function +*/ +#if !defined(AIRPCAP_HANDLE__EAE405F5_0171_9592_B3C2_C19EC426AD34__DEFINED_) +#define AIRPCAP_HANDLE__EAE405F5_0171_9592_B3C2_C19EC426AD34__DEFINED_ +typedef struct _AirpcapHandle *PAirpcapHandle; +#endif + +#define BPF_MEM_EX_IMM 0xc0 +#define BPF_MEM_EX_IND 0xe0 + +/*used for ST*/ +#define BPF_MEM_EX 0xc0 +#define BPF_TME 0x08 + +#define BPF_LOOKUP 0x90 +#define BPF_EXECUTE 0xa0 +#define BPF_INIT 0xb0 +#define BPF_VALIDATE 0xc0 +#define BPF_SET_ACTIVE 0xd0 +#define BPF_RESET 0xe0 +#define BPF_SET_MEMORY 0x80 +#define BPF_GET_REGISTER_VALUE 0x70 +#define BPF_SET_REGISTER_VALUE 0x60 +#define BPF_SET_WORKING 0x50 +#define BPF_SET_ACTIVE_READ 0x40 +#define BPF_SET_AUTODELETION 0x30 +#define BPF_SEPARATION 0xff + +/* Prototypes */ +pcap_send_queue* pcap_sendqueue_alloc(u_int memsize); + +void pcap_sendqueue_destroy(pcap_send_queue* queue); + +int pcap_sendqueue_queue(pcap_send_queue* queue, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data); + +u_int pcap_sendqueue_transmit(pcap_t *p, pcap_send_queue* queue, int sync); + +HANDLE pcap_getevent(pcap_t *p); + +struct pcap_stat *pcap_stats_ex(pcap_t *p, int *pcap_stat_size); + +int pcap_setuserbuffer(pcap_t *p, int size); + +int pcap_live_dump(pcap_t *p, char *filename, int maxsize, int maxpacks); + +int pcap_live_dump_ended(pcap_t *p, int sync); + +int pcap_offline_filter(struct bpf_program *prog, const struct pcap_pkthdr *header, const u_char *pkt_data); + +int pcap_start_oem(char* err_str, int flags); + +PAirpcapHandle pcap_get_airpcap_handle(pcap_t *p); + +#ifdef __cplusplus +} +#endif + +#endif //__WIN32_EXTENSIONS_H__ diff --git a/dll/3rdparty/wpcap/Win32-Extensions/version.aps b/dll/3rdparty/wpcap/Win32-Extensions/version.aps new file mode 100644 index 0000000000000000000000000000000000000000..cf421007ac058deac1ddc34ac7a42f9b322b07e4 GIT binary patch literal 32508 zcmcJ236xyfS>CVl92N(XiQzyn=YZ@$G6RfU?^RWIl|5cwy`{TQRlS<3YPDJxt|Lnt zyMrtZl4d*xn;lL7L&6^R#rp=f@xI&O1)IeX%)WWW1{)i^07(wY_uu8+|K4}2hvX!! zBdPj+-`)5BzyDuEM91;>#tr=!AHAQ);kU2A-(A|L5&pk%cvYJ&t1E?e)8evyU(Ayd)-|p>$?swpSyJS@%J2Fy0E@}_2R{|20Z&@ zrkveByxdK1FYmj4@$$99E0?dGz4zi({&3>zd1P|=j<5{xP+52AmZl63Q6UeZs~4|b zx##Nnizl8)DCjzyFW0m3^lH5*m-XHvFW0BC$zDlGC!q&QJg=wIY*rY!*Xe-puYAI6 zwWude{7#2HPvXmiX=$T#>YqQIcXl}z*KUHmWP+o5wW_B82MSC*Fq<6!sT9&R$f#Zv<-!)EgOW_B?_;_o9Ta6k zTRvoq(m`1!wC#gUSvn}pga$sU3)4YqCNwnAs;(!i@qCF=qT>KO!T{CeV8mtbpcE6j zqY16E)q1*zI11|ld!(OBw@}Cc$fFFhJ1$Ce(|nTUr2;#H2|e0?%ki0VT^!7^DY}jG z>+~k{7ztM6)1^+dlTIizP&GkO#2B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yBTjPy?>d1z_jFlH+b)FQmfnr@;HXlbB?w(+ze!UW-JnD zdoI&uwC5%KFXsT!i*LqvY{UAPStXsuzq~f&7;}60vf~or_WQ;=x47^67KY;VMfV$D zuO2e~zdyWu{?a`cE*^iVwHANq=i|%3u>##+S(w2#@UAQz@kfq@w%cySvY+^S)VaNm z`W|)uo^$?YbH{0a&pG=YIQvM+Y5N^`FF1ERN^;t^`y+4)EV3@Iwp}~hq`%PPv~ALP nA2@yA=6!(s_hnE0KkHxa(@z~4r`@OAGmpXd&~F|`?Y{fp{xY$Q literal 0 HcmV?d00001 diff --git a/dll/3rdparty/wpcap/Win32-Extensions/version.rc b/dll/3rdparty/wpcap/Win32-Extensions/version.rc new file mode 100644 index 0000000000000..056db1061ae02 --- /dev/null +++ b/dll/3rdparty/wpcap/Win32-Extensions/version.rc @@ -0,0 +1,64 @@ +// Microsoft Visual C++ generated resource script. +// + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// Neutral resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU) +#ifdef _WIN32 +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "#include ""version.rc2""\r\n" + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + +#endif // Neutral resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// +#include "Version.rc2" + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/dll/3rdparty/wpcap/Win32-Extensions/version.rc2 b/dll/3rdparty/wpcap/Win32-Extensions/version.rc2 new file mode 100644 index 0000000000000..88e65859e6e11 --- /dev/null +++ b/dll/3rdparty/wpcap/Win32-Extensions/version.rc2 @@ -0,0 +1,45 @@ +// +// Version.rc2 - resources Microsoft Visual C++ does not edit directly +// + +#ifdef APSTUDIO_INVOKED + #error this file is not editable by Microsoft Visual C++ +#endif //APSTUDIO_INVOKED + + +#include "..\..\version.h" + +VS_VERSION_INFO VERSIONINFO + FILEVERSION WINPCAP_MAJOR,WINPCAP_MINOR,WINPCAP_REV,WINPCAP_BUILD + PRODUCTVERSION WINPCAP_MAJOR,WINPCAP_MINOR,WINPCAP_REV,WINPCAP_BUILD + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "000004b0" + BEGIN + VALUE "CompanyName", WINPCAP_COMPANY_NAME + VALUE "FileDescription", "wpcap.dll Dynamic Link Library - based on libpcap " WINPCAP_LIBPCAP_VERSION + VALUE "FileVersion", WINPCAP_VER_STRING + VALUE "InternalName", "wpcap.dll" + VALUE "LegalCopyright", WINPCAP_COPYRIGHT_STRING + VALUE "LegalTrademarks", "" + VALUE "OriginalFilename", "wpcap.dll" + VALUE "ProductName", WINPCAP_PRODUCT_NAME + VALUE "ProductVersion", WINPCAP_VER_STRING + VALUE "Build Description", WINPCAP_BUILD_DESCRIPTION + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0, 1200 + END +END diff --git a/dll/3rdparty/wpcap/libpcap b/dll/3rdparty/wpcap/libpcap new file mode 160000 index 0000000000000..f903a38432838 --- /dev/null +++ b/dll/3rdparty/wpcap/libpcap @@ -0,0 +1 @@ +Subproject commit f903a384328383fe71ffa25df60848f9c48ae266 diff --git a/dll/3rdparty/wpcap/version.h b/dll/3rdparty/wpcap/version.h new file mode 100644 index 0000000000000..16b0a97f99836 --- /dev/null +++ b/dll/3rdparty/wpcap/version.h @@ -0,0 +1,42 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Developer Studio generated include file. +// + +// 3.1.0.24 --> WinPcap 3.1 beta4 +// 3.1.0.27 --> WinPcap 3.1 RTM +// 3.2.0.29 --> WinPcap 3.2 alpha1 +// 4.0.0.374 --> WinPcap 4.0 alpha1 +// 4.0.0.592 --> WinPcap 4.0 beta1 +// 4.0.0.655 --> WinPcap 4.0 beta2 +// 4.0.0.703 --> WinPcap 4.0 beta3 +// 4.0.0.755 --> WinPcap 4.0 RTM +// 4.1.0.902 --> WinPcap 4.1 beta +// 4.1.0.1048 --> WinPcap 4.1 beta2 +// 4.1.0.1124 --> WinPcap 4.1 beta3 +// 4.1.0.1237 --> WinPcap 4.1 beta4 +// 4.1.0.1452 --> WinPcap 4.1 beta5 +// 4.1.0.1752 --> WinPcap 4.1 RTM +// 4.1.0.1753 --> WinPcap 4.1.1 RTM +// 4.1.0.2001 --> WinPcap 4.1.2 RTM +// 4.1.0.2980 --> WinPcap 4.1.3 RTM + +#define WINPCAP_MAJOR 4 +#define WINPCAP_MINOR 1 +#define WINPCAP_REV 0 +#define WINPCAP_BUILD 2980 +#define WINPCAP_VER_STRING "4.1.0.2980" +#define WINPCAP_PACKET9x_STRING_VERSION "4.1.3" +#define WINPCAP_WPCAP_STRING_VERSION "4.1.3" + +#define WINPCAP_COMPANY_NAME "Riverbed Technology, Inc." + +#define WINPCAP_PRODUCT_NAME "WinPcap" + +#define WINPCAP_COPYRIGHT_STRING "Copyright © 2010-2013 Riverbed Technology, Inc. Copyright © 2005-2010 CACE Technologies. Copyright © 1999-2005 NetGroup, Politecnico di Torino." +#define WINPCAP_WANPACKET_COPYRIGHT_STRING "Copyright © 2010-2013 Riverbed Technology, Inc. Copyright © 2005-2010 CACE Technologies. Copyright © 2003-2005 NetGroup, Politecnico di Torino." +#define WINPCAP_INSTALLERHELPER_COPYRIGHT_STRING "Copyright © 2010-2013 Riverbed Technology, Inc. Copyright © 2007-2010 CACE Technologies." +#define WINPCAP_RPCAPD_COPYRIGHT_STRING "Copyright © 2010-2013 Riverbed Technology, Inc. Copyright © 2005-2010 CACE Technologies. Copyright © 2003-2005 NetGroup, Politecnico di Torino." + +#define WINPCAP_BUILD_DESCRIPTION "" +#define WINPCAP_PRIVATE_BUILD "" +#define WINPCAP_LIBPCAP_VERSION "1.0rel0b branch (20091008)"