basil00 / Divert

WinDivert: Windows Packet Divert
https://reqrypt.org/windivert.html
Other
2.32k stars 491 forks source link

Why is addr.Socket.RemoteAddr UINT32[4] #336

Closed TsXor closed 12 months ago

TsXor commented 12 months ago

I think an IP is UINT32 and should be UINT8[4]. I don't know much and I need someone to explain how to convert this to a UINT32 IP.

TsXor commented 12 months ago

well, dig the doc... For IPv4, the Socket.LocalAddr and Socket.RemoteAddr fields will be IPv4-mapped IPv6 addresses.