Skip to content

Commit

Permalink
Bump SDK version for PacketGetTimestampModes; read SDK version from v…
Browse files Browse the repository at this point in the history
…ersion.h. See nmap#240
  • Loading branch information
bonsaiviking committed Sep 28, 2020
1 parent bb9f4ac commit 0b2b547
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build_sdk.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@echo off
set SDKFILENAME=npcap-sdk-1.05.zip
for /F tokens^=3^,4^ delims^=^"^ ^ %%A in (version.h) do if "%%A" == "NPCAP_SDK_VERSION" set SDK_VER=%%B
if "%SDK_VER%" == "" goto :fail
set SDKFILENAME=npcap-sdk-%SDK_VER%.zip

if "%2"== "" ( rd /s/q ./npcap-sdk 2>nul >nul) else ( rd /s /q "%2" 2>nul >nul)

Expand Down
2 changes: 2 additions & 0 deletions version.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@
!define /**/ WINPCAP_BUILD 924
#define /*
!define /**/ WINPCAP_VER_STRING "1.00"
#define /*
!define /**/ NPCAP_SDK_VERSION "1.06"

#define WINPCAP_WPCAP_STRING_VERSION WINPCAP_VER_STRING

Expand Down

0 comments on commit 0b2b547

Please sign in to comment.