-
Notifications
You must be signed in to change notification settings - Fork 271
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
Packet manipulation with WinDivert #289
Comments
the value WINDIVERT_FLAG_SNIFF was chosen as default to have a simular behavior to winpcap (original driver of sharppcap) other values for the flags could be used as well. When you said that you failed, what kind of error did you run into? |
Thank you for your answer. Actually looks like I've found out the culprit of the issue. I was following these instructions which include setting The docs, however, state the following:
I unset all flags and now everything works as a charm. UDP: sorry, forgot to answer on what the actual error was. There was no error, just |
Looks like |
Hi!
I have tried to come up with a simple example of packet manipulation using WinDivert but failed miserably. At last I've noticed that during device opening there's a special flag being passed:
https://github.com/chmorgan/sharppcap/blob/774b7f03ded1abd2845ab09641faca1052b9b369/SharpPcap/WinDivert/WinDivertDevice.cs#L250
which is, according to the WinDivert source, is
This flag, according to WinDivert documentation,
So I wonder whether this is a deliberate limitation of SharpPcap or has it just not been implemented yet. If the latter is the case, I'd be happy to work on an implementation.
The text was updated successfully, but these errors were encountered: