(svn r15946) -Codechange: move netmask matching to NetworkAddress and add some support for IPv6 netmask matching.
This commit is contained in:
@@ -158,6 +158,14 @@ public:
|
||||
return this->address_length != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
||||
Reference in New Issue
Block a user