aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-01-11 01:44:40 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:46 -0500
commit389f661224cdbdf178553fb09a52dc6c8bf86890 (patch)
tree710be1af4fd9a1173d9c6eae6da126872f9fd25c /include/net
parent1cab3da6be6c7659f62d0d297b389cc0e48b2178 (diff)
[NETNS][IPV6]: inet6_addr - make ipv6_chk_home_addr namespace aware
Looks if the address is belonging to the network namespace, otherwise discard the address for the check. 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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/addrconf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index 77f630f12806..8b1509bfc695 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -65,7 +65,8 @@ extern int ipv6_chk_addr(struct net *net,
65 int strict); 65 int strict);
66 66
67#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) 67#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE)
68extern int ipv6_chk_home_addr(struct in6_addr *addr); 68extern int ipv6_chk_home_addr(struct net *net,
69 struct in6_addr *addr);
69#endif 70#endif
70extern struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, 71extern struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net,
71 struct in6_addr *addr, 72 struct in6_addr *addr,