]> The Tcpdump Group git mirrors - libpcap/commit
NPF: handle ERROR_INVALID_FUNCTION from PacketGetTimestampModes().
authorGuy Harris <[email protected]>
Sat, 6 Nov 2021 22:15:08 +0000 (15:15 -0700)
committerGuy Harris <[email protected]>
Sun, 7 Nov 2021 00:06:06 +0000 (17:06 -0700)
commitec725d3211c28083d4993c3465a73fe58d7cce7a
tree3d79660b4f3a65e500c451951c4a00d6d568d26b
parent9df6bb2c1a64cae631c1f34edd1cb35b89e7d2b5
NPF: handle ERROR_INVALID_FUNCTION from PacketGetTimestampModes().

This is probably due to the driver that Packet.dll is using being a
driver for an older version of Npcap, or for WinPcap, so that the
BIOCGTIMESTAMPMODES DeviceIoControl is rejected as being unsupported.

Tell the user to try unindtalling Npcap - and WinPcap if it's installed
- and re-installing from npcap.org.

(cherry picked from commit 4ba0bf4f6f2f43107f62dd742b0d5e06422276a9)
pcap-npf.c