Subject: [PATCH] nethost: ipv4/raw In proc only display the sockets for this host not for other From: Eric W. Biederman Date: 1134239330 -0700 hosts. --- net/ipv4/raw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 8163b3dffd3bbda77f3018f4192b92894b48b4fa diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 5d70aae..d0d10ba 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -780,7 +780,7 @@ static struct sock *raw_get_next(struct sk = sk_next(sk); try_again: ; - } while (sk && ((sk->sk_family != PF_INET) || (sk->sk_host == state->host))); + } while (sk && ((sk->sk_family != PF_INET) || (sk->sk_host != state->host))); if (!sk && ++state->bucket < RAWV4_HTABLE_SIZE) { sk = sk_head(&raw_v4_htable[state->bucket]); -- 1.0.GIT