Author: phoudoin Date: 2010-10-14 19:26:59 +0200 (Thu, 14 Oct 2010) New Revision: 38969 Changeset: http://dev.haiku-os.org/changeset/38969 Modified: haiku/trunk/headers/posix/netinet6/in6.h Log: Apply path by Roy Keene which add IN6_ARE_ADDR_EQUAL() macro specified in RFC 2292. Issue detected while porting Tcl. Thanks. Modified: haiku/trunk/headers/posix/netinet6/in6.h =================================================================== --- haiku/trunk/headers/posix/netinet6/in6.h 2010-10-13 21:06:09 UTC (rev 38968) +++ haiku/trunk/headers/posix/netinet6/in6.h 2010-10-14 17:26:59 UTC (rev 38969) @@ -110,6 +110,10 @@ (IN6_IS_ADDR_MULTICAST(a) && __IPV6_ADDR_MC_SCOPE(a) \ == __IPV6_ADDR_SCOPE_GLOBAL) +/* From RFC 2292 (Advanced Sockets API for IPv6) */ +#define IN6_ARE_ADDR_EQUAL(a, b) \ + (!memcmp((a)->s6_addr, (b)->s6_addr, sizeof(struct in6_addr))) + /* maximal length of the string representation of an IPv6 address */ #define INET6_ADDRSTRLEN 46