]> git.hungrycats.org Git - linux/commit
[TCP]: Show all SYN_RECV sockets in /proc/net/tcp
authorHerbert Xu <herbert@gondor.apan.org.au>
Tue, 5 Oct 2004 14:58:06 +0000 (07:58 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Tue, 5 Oct 2004 14:58:06 +0000 (07:58 -0700)
commita1b4d745f98b015a08f18ae9eabeeaac58ce8c00
tree641df3bbb5e1da832a71806173a4cd2ecd70d426
parent8756f2ef802e00ea8311a94fde3b29c1f731a9d7
[TCP]: Show all SYN_RECV sockets in /proc/net/tcp

I was fixing the tcp_diag so that it shows SYN_RECV sockets properly.
I found that /proc/net/tcp didn't do it correctly either.  So here is
a small patch to fix /proc/net/tcp.

The logic in there stinks though so I'd love to see a rewrite.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c