diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-05-04 15:54:15 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-05-04 15:54:15 -0700 |
| commit | b8e46b835b2a7ff5908fa7ff1dac19d8c69785c9 (patch) | |
| tree | f019ef9640f2dc1e028da70264611d2319f1c326 /node/InetAddress.hpp | |
| parent | 0900fee5d9fa77f7d860d08db8863d0e96f68492 (diff) | |
| parent | 1f26cb98de307cd7838fa14c61bcf958a5a7bb1c (diff) | |
| download | infinitytier-b8e46b835b2a7ff5908fa7ff1dac19d8c69785c9.tar.gz infinitytier-b8e46b835b2a7ff5908fa7ff1dac19d8c69785c9.zip | |
Merge branch 'dev' of http://10.6.6.2/zerotier/ZeroTierOne into dev
Diffstat (limited to 'node/InetAddress.hpp')
| -rw-r--r-- | node/InetAddress.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node/InetAddress.hpp b/node/InetAddress.hpp index 0975a9cf..4cb9a4dc 100644 --- a/node/InetAddress.hpp +++ b/node/InetAddress.hpp @@ -355,6 +355,16 @@ struct InetAddress : public sockaddr_storage */ InetAddress network() const; +#ifdef ZT_SDK + /** + * Test whether this IPv6 prefix matches the prefix of a given IPv6 address + * + * @param addr Address to check + * @return True if this IPv6 prefix matches the prefix of a given IPv6 address + */ + bool isEqualPrefix(const InetAddress &addr) const; +#endif + /** * Test whether this IP/netmask contains this address * |
