aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-01-11 01:44:09 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:45 -0500
commit1cab3da6be6c7659f62d0d297b389cc0e48b2178 (patch)
treef5a3e8a21136322625cb61dcf94d3edfac5ab7d1 /include
parent06bfe655e7db7719c0eb51eb420fb9c2a6aa1e00 (diff)
[NETNS][IPV6]: inet6_addr - ipv6_get_ifaddr namespace aware
The inet6_addr_lst is browsed taking into account the network namespace specified as parameter. If an address does not belong to the specified namespace, it is ignored. 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')
-rw-r--r--include/net/addrconf.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index d1697b587a1a..77f630f12806 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -67,9 +67,11 @@ extern int ipv6_chk_addr(struct net *net,
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 in6_addr *addr);
69#endif 69#endif
70extern struct inet6_ifaddr * ipv6_get_ifaddr(struct in6_addr *addr, 70extern struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net,
71 struct net_device *dev, 71 struct in6_addr *addr,
72 int strict); 72 struct net_device *dev,
73 int strict);
74
73extern int ipv6_get_saddr(struct dst_entry *dst, 75extern int ipv6_get_saddr(struct dst_entry *dst,
74 struct in6_addr *daddr, 76 struct in6_addr *daddr,
75 struct in6_addr *saddr); 77 struct in6_addr *saddr);