[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)
commitbe185884b31093555dc10aa32efe0b73c835312e
tree245fe745220352a8757eb8cdff20c9ea59b45314
parent8d96544475b236a0f319e492f4828aa8c0801c7f
[NETNS][RAW]: Make ipv[46] raw sockets lookup namespaces aware.

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