diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-01-11 14:30:24 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-01-11 14:30:24 -0800 |
| commit | ba9fcb31d06e31f4b31a114093aee93054eb931a (patch) | |
| tree | dbc36d5a3a3f2442dc6dcb9e26500f5c0bf825b1 /node/InetAddress.hpp | |
| parent | 78c0f0a443919d8f214486f188c6e83a8af15fef (diff) | |
| parent | b3e3d4cacca37a4850e4e1a91fb8c42a5b13cb26 (diff) | |
| download | infinitytier-ba9fcb31d06e31f4b31a114093aee93054eb931a.tar.gz infinitytier-ba9fcb31d06e31f4b31a114093aee93054eb931a.zip | |
Merge branch 'dev' into edge
Diffstat (limited to 'node/InetAddress.hpp')
| -rw-r--r-- | node/InetAddress.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node/InetAddress.hpp b/node/InetAddress.hpp index 2573e694..201271f7 100644 --- a/node/InetAddress.hpp +++ b/node/InetAddress.hpp @@ -326,6 +326,14 @@ struct InetAddress : public sockaddr_storage InetAddress network() const; /** + * Test whether this IP/netmask contains this address + * + * @param addr Address to check + * @return True if this IP/netmask (route) contains this address + */ + bool containsAddress(const InetAddress &addr) const; + + /** * @return True if this is an IPv4 address */ inline bool isV4() const throw() { return (ss_family == AF_INET); } |
