InetAddressMask
open class InetAddressMask(pointer: <Error class: unknown class><<Error class: unknown class>>) : Initable
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
.
Since
2.32
Constructors
Link copied to clipboard
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.
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)