From b2821e3f154692ca76ff1bc286fbdc3e5f7f3e08 Mon Sep 17 00:00:00 2001 From: Daniel Miller Date: Fri, 25 Sep 2020 17:05:40 -0500 Subject: [PATCH] Bump version and changelog for Npcap 1.00 release --- CHANGELOG.md | 5 +++++ packetWin7/npf/npf/Packet.c | 4 ++-- version.h | 9 +++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85bcece6..f40c2592 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ * After more than 7 years of development and 170 previous public releases, the Nmap Project is delighted to release Npcap version 1.00! +* New Packet.dll function `PacketGetTimestampModes()` to retrieve supported + packet timestamping modes. These do not currently vary by adapter, but + `TIMESTAMPMODE_QUERYSYSTEMTIME_PRECISE` is not supported on Windows 7, for + example. Fixes [#174](http://issues.npcap.org/174). + ## Npcap 0.9997 [2020-08-25] * Fix an integer underflow in the amount of free buffer space available leading diff --git a/packetWin7/npf/npf/Packet.c b/packetWin7/npf/npf/Packet.c index eae916d3..8761386c 100644 --- a/packetWin7/npf/npf/Packet.c +++ b/packetWin7/npf/npf/Packet.c @@ -650,9 +650,9 @@ NPF_registerLWF( pFChars->MajorNdisVersion = NDIS_FILTER_MAJOR_VERSION; pFChars->MinorNdisVersion = NDIS_FILTER_MINOR_VERSION; + // WINPCAP_MAJOR is 5 for Npcap pFChars->MajorDriverVersion = WINPCAP_MINOR; - /* TODO: Stop using minor version numbers greater than 255 */ - pFChars->MinorDriverVersion = WINPCAP_REV % MAXUCHAR; + pFChars->MinorDriverVersion = WINPCAP_REV; pFChars->Flags = 0; // Use different names for the WiFi driver. diff --git a/version.h b/version.h index 8213d09b..bdd6881d 100644 --- a/version.h +++ b/version.h @@ -85,13 +85,14 @@ #define /* !define /**/ WINPCAP_MAJOR 5 #define /* - !define /**/ WINPCAP_MINOR 0 + !define /**/ WINPCAP_MINOR 1 +/* WINPCAP_REV should be less than 256 to fit in UCHAR */ #define /* - !define /**/ WINPCAP_REV 9997 + !define /**/ WINPCAP_REV 0 #define /* - !define /**/ WINPCAP_BUILD 824 + !define /**/ WINPCAP_BUILD 924 #define /* - !define /**/ WINPCAP_VER_STRING "0.9997" + !define /**/ WINPCAP_VER_STRING "1.00" #define WINPCAP_WPCAP_STRING_VERSION WINPCAP_VER_STRING