linux/net/ipv6
Eric W. Biederman 881d966b48 [NET]: Make the device list and device lookups per namespace.
This patch makes most of the generic device layer network
namespace safe.  This patch makes dev_base_head a
network namespace variable, and then it picks up
a few associated variables.  The functions:
dev_getbyhwaddr
dev_getfirsthwbytype
dev_get_by_flags
dev_get_by_name
__dev_get_by_name
dev_get_by_index
__dev_get_by_index
dev_ioctl
dev_ethtool
dev_load
wireless_process_ioctl

were modified to take a network namespace argument, and
deal with it.

vlan_ioctl_set and brioctl_set were modified so their
hooks will receive a network namespace argument.

So basically anthing in the core of the network stack that was
affected to by the change of dev_base was modified to handle
multiple network namespaces.  The rest of the network stack was
simply modified to explicitly use &init_net the initial network
namespace.  This can be fixed when those components of the network
stack are modified to handle multiple network namespaces.

For now the ifindex generator is left global.

Fundametally ifindex numbers are per namespace, or else
we will have corner case problems with migration when
we get that far.

At the same time there are assumptions in the network stack
that the ifindex of a network device won't change.  Making
the ifindex number global seems a good compromise until
the network stack can cope with ifindex changes when
you change namespaces, and the like.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:49:10 -07:00
..
netfilter [NET]: Support multiple network namespaces with netlink 2007-10-10 16:49:09 -07:00
addrconf_core.c [IPV6]: ipv6_addr_type() doesn't know about RFC4193 addresses. 2007-07-31 02:28:21 -07:00
addrconf.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
af_inet6.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
ah6.c [XFRM]: Add module alias for transformation type. 2007-07-10 22:15:43 -07:00
anycast.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
datagram.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
esp6.c [XFRM]: Add module alias for transformation type. 2007-07-10 22:15:43 -07:00
exthdrs_core.c
exthdrs.c [IPV6]: Do not send RH0 anymore. 2007-07-10 22:55:49 -07:00
fib6_rules.c
icmp.c [IPV6]: MSG_ERRQUEUE messages do not pass to connected raw sockets 2007-07-14 23:53:08 -07:00
inet6_connection_sock.c [IPV6] XFRM: Fix connected socket to use transformation. 2007-10-10 16:48:32 -07:00
inet6_hashtables.c
ip6_fib.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
ip6_flowlabel.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
ip6_input.c [NET]: Make packet reception network namespace safe 2007-10-10 16:49:08 -07:00
ip6_output.c [IPV6] IPSEC: Omit redirect for tunnelled packet. 2007-10-10 16:48:33 -07:00
ip6_tunnel.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
ipcomp6.c [IPV6]: Remove unneeded pointer iph from ipcomp6_input() in net/ipv6/ipcomp6.c 2007-10-10 16:48:58 -07:00
ipv6_sockglue.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
Kconfig
Makefile
mcast.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
mip6.c [XFRM]: Add module alias for transformation type. 2007-07-10 22:15:43 -07:00
ndisc.c [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
netfilter.c
proc.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
protocol.c
raw.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
reassembly.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
route.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
sit.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
sysctl_net_ipv6.c
tcp_ipv6.c [IPV6]: Add v4mapped address inline 2007-10-10 16:48:32 -07:00
tunnel6.c
udp_impl.h
udp.c [IPV6]: Add v4mapped address inline 2007-10-10 16:48:32 -07:00
udplite.c
xfrm6_input.c
xfrm6_mode_beet.c
xfrm6_mode_ro.c
xfrm6_mode_transport.c
xfrm6_mode_tunnel.c
xfrm6_output.c
xfrm6_policy.c
xfrm6_state.c
xfrm6_tunnel.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00