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>
This commit is contained in:
parent
4d83e17730
commit
446fab5933
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue