]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET]: Make AF_PACKET handle multiple network namespaces
authorDenis V. Lunev <den@openvz.org>
Tue, 20 Nov 2007 06:28:35 +0000 (22:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:54:26 +0000 (14:54 -0800)
commitd12d01d6b4d197115c4d7736172b5b1ec8b1eb71
tree480fc48e6ae404b59d2f62a7e3afc6ea88a5413c
parent4b3da706bbe4613d2fe4df8df4d965954ea98964
[NET]: Make AF_PACKET handle multiple network namespaces

This is done by making packet_sklist_lock and packet_sklist per
network namespace and adding an additional filter condition on
received packets to ensure they came from the proper network
namespace.

Changes from v1:
- prohibit to call inet_dgram_ops.ioctl in other than init_net

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/packet/af_packet.c