fuchsia.net

Added: 7

STRUCTS

Ipv4Address

Defined in fuchsia.net/net.fidl

Ipv4Address is expressed in network byte order, so the most significant byte ("127" in the address "127.0.0.1") will be at index 0.

FieldTypeDescriptionDefault
addr uint8[4] No default

Ipv4AddressWithPrefix

Defined in fuchsia.net/net.fidl

An IPv4 address with its subnet prefix length.

FieldTypeDescriptionDefault
addr Ipv4Address

The IPv4 address.

No default
prefix_len uint8

The prefix length. Must be in the range [0, 32].

No default

Ipv4SocketAddress

Defined in fuchsia.net/socket.fidl

An IPv4 socket address, composed of an IPv4 address and a port.

Inspired by the address definition in the POSIX specification.

FieldTypeDescriptionDefault
address Ipv4Address

IPv4 Address.

No default
port uint16

Transport-layer port.

No default

Ipv6Address

Defined in fuchsia.net/net.fidl

Ipv6Address is expressed in network byte order, so the most significant byte ("ff" in the address "ff02::1") will be at index 0.

FieldTypeDescriptionDefault
addr uint8[16] No default

Ipv6AddressWithPrefix

Defined in fuchsia.net/net.fidl

An IPv6 address with its subnet prefix length.

FieldTypeDescriptionDefault
addr Ipv6Address

The IPv6 address.

No default
prefix_len uint8

The prefix length. Must be in the range [0, 128].

No default

Ipv6SocketAddress

Defined in fuchsia.net/socket.fidl

An IPV6 socket address, composed of an IPv6 address, a port, and a scope identifier.

Inspired by the address definition in the POSIX specification.

FieldTypeDescriptionDefault
address Ipv6Address

IPv6 Address.

No default
port uint16

Transport-layer port.

No default
zone_index InterfaceId

Provides a means to identify to which zone a non-global address belongs.

A node may have interfaces attached to different zones of the same scope, for example different link-local zones are disambiguated by the use of a zone_index providing the interface identifier.

zone_index 0 is the default zone.

See RFC 4007 for terminology and examples.

No default

MacAddress

Defined in fuchsia.net/net.fidl

A MAC address used to identify a network interface on the data link layer within the network.

FieldTypeDescriptionDefault
octets uint8[6] No default

Subnet

Defined in fuchsia.net/net.fidl

An IP address with its subnet prefix length.

FieldTypeDescriptionDefault
addr IpAddress

The IPv4 or IPv6 address.

No default
prefix_len uint8

The prefix length of the netmask. E.g. for 192.168.1.0/24, the prefix length is 24, corresponding to a netmask of 255.255.255.0. For Ipv4, prefix_len must be in the range [0, 32]. For Ipv6, prefix_len must be in the range [0, 128].

No default

ENUMS

IpVersion strict

Type: uint32

Defined in fuchsia.net/net.fidl

IpVersion is an IP version.

NameValueDescription
1
2

UNIONS

IpAddress strict

Defined in fuchsia.net/net.fidl

Represents an IP address that may be either v4 or v6.

OrdinalVariantTypeDescription
ipv4 Ipv4Address
ipv6 Ipv6Address

SocketAddress strict

Defined in fuchsia.net/socket.fidl

Represents an IP socket address that may be either v4 or v6.

OrdinalVariantTypeDescription
ipv4 Ipv4SocketAddress
ipv6 Ipv6SocketAddress

CONSTANTS

NameValueTypeDescription
MAX_HOSTNAME_SIZE 255 uint64

The maximum length of a hostname, as per RFC 1035 section 2.3.4.

ALIASES

NameValueDescription
Hostname string[MAX_HOSTNAME_SIZE]

A hostname.

Although the maximum length of a domain or hostname is 255 characters, each label within a name must not be longer than 63 characters as per RFC 1035 section 2.3.4. A label in a host name is the alphanumeric characters or hyphens, seperated by a period (e.g. abc.com has two labels, 'abc' and 'com').

InterfaceId uint64

A unique non-zero interface identifier.