InetAddressMask
GInetAddressMask
represents a range of IPv4 or IPv6 addresses described by a base address and a length indicating how many bits of the base address are relevant for matching purposes. These are often given in string form. For example, 10.0.0.0/8
, or fe80::/10
.
Skipped during bindings generation
method
to_string
: C function g_inet_address_mask_to_string is ignored
Since
2.32
Constructors
Creates a new #GInetAddressMask representing all addresses whose first @length bits match @addr.
Parses @mask_string as an IP address and (optional) length, and creates a new #GInetAddressMask. The length, if present, is delimited by a "/". If it is not present, then the length is assumed to be the full length of the address.
Properties
Functions
Tests if @mask and @mask2 are the same mask.
Gets @mask's base address
Gets the #GSocketFamily of @mask's address
Initializes the object implementing the interface.
Tests if @address falls within the range described by @mask.