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.
* Free and Size are now signed values, allowing negative Free space for brief moments. Size is capped at NPF_MAX_BUFFER_SIZE to avoid overflow * New internal stat, ResourceDropped, tracks drops due to allocation failures separately than drops due to lack of buffer space. Not reported via API, but may help diagnose memory dumps. * Refactored NPF_TapExForEachOpen to make loop conditions clearer, simplify code, and ensure all code paths increment the correct stats.
- Loading branch information
1 parent
68e49bc
commit 5abba5e
Showing
3 changed files
with
47 additions
and
50 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
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