]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: netlink support for moving devices between network namespaces.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 12 Sep 2007 11:57:04 +0000 (13:57 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:13 +0000 (16:49 -0700)
commit80254f791b57e19ccd2c241f4db9ff5ff0cbad2b
tree16401b29340732fa37de7899fc44db6b682e20d7
parent130a69fb6b6c26ac33a88f659e532cf44554fe3d
[NET]: netlink support for moving devices between network namespaces.

The simplest thing to implement is moving network devices between
namespaces.  However with the same attribute IFLA_NET_NS_PID we can
easily implement creating devices in the destination network
namespace as well.  However that is a little bit trickier so this
patch sticks to what is simple and easy.

A pid is used to identify a process that happens to be a member
of the network namespace we want to move the network device to.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_link.h
net/core/rtnetlink.c