basil00 / Divert

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

sys: windivert_get_ipv4_addr() can not get ip data as the value.type is 16 #333

Closed bronze1man closed 1 year ago

bronze1man commented 1 year ago

sys: windivert_get_ipv4_addr can not get ip data as the value.type is 16. I use dbgViewer to find out that the value.type is 16 not 3 (FWP_UINT32)

tested in callback windivert_resource_assignment_v4_classify in win10 x64 1903 18362.30

I am trying add another functional into windivert.sys

bronze1man commented 1 year ago

I am wrong. FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_IP_LOCAL_ADDRESS.value.type is 0. FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_LOCAL_ADDRESS.value.type is 16