[NETNS]: Add netns parameter to inet_(dev_)add_type.
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 10 Jan 2008 11:25:28 +0000 (03:25 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:01:27 +0000 (15:01 -0800)
commit6b175b26c1048d331508940ad3516ead1998084f
tree810b0a18cee4d87c573274fdfd4a59fc624cfed2
parent8ad4942cd5bdad4143f7aa1d1bd4f7b2526c19c5
[NETNS]: Add netns parameter to inet_(dev_)add_type.

The patch extends the inet_addr_type and inet_dev_addr_type with the
network namespace pointer. That allows to access the different tables
relatively to the network namespace.

The modification of the signature function is reported in all the
callers of the inet_addr_type using the pointer to the well known
init_net.

Acked-by: Benjamin Thery <benjamin.thery@bull.net>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 files changed:
drivers/s390/net/qeth_main.c
include/net/route.h
net/atm/clip.c
net/ipv4/af_inet.c
net/ipv4/arp.c
net/ipv4/fib_frontend.c
net/ipv4/fib_semantics.c
net/ipv4/icmp.c
net/ipv4/ip_options.c
net/ipv4/ipvs/ip_vs_core.c
net/ipv4/ipvs/ip_vs_ctl.c
net/ipv4/netfilter.c
net/ipv4/netfilter/ipt_addrtype.c
net/ipv4/raw.c
net/ipv4/route.c
net/ipv6/af_inet6.c
net/sctp/protocol.c