[NETNS][RAW]: Make ipv[46] raw sockets lookup namespaces aware.
authorPavel Emelyanov <xemul@openvz.org>
Mon, 14 Jan 2008 13:35:31 +0000 (05:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:02:05 +0000 (15:02 -0800)
This requires just to pass the appropriate struct net pointer
into __raw_v[46]_lookup and skip sockets that do not belong
to a needed namespace.

The proper net is get from skb->dev in all the cases.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/raw.c
net/ipv6/raw.c

diff --cc net/ipv4/raw.c
Simple merge
diff --cc net/ipv6/raw.c
Simple merge