-
Upgraded libpcap to 1.10.6.
-
Renamed the
SKF_AD_*constants toNPCAP_AD_*to avoid confusion with code that may expect the same values or ordering as the constants defined by Linux. The old names are still conditionally defined for convenience. -
Defined additional modes for
PacketSetMode()/pcap_setmode():MODE_SENDTORXandMODE_SENDTORX_CLEARto enable and disable the SendToRx feature independent of systemwide Registry setting. Requires Npcap 1.83 driver or later. -
Enable nanosecond-precision timestamps on a packet handle using
PACKET_MODE_NANOwithPacketSetMode(). Requires Npcap 1.83 driver or later. -
Added new constants for
PacketGetInfo():NPF_GETINFO_MODESreturns supported mode bits forPacketSetMode().NPF_GETINFO_STATSretrieves performance statistics for the filter module.NPF_GETINFO_MODDBGgets internal debugging info unique to a filter module. These require Npcap 1.84 driver or later.
-
Added a new function,
PacketGetInfo(). This uses thePACKET_OID_DATAstructure to issue information requests to the Npcap driver. Currently defined requests areNPF_GETINFO_VERSION,NPF_GETINFO_CONFIG, andNPF_GETINFO_BPFEXT. -
Using
PacketGetInfo()withNPF_GETINFO_BPFEXTallows user code to determine which BPF extensions are supported by the driver. The first extensions supported by the driver will beSKF_AD_VLAN_TAGandSKF_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.hand other definitions tonpcap-defs.hto allow them to be used independently ofPacket32.h. They are included byPacket32.h, so there should be no need to change existing code.
- Restored
PacketLibraryVersionexport. 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_filterto 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.hfunctions 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
constqualifiers to input parameters for severalPacket32.hfunctions.
-
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.hfunctions 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.