diff options
author | FX Le Bail <fx.lebail@yahoo.com> | 2014-01-19 17:00:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-22 01:53:23 +0100 |
commit | 446fab59333dea91e54688f033dd8d788d0486fb (patch) | |
tree | 150f6ac56310118cf633d7c26982940c0a4bd07a /net/ipv6/icmp.c | |
parent | tcp: delete redundant calls of tcp_mtup_init() (diff) | |
download | linux-446fab59333dea91e54688f033dd8d788d0486fb.tar.xz linux-446fab59333dea91e54688f033dd8d788d0486fb.zip |
ipv6: enable anycast addresses as source addresses in ICMPv6 error messages
- Uses ipv6_anycast_destination() in icmp6_send().
Suggested-by: Bill Fink <billfink@mindspring.com>
Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/ipv6/icmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 902405dc258c..f81f59686f21 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c @@ -413,7 +413,8 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info) */ addr_type = ipv6_addr_type(&hdr->daddr); - if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0)) + if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0) || + ipv6_anycast_destination(skb)) saddr = &hdr->daddr; /* |