Constructors
Declared in <netaddress.h>
Construct an invalid subnet (empty, Match() always returns false).
CSubNet();
» more...
Construct a single-host subnet.
explicit
CSubNet(CNetAddr const& addr);
» more...
Construct from a given network start and number of bits (CIDR mask).
CSubNet(
CNetAddr const& addr,
uint8_t mask);
» more...
Construct from a given network start and mask.
CSubNet(
CNetAddr const& addr,
CNetAddr const& mask);
» more...
| Name | Description |
|---|---|
| addr [in] | The sole address to be contained in the subnet, can also be non-IPv[46]. |
| mask [in] | CIDR mask, must be in [0, 32]for IPv4 addresses and in [0, 128]for IPv6 addresses. Otherwise an invalid subnet is created. |