linux/net/mac80211
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
..
aes_ccm.c [NET]: DIV_ROUND_UP cleanup (part two) 2007-10-10 16:48:37 -07:00
aes_ccm.h
debugfs_key.c [MAC80211]: add interface index to key debugfs 2007-10-10 16:48:54 -07:00
debugfs_key.h
debugfs_netdev.c [MAC80211]: Remove bitfields from struct ieee80211_sub_if_data 2007-10-10 16:48:50 -07:00
debugfs_netdev.h
debugfs_sta.c [MAC80211]: remove fake set_key() call 2007-10-10 16:48:52 -07:00
debugfs_sta.h
debugfs.c [MAC80211]: remove unused ioctls (3) 2007-10-10 16:48:46 -07:00
debugfs.h
event.c [MAC80211]: refactor event sending 2007-10-10 16:48:47 -07:00
hostapd_ioctl.h [MAC80211]: remove hostapd interface stuff 2007-10-10 16:48:57 -07:00
ieee80211_cfg.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
ieee80211_cfg.h
ieee80211_common.h [MAC80211]: remove radar stuff 2007-10-10 16:48:43 -07:00
ieee80211_i.h [MAC80211]: rework key handling 2007-10-10 16:48:53 -07:00
ieee80211_iface.c [MAC80211]: rework key handling 2007-10-10 16:48:53 -07:00
ieee80211_ioctl.c [MAC80211]: clean up whitespace 2007-10-10 16:48:55 -07:00
ieee80211_key.h [MAC80211]: add interface index to key debugfs 2007-10-10 16:48:54 -07:00
ieee80211_led.c
ieee80211_led.h
ieee80211_rate.c [MAC80211]: move some rate control functions out of ieee80211.c 2007-10-10 16:47:35 -07:00
ieee80211_rate.h [MAC80211]: move some rate control functions out of ieee80211.c 2007-10-10 16:47:35 -07:00
ieee80211_sta.c [MAC80211]: make assoc_ap a flag 2007-10-10 16:48:58 -07:00
ieee80211.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
Kconfig
key.c [MAC80211]: rework key handling 2007-10-10 16:48:53 -07:00
Makefile [MAC80211]: refactor event sending 2007-10-10 16:48:47 -07:00
michael.c
michael.h
rc80211_simple.c [MAC80211]: remove unused ioctls (2) 2007-10-10 16:48:45 -07:00
regdomain.c [PATCH] mac80211: regdomain.c needs to include ieee80211_i.h 2007-07-17 21:50:20 -04:00
rx.c [MAC80211]: make assoc_ap a flag 2007-10-10 16:48:58 -07:00
sta_info.c [MAC80211]: rework key handling 2007-10-10 16:48:53 -07:00
sta_info.h [MAC80211]: make assoc_ap a flag 2007-10-10 16:48:58 -07:00
tkip.c [MAC80211]: embed key conf in key, fix driver interface 2007-10-10 16:48:51 -07:00
tkip.h
tx.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
util.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
wep.c [MAC80211]: embed key conf in key, fix driver interface 2007-10-10 16:48:51 -07:00
wep.h
wme.c [MAC80211]: clean up whitespace 2007-10-10 16:48:55 -07:00
wme.h [MAC80211]: move QoS rx handlers into rx.c 2007-10-10 16:47:30 -07:00
wpa.c [MAC80211]: clean up whitespace 2007-10-10 16:48:55 -07:00
wpa.h