Divert
Divert copied to clipboard
WinDivertAddress memory mapping different in documentation than in code
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.
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.