Commit de3ce7ba authored by Alexey Kuznetsov's avatar Alexey Kuznetsov Committed by Hideaki Yoshifuji

[TCP/IPV6]: Another anycast check.

parent 64fd39d9
......@@ -579,7 +579,7 @@ static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr,
addr_type = ipv6_addr_type(&usin->sin6_addr);
if(addr_type & IPV6_ADDR_MULTICAST)
if (addr_type & (IPV6_ADDR_ANYCAST | IPV6_ADDR_MULTICAST))
return -ENETUNREACH;
if (addr_type&IPV6_ADDR_LINKLOCAL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment