-
Added a new function,
PacketGetInfo()
. This uses thePACKET_OID_DATA
structure to issue information requests to the Npcap driver. Currently defined requests areNPF_GETINFO_VERSION
,NPF_GETINFO_CONFIG
, andNPF_GETINFO_BPFEXT
. -
Using
PacketGetInfo()
withNPF_GETINFO_BPFEXT
allows user code to determine which BPF extensions are supported by the driver. The first extensions supported by the driver will beSKF_AD_VLAN_TAG
andSKF_AD_VLAN_TAG_PRESENT
, which have the same meanings as the Linux kernel's BPF extensions of the same names. -
Moved Npcap's BPF definitions to
npcap-bpf.h
and other definitions tonpcap-defs.h
to allow them to be used independently ofPacket32.h
. They are included byPacket32.h
, so there should be no need to change existing code.
- Restored
PacketLibraryVersion
export. It is still preferred to usePacketGetVersion()
-
Added SAL annotations to most function prototypes and several struct fields in
Packet32.h
-
The undocumented
char PacketLibraryVersion[]
export has been removed from Npcap 1.70 and later. ThePacketGetVersion()
function is the documented way to get the runtime version of the Packet.dll library. -
PacketGetNetType() now always sets the LinkSpeed field to 0. Many adapters did not support the OID that was being used to get the link speed, and libpcap (Npcap's published API) does not pass this information through, so there should be no impact on the majority of software. Software that needs link speed may use
pcap_oid_get_request()
orGetAdaptersAddresses()
to get the information.
-
Added this changelog.
-
Included wpcap.lib for ARM64.
-
Updated
Examples-pcap/pcap_filter
to show modern API usage withpcap_create()
andpcap_activate()
. -
Removed documentation and examples for the "kernel dump" feature of WinPcap, which has never been supported by Npcap and was disabled in WinPcap 3.1. The
Packet32.h
functions which supported this mode have been marked as deprecated.
-
Fix an issue with libpcap header files which required VS 2015 or later. This change was made to accommodate a few existing licensees. We strongly recommend using a currently-supported compiler version to build software with Npcap.
-
Added
const
qualifiers to input parameters for severalPacket32.h
functions.
-
ARM64 libs for Packet.dll added.
-
Updated documentation.
-
Updated libpcap headers to 1.10.1 from 1.9.1. See the libpcap CHANGES file and issue #276 for notable changes.
-
Added
Packet32.h
functions to set per-handle time source and precision. This supports libpcap functionpcap_set_tstamp_type()
on Npcap 1.20 and later.
Earlier changes not tracked.