[TCPIP] When enumerating sockets, retrieve their state and return it

This fixes netstat not having any state when enumerating connections.
Basically, now, our netstat produces stuff like:
https://twitter.com/HeisSpiter/status/1065871999266955264
This commit is contained in:
Pierre Schweitzer 2018-11-23 22:49:53 +01:00
parent 738f327668
commit 91b013d387
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 6 additions and 1 deletions

View file

@ -216,3 +216,5 @@ VOID CompleteBucket(PCONNECTION_ENDPOINT Connection, PTDI_BUCKET Bucket, const B
void
LibTCPDumpPcb(PVOID SocketContext);
NTSTATUS TCPGetSocketStatus(PCONNECTION_ENDPOINT Connection, PULONG State);