Apply path by Roy Keene which add IN6_ARE_ADDR_EQUAL() macro specified in RFC 2292.

Issue detected while porting Tcl.
Thanks.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38969 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2010-10-14 17:26:59 +00:00
parent 01af3c69af
commit 7fab61455e
+4
View File
@@ -110,6 +110,10 @@ struct in6_pktinfo {
(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