-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve Application Verifier stops in libpcap (wpcap.dll) included with Npcap 1.79 #742
Comments
Unless packet.dll is doing WinSock stuff, which it doesn't appear to be doing, this is probably completely a libpcap issue; you probably can't just move this issue to our repository (as they belong to different top-level projects), and you may not want to do so anyway in order to track the fix getting into Npcap, but you should file a libpcap issue giving the above information. |
Thanks @guyharris. We always appreciate your support! I just created libpcap#1333 and we will update it as we discover more in our own testing/debugging of the issue. |
We were using WinSock for the htonl, htons, and getaddrinfo functions, but doing so caused problems related to failure to call WSACleanup(). Rather than adding that, we replaced these functions with UCRT and ntdll functions that avoid the need to call WSAStartup or WSACleanup.
We did have one issue in Packet.dll due to not calling WSACleanup(). Replacing the few WinSock utility functions we had been using with equivalent ntdll or UCRT functions was sufficient to resolve the issue. There is still a problem with wpcap.dll, so I'll put my notes on that upstream issue. |
What issue was that? |
Correction: Application Verifier issued Stop ID |
Npcap 1.80 includes the fix to Packet.dll as well as a change to wpcap.dll to resolve this issue. We opened a pull request with upstream libpcap containing this change: the-tcpdump-group/libpcap#1351 |
One of our Npcap OEM redistribution customers reported:
They are using Npcap 1.79 and sent us some sample code to reproduce. Since wpcap.dll code is 100% Libpcap, we need to work with them on a fix. We upgraded to Libpcap 1.10.4 in Npcap Version 1.74. The two stops are probably related and likely related to the order of calls to WSAStartup() and WSACleanup().
The text was updated successfully, but these errors were encountered: