Adding CSubNet constructor over a single CNetAddr

This commit is contained in:
Jonas Schnelli
2015-06-29 20:37:22 +02:00
parent 409bccfbf5
commit 177a0e4914
4 changed files with 23 additions and 2 deletions

View File

@@ -118,6 +118,9 @@ class CSubNet
CSubNet();
explicit CSubNet(const std::string &strSubnet, bool fAllowLookup = false);
//constructor for single ip subnet (<ipv4>/32 or <ipv6>/128)
explicit CSubNet(const CNetAddr &addr);
bool Match(const CNetAddr &addr) const;
std::string ToString() const;