diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-01-11 01:44:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:45 -0500 |
commit | 1cab3da6be6c7659f62d0d297b389cc0e48b2178 (patch) | |
tree | f5a3e8a21136322625cb61dcf94d3edfac5ab7d1 /net/ipv6/ip6_output.c | |
parent | 06bfe655e7db7719c0eb51eb420fb9c2a6aa1e00 (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 'net/ipv6/ip6_output.c')
-rw-r--r-- | net/ipv6/ip6_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index ba7c8aaf2782..15c4f6cee3e6 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -936,7 +936,8 @@ static int ip6_dst_lookup_tail(struct sock *sk, | |||
936 | struct flowi fl_gw; | 936 | struct flowi fl_gw; |
937 | int redirect; | 937 | int redirect; |
938 | 938 | ||
939 | ifp = ipv6_get_ifaddr(&fl->fl6_src, (*dst)->dev, 1); | 939 | ifp = ipv6_get_ifaddr(&init_net, &fl->fl6_src, |
940 | (*dst)->dev, 1); | ||
940 | 941 | ||
941 | redirect = (ifp && ifp->flags & IFA_F_OPTIMISTIC); | 942 | redirect = (ifp && ifp->flags & IFA_F_OPTIMISTIC); |
942 | if (ifp) | 943 | if (ifp) |