linux/net
Eric W. Biederman 6d34b1c27a [NET]: Initialize the network namespace of network devices.
Except for carefully selected pseudo devices all network
interfaces should start out in the initial network namespace.
Ultimately it will be register_netdev that examines what
dev->nd_net is set to and places a device in a network namespace.

This patch modifies alloc_netdev to initialize the network
namespace a device is in with the initial network namespace.
This gets it right for the vast majority of devices so their
drivers need not be modified and for those few pseudo devices
that need something different they can change this parameter
before calling register_netdevice.

The network namespace parameter on a network device is not
reference counted as the devices are inside of a network namespace
and cannot remain in that namespace past the lifetime of the
network namespace.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:49:07 -07:00
..
9p 9p: fix bad error path in conversion routines 2007-08-23 10:25:05 -05:00
802 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
8021q [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
appletalk [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
atm [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
ax25 [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
bluetooth [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
bridge [NET]: DIV_ROUND_UP cleanup (part two) 2007-10-10 16:48:37 -07:00
core [NET]: Initialize the network namespace of network devices. 2007-10-10 16:49:07 -07:00
dccp [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
decnet [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
econet [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
ethernet [NET] ethernet: optimize memcpy and memset 2007-10-10 16:48:26 -07:00
ieee80211 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
ipv4 [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
ipv6 [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
ipx [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
irda [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
iucv [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
key [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
lapb [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
llc [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
mac80211 [MAC80211]: make assoc_ap a flag 2007-10-10 16:48:58 -07:00
netfilter [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
netlabel [NetLabel]: add missing rcu_dereference() calls in the LSM domain mapping hash table 2007-08-07 17:53:10 -07:00
netlink [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
netrom [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
packet [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
rfkill [NET] RFKILL: Fix whitespace errors. 2007-07-19 10:44:38 +09:00
rose [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
rxrpc [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
sched [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
sctp [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
sunrpc [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
tipc [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
unix [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
wanrouter [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
wireless [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
x25 [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
xfrm [XFRM]: xfrm audit calls 2007-10-10 16:49:02 -07:00
Kconfig 9p: Reorganization of 9p file system code 2007-07-14 15:13:40 -05:00
Makefile 9p: Reorganization of 9p file system code 2007-07-14 15:13:40 -05:00
TUNABLE Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat.c O_CLOEXEC for SCM_RIGHTS 2007-07-16 09:05:45 -07:00
nonet.c [PATCH] Make most file operations structs in fs/ const 2006-03-28 09:16:06 -08:00
socket.c [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
sysctl_net.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00