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

WinDivertAddress memory mapping different in documentation than in code #256

Open
jgrossmann492 opened this issue Dec 9, 2020 · 1 comment

Comments

@jgrossmann492
Copy link

According to the documentation for windivert 2.2 at this link https://www.reqrypt.org/windivert-doc.html#divert_address, The WinDivertAddress struct uses a lot of UINT64 variables. However, in the github repo at https://github.com/basil00/Divert/blob/master/include/windivert.h, it shows a lot of UINT32 variables. I want to know which is correct.

@oriolarcas
Copy link

In the documentation the struct WINDIVERT_ADDRESS has a UINT64 field, a UINT64 bit-field and a union. In the code, the UINT64 bit-field is implemented using one UINT32 bit-field and one reserved UINT32 field.

It should be equivalent, and since it only affects a bit-field it should not matter.

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

No branches or pull requests

2 participants