vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / kernel / network / protocols / ipv6 / ipv6_address.h
blob91641f2085556505c6abfda4d15e01c28151f15c
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
9 #include <netinet6/in6.h>
10 #include <string.h>
13 extern struct net_address_module_info gIPv6AddressModule;
16 #define NET_IPV6_MODULE_NAME "network/protocols/ipv6/v1"
19 static inline bool
20 operator==(const in6_addr &a1, const in6_addr &a2)
22 // TODO: optimize
23 return !memcmp(&a1, &a2, sizeof(in6_addr));
27 #endif // IPV6_ADDRESS_H