summaryrefslogtreecommitdiffstats
path: root/net/ipv6/exthdrs.c
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-01-11 07:44:40 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-29 00:01:46 +0100
commit389f661224cdbdf178553fb09a52dc6c8bf86890 (patch)
tree710be1af4fd9a1173d9c6eae6da126872f9fd25c /net/ipv6/exthdrs.c
parent[NETNS][IPV6]: inet6_addr - ipv6_get_ifaddr namespace aware (diff)
downloadlinux-389f661224cdbdf178553fb09a52dc6c8bf86890.tar.xz
linux-389f661224cdbdf178553fb09a52dc6c8bf86890.zip
[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 '')
-rw-r--r--net/ipv6/exthdrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index 2df34ed276f1..3cd1c993d52b 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -445,7 +445,7 @@ looped_back:
kfree_skb(skb);
return -1;
}
- if (!ipv6_chk_home_addr(addr)) {
+ if (!ipv6_chk_home_addr(&init_net, addr)) {
IP6_INC_STATS_BH(ip6_dst_idev(skb->dst),
IPSTATS_MIB_INADDRERRORS);
kfree_skb(skb);