#include <shibsp/util/IPRange.h>
Public Member Functions | |
IPRange (const std::bitset< 32 > &address, int maskSize) | |
Constructor. | |
IPRange (const std::bitset< 128 > &address, int maskSize) | |
Constructor. | |
bool | contains (const char *address) const |
Determines whether the given address is contained in the IP range. | |
bool | contains (const struct sockaddr *address) const |
Determines whether the given address is contained in the IP range. | |
Static Public Member Functions | |
static IPRange | parseCIDRBlock (const char *cidrBlock) |
Parses a CIDR block definition in to an IP range. |
|
Constructor.
|
|
Constructor.
|
|
Determines whether the given address is contained in the IP range.
|
|
Determines whether the given address is contained in the IP range.
|
|
Parses a CIDR block definition in to an IP range.
|