[TCPIP] Properly handle listening sockets
authorPierre Schweitzer <pierre@reactos.org>
Sun, 18 Nov 2018 19:51:54 +0000 (20:51 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 18 Nov 2018 19:51:54 +0000 (20:51 +0100)
commitf29016dabe924c5077ba507330210e2c2b093e2b
tree97af4b8d532eccd20fef1e34283e4df7e27763e6
parentd18b1fe24b933c3d214cbcd9c116d0bf094329fb
[TCPIP] Properly handle listening sockets

We first check if a socket is listening before
checking whether it has connections. This allows
properly returning listening address.
Furthermore, if it's listening, properly return
status so that it displays nice in netstat.

Result: https://twitter.com/HeisSpiter/status/1064245622323200000 :-)
drivers/network/tcpip/tcpip/ninfo.c