]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8a8687aede2b35f35ac1b1434c27422f3f2e8691
tree810b0a18cee4d87c573274fdfd4a59fc624cfed2
parentb5f2ff3a9f43582ca4f78a16add79db7f92dd641
[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