diff options
Diffstat (limited to 'src/network/core/address.h')
-rw-r--r-- | src/network/core/address.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/core/address.h b/src/network/core/address.h index 2b5f7444f..f972a0397 100644 --- a/src/network/core/address.h +++ b/src/network/core/address.h @@ -159,6 +159,14 @@ public: } /** + * Checks whether this IP address is contained by the given netmask. + * @param netmask the netmask in CIDR notation to test against. + * @note netmask without /n assumes all bits need to match. + * @return true if this IP is within the netmask. + */ + bool IsInNetmask(char *netmask); + + /** * Compare the address of this class with the address of another. * @param address the other address. */ |