forked from nmap/npcap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track whether OID_GEN_CURRENT_PACKET_FILTER is allowed as query
WiFi adapters on Windows 10 and 11 return NDIS_STATUS_INVALID_OID for this query. Previously, this was ignored and we would probably set an empty packet filter on exit, but since we started checking return value, it led to inability to capture at all, since libpcap expects to be able to set the packet filter. No explanation so far for why WiFi adapters are different in this way, but if any adapter returns NDIS_STATUS_INVALID_OID, we will avoid sending it again in the future.
- Loading branch information
1 parent
9115d5f
commit 53a19f3
Showing
2 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters