Skip to content

QuantumGate::IPAddress::CreateMask

Karel Donk edited this page Sep 19, 2018 · 5 revisions

Creates an IP address mask given the CIDR leading bits.

Signature

static const bool CreateMask(const IPAddressFamily af,
    UInt8 cidr_lbits, IPAddress& ipaddr) noexcept;

Parameters

Name Description
af The address family. See QuantumGate::IPAddressFamily for more details.
cidr_lbits The number of CIDR leading bits in the mask.
ipaddr 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 ipaddr parameter.

Clone this wiki locally