class Subnet

Defined at line 219 of file fidling/gen/sdk/fidl/fuchsia.net/fuchsia.net/cpp/fidl/fuchsia.net/cpp/natural_types.h

An IP address with its subnet prefix length.

Public Methods

void Subnet (Storage_ storage)
void Subnet (::fuchsia_net::IpAddress addr, uint8_t prefix_len)
void Subnet ()

Default constructs a |Subnet| only if all of its members are default constructible.

Defined at line 230 of file fidling/gen/sdk/fidl/fuchsia.net/fuchsia.net/cpp/fidl/fuchsia.net/cpp/natural_types.h

void Subnet (Subnet && )

Defined at line 233 of file fidling/gen/sdk/fidl/fuchsia.net/fuchsia.net/cpp/fidl/fuchsia.net/cpp/natural_types.h

void Subnet (const Subnet & other)
Subnet & operator= (Subnet && )

Defined at line 234 of file fidling/gen/sdk/fidl/fuchsia.net/fuchsia.net/cpp/fidl/fuchsia.net/cpp/natural_types.h

Subnet & operator= (const Subnet & other)
bool operator== (const Subnet & other)
bool operator!= (const Subnet & other)
const ::fuchsia_net::IpAddress & addr ()

The IPv4 or IPv6 address.

::fuchsia_net::IpAddress & addr ()

The IPv4 or IPv6 address.

Subnet & addr (::fuchsia_net::IpAddress value)

The IPv4 or IPv6 address.

uint8_t prefix_len ()

The number of bits set to 1 in the subnet mask.

When [`addr`] is [`IpAddress.ipv4`], must be in the range `[0, 32]`.

When [`addr`] is [`IpAddress.ipv6`], must be in the range `[0, 128]`.

uint8_t & prefix_len ()

The number of bits set to 1 in the subnet mask.

When [`addr`] is [`IpAddress.ipv4`], must be in the range `[0, 32]`.

When [`addr`] is [`IpAddress.ipv6`], must be in the range `[0, 128]`.

Subnet & prefix_len (uint8_t value)

The number of bits set to 1 in the subnet mask.

When [`addr`] is [`IpAddress.ipv4`], must be in the range `[0, 32]`.

When [`addr`] is [`IpAddress.ipv6`], must be in the range `[0, 128]`.

void Subnet (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits