1 /* 2 * Copyright 2010, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef IPV6_ADDRESS_H 6 #define IPV6_ADDRESS_H 7 8 9 #include <netinet6/in6.h> 10 #include <string.h> 11 12 13 extern struct net_address_module_info gIPv6AddressModule; 14 15 16 #define NET_IPV6_MODULE_NAME "network/protocols/ipv6/v1" 17 18 19 static inline bool 20 operator==(const in6_addr &a1, const in6_addr &a2) 21 { 22 // TODO: optimize 23 return !memcmp(&a1, &a2, sizeof(in6_addr)); 24 } 25 26 27 #endif // IPV6_ADDRESS_H 28