Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

FX Le Bail and committed by
David S. Miller
446fab59 4d83e177

+2 -1
+2 -1
net/ipv6/icmp.c
··· 413 413 */ 414 414 addr_type = ipv6_addr_type(&hdr->daddr); 415 415 416 - if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0)) 416 + if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0) || 417 + ipv6_anycast_destination(skb)) 417 418 saddr = &hdr->daddr; 418 419 419 420 /*