]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit6213b0066041f33d1c300b78a062bf344a08b74d
tree245fe745220352a8757eb8cdff20c9ea59b45314
parent214ccc68ef27eccf674ef2c983b9f3c0a0f73057
[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