netdev
[Top] [All Lists]

Re: Check connect address in NETLINK

To: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Subject: Re: Check connect address in NETLINK
From: Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>
Date: Wed, 30 Jun 2004 16:00:45 +0400
Cc: "David S. Miller" <davem@xxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20040630112751.GA31160@gondor.apana.org.au>
References: <20040628231439.GA3021@gondor.apana.org.au> <20040629082252.GA26866@ms2.inr.ac.ru> <20040629084552.GA6202@gondor.apana.org.au> <20040629111433.GA28463@ms2.inr.ac.ru> <20040629111833.GA22880@gondor.apana.org.au> <20040630112751.GA31160@gondor.apana.org.au>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
Hello!

> +     if (sock->sk_socket->state == SS_CONNECTED &&
> +         nlk->dst_pid != nlk_sk(ssk)->pid) {

No-no-no! sock->sk_socket can be NULL at this point.

You can use sock->sk_state =  TCP_ESTABLISHED, forxample.

Alexey

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