-
Notifications
You must be signed in to change notification settings - Fork 274
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
WinpkFilterDevice, losing packets? #555
Comments
please check usual suspects from https://stackoverflow.com/a/64287748/1438522 Also, if you are logging in the callback function, you will basically cause it to slow down (logging in the console is super slow), thus effectively making the driver have no choice but to drop packets. |
thx Ayoub, Vadim, the developer of WinpkFilter, mentioned: I recommend switching to Tunnel mode (SentTunnel | RecvTunnel) to ensure reliable packet capture. Don’t forget to re-inject the original packet back into the network stack after processing to maintain proper flow." and "The main difference between listening and tunnel modes lies in how they handle the original packet. In listening mode, you receive a copy of the packet while the original is forwarded (though if resources are limited, you may lose the copy). In tunnel mode, the original packet is dropped, requiring you to re-inject it. However, this ensures that no traffic bypasses you unnoticed." |
|
We are seeing packets in WireShark that do not make their way into our C# App.
Initializing code:
OnPacketCaptured-callback
WireShark log:
Our log:
as we can see
are not being captured. As we can also see between 232 (13:10:19.243528) and 233 (13:11:31.196865) there seems to no traffic. But should not be an issue for capturing?
Note:
Additional context;
the above software used to make use of SharpPcap/WinPcap. As of Win11 we noticed SharpPcap/WinPcap to become "unstable". Replacing WinPcap with npcap brought back the stability. But as npcap has very high license costs we now try to make use of SharpPcap/WinPkFilter
I am looking for advices to trackt this down even more. To me (see additional contex) it looks like npcap is "more stable" than WinPcap and/or WinPK/ndisapi ...
Thanks in advance
Clemens
The text was updated successfully, but these errors were encountered: