Closed BigPino67 closed 8 months ago
Haha. I deleted my last comment. You and I both failed to read the docs for dwLocaPort
:
The port number of the UDP endpoint on the local computer. This member is stored in network byte order.
In the next 4.0 release, I've added a new property called dwHostLocalPort that puts dwLocalPort in host order.
@dahall Following the newest release (v.4.0.1), MIB_UDP6TABLE_OWNER_PID and MIB_UDPTABLE_OWNER_MODULE does not have any properties calleddwHostLocalPort. Is it normal?
Thanks for the callout to make all the structures consistent. This is done for 4.0.2
Describe the bug and how to reproduce
PInvoke.IpHlpApi.GetExtendedUdpTable give wrong port when compared to the windows command "netstat -ano"
What code is involved
Expected behavior
I expect that "netstat -ano" give the same results as PInvoke.IpHlpApi.GetExtendedUdpTable. It's not the case here : Netstat port : 56359 PInvoke.IpHlpApi.GetExtendedUdpTable : 10204
Screenshots
"Netstat -ano" results :
PInvoke.IpHlpApi.GetExtendedUdpTable results :