Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 446fab59 authored by FX Le Bail's avatar FX Le Bail Committed by David S. Miller
Browse files

ipv6: enable anycast addresses as source addresses in ICMPv6 error messages



- Uses ipv6_anycast_destination() in icmp6_send().

Suggested-by: default avatarBill Fink <billfink@mindspring.com>
Signed-off-by: default avatarFrancois-Xavier Le Bail <fx.lebail@yahoo.com>
Acked-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d83e177
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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);
	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;
		saddr = &hdr->daddr;


	/*
	/*