[NETNS][IPV6]: inet6_addr - check ipv6 address per namespace
commitbfeade087005278fc8cafe230b7658a4f40c5acb
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 11 Jan 2008 06:43:18 +0000 (10 22:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:01:44 +0000 (28 15:01 -0800)
treed9bbacab07552cc6c33f9f022a34af2391d9ecc1
parent3c40090a0f5b69deecc5ca615f994957f949333d
[NETNS][IPV6]: inet6_addr - check ipv6 address per namespace

When a new address is added, we must check if the new address does not
already exists.  This patch makes this check to be aware of a network
namespace, so the check will look if the address already exists for
the specified network namespace. While the addresses are browsed, the
addresses which do not belong to the namespace are discarded.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/addrconf.h
net/ipv6/addrconf.c
net/ipv6/af_inet6.c
net/ipv6/anycast.c
net/ipv6/datagram.c
net/ipv6/icmp.c
net/ipv6/ip6_tunnel.c
net/ipv6/ndisc.c
net/ipv6/raw.c
net/sctp/ipv6.c