linux_old1/net/atm
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
..
Kconfig [ATM]: Trivial spelling fix patch for net/Kconfig 2005-07-19 13:56:53 -07:00
Makefile [ATM]: Kill ipcommon.[ch] 2006-12-02 21:32:08 -08:00
addr.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
addr.h [ATM]: add support for LECS addresses learned from network 2005-10-06 22:19:28 -07:00
atm_misc.c [ATM]: atm_pcr_goal() doesn't modify its argument's contents -- mark it as const 2005-11-29 16:13:55 -08:00
atm_sysfs.c [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
br2684.c [ATM]: Replace DPRINTK() with pr_debug(). 2007-10-10 16:48:27 -07:00
clip.c [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
common.c [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
common.h [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
ioctl.c [NET]: Introduce SIOCGSTAMPNS ioctl to get timestamps with nanosec resolution 2007-04-25 22:24:04 -07:00
lec.c [ATM]: Replace DPRINTK() with pr_debug(). 2007-10-10 16:48:27 -07:00
lec.h [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
lec_arpc.h [ATM]: [lec] add reference counting to lec_arp entries 2006-09-29 17:16:48 -07:00
mpc.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
mpc.h [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
mpoa_caches.c [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
mpoa_caches.h [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
mpoa_proc.c [NET]: Make all initialized struct seq_operations const. 2007-07-10 23:07:31 -07:00
pppoatm.c [ATM]: Replace DPRINTK() with pr_debug(). 2007-10-10 16:48:27 -07:00
proc.c [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
protocols.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pvc.c [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
raw.c [ATM]: Replace DPRINTK() with pr_debug(). 2007-10-10 16:48:27 -07:00
resources.c [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
resources.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
signaling.c [ATM]: Replace DPRINTK() with pr_debug(). 2007-10-10 16:48:27 -07:00
signaling.h [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
svc.c [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00