Skip to content

QuantumGate::IPAddress::CreateMask

Karel Donk edited this page Dec 23, 2021 · 5 revisions

Creates an IP address mask given the CIDR leading bits.

Signature

static constexpr bool CreateMask(const IPAddress::Family af,
    UInt8 cidr_lbits, IPAddress& ipmask) noexcept;

Parameters

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.

Return values

Returns true if the operation succeeded, otherwise false. Upon successful completion the mask will be stored in the ipmask parameter.

Clone this wiki locally