On Tue, 2008-09-23 at 16:47 -0400, James Carlson wrote: > For IPv6, it's quite a bit harder to check, because there are several > flavors of "bad" addresses. You'll probably want to exclude addresses > that match with any of these: > > IN6_IS_ADDR_UNSPECIFIED > IN6_IS_ADDR_LOOPBACK > IN6_IS_ADDR_MULTICAST > IN6_IS_ADDR_V4MAPPED > IN6_IS_ADDR_V4COMPAT > > You may also need to check for (and exclude) this, unless you happen > to know that the peer is on the *same* link: > > IN6_IS_ADDR_LINKLOCAL
Don't forget anycast addresses (IFF_ANYCAST). Those can't be used as source addresses. I believe one can configure anycast addresses for either IPv4 or IPv6, so this isn't an IPv6-specific issue. -Seb _______________________________________________ networking-discuss mailing list [email protected]
