-
Notifications
You must be signed in to change notification settings - Fork 23
QuantumGate::IPAddress::CreateMask
Karel Donk edited this page Dec 23, 2021
·
5 revisions
Creates an IP address mask given the CIDR leading bits.
static constexpr bool CreateMask(const IPAddress::Family af,
UInt8 cidr_lbits, IPAddress& ipmask) noexcept;
Name | Description |
---|---|
af |
The address family. See QuantumGate::IPAddress::Family for more details. |
cidr_lbits |
The number of CIDR leading bits in the mask. |
ipmask |
A QuantumGate::IPAddress object to store the mask in. |
Returns true
if the operation succeeded, otherwise false
. Upon successful completion the mask will be stored in the ipmask
parameter.