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:
@@ -110,6 +110,10 @@ struct in6_pktinfo {
|
|||||||
(IN6_IS_ADDR_MULTICAST(a) && __IPV6_ADDR_MC_SCOPE(a) \
|
(IN6_IS_ADDR_MULTICAST(a) && __IPV6_ADDR_MC_SCOPE(a) \
|
||||||
== __IPV6_ADDR_SCOPE_GLOBAL)
|
== __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 */
|
/* maximal length of the string representation of an IPv6 address */
|
||||||
#define INET6_ADDRSTRLEN 46
|
#define INET6_ADDRSTRLEN 46
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user