netdev
[Top] [All Lists]

Re: [TCP] Show all SYN_RECV sockets in /proc/net/tcp

To: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [TCP] Show all SYN_RECV sockets in /proc/net/tcp
From: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Tue, 5 Oct 2004 22:18:36 -0700
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20041006020650.GA14583@gondor.apana.org.au>
References: <20041006020650.GA14583@gondor.apana.org.au>
Sender: netdev-bounce@xxxxxxxxxxx
On Wed, 6 Oct 2004 12:06:50 +1000
Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote:

> 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@xxxxxxxxxxxxxxxxxxx>

Patch applied, thanks.  And yes I agree this stuff could
be improved dramatically.

<Prev in Thread] Current Thread [Next in Thread>