[IPV6]: ipv6_addr_type() doesn't know about RFC4193 addresses.
authorDave Johnson <djohnson@sw.starentnetworks.com>
Tue, 31 Jul 2007 00:19:31 +0000 (17:19 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 31 Jul 2007 09:28:21 +0000 (02:28 -0700)
commitc61a7d10efbd187ab9bb54871238ebd1dfcacd44
tree287c054f014d36394551fb26517da5dd8beaa938
parent0773192b0f8914222cd27e682c49f978a6c7860a
[IPV6]: ipv6_addr_type() doesn't know about RFC4193 addresses.

ipv6_addr_type() doesn't check for 'Unique Local IPv6 Unicast
Addresses' (RFC4193) and returns IPV6_ADDR_RESERVED for that range.

SCTP uses this function and will fail bind() and connect() calls that
use RFC4193 addresses, SCTP will also ignore inbound connections from
RFC4193 addresses if listening on IPV6_ADDR_ANY.

There may be other users of ipv6_addr_type() that could also have
problems.

Signed-off-by: Dave Johnson <djohnson@sw.starentnetworks.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf_core.c