Skip to content
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

Set FlagsAttribute on WinDivertPacketFlags #526

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

verdie-g
Copy link
Contributor

@verdie-g verdie-g commented Aug 21, 2024

var x = (WinDivertPacketFlags)167;
Console.WriteLine(x.ToString());

Before this change:

167

After this change

Sniffed, Outbound, Loopback, IPChecksum, UDPChecksum

This is particularly useful in a debugger.

Also, it fixes that ReSharper warning
image

@kayoub5 kayoub5 merged commit 9946c35 into dotpcap:master Aug 22, 2024
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants