Honoring Asian Pacific American Heritage Month. See how.

fuchsia.net.routes

Added: 7

PROTOCOLS

State

Defined in fuchsia.net.routes/routes.fidl

Provides access to the system's routing state.

Resolve

Resolves the route to a destination.

  • request destination the IP address to resolve a route to. If the unspecified address (all zeroes) is provided, the default route will be returned. The variant of destination determines variant of fuchsia.net/IpAddress fields in the resolved route.
  • response result contains the resolved route to destination.
  • error ZX_ERR_ADDRESS_UNREACHABLE if destination can't be resolved.

Request

NameType
destination fuchsia.net/IpAddress

Response

NameType
result State_Resolve_Result

STRUCTS

State_Resolve_Response

Defined in fuchsia.net.routes/routes.fidl

FieldTypeDescriptionDefault
result Resolved

A resolved route.

Contains the information for the "next-hop" or immediate-destination that is the result of a route resolution. A resolved route is only meaningful in the context of a requested destination.

No default

TABLES

Destination

Defined in fuchsia.net.routes/routes.fidl

Collection of addresses and identifiers describing a network destination.

A Destination is the "next-hop" for a routed packet.

OrdinalFieldTypeDescription
address fuchsia.net/IpAddress

The IP address of the destination.

mac fuchsia.net/MacAddress

The MAC address of the destination. Only set if the destination is on a link that requires a MAC address.

interface_id fuchsia.net/interface_id

The interface identifier over which the destination can be reached.

source_address fuchsia.net/IpAddress

The preferred local IP address used to communicate with the destination.

UNIONS

Resolved strict

Defined in fuchsia.net.routes/routes.fidl

OrdinalVariantTypeDescription
direct Destination

The requested destination is directly reachable.

gateway Destination

The requested destination is reachable through a gateway, thus the next hop is the gateway.

State_Resolve_Result strict

Defined in fuchsia.net.routes/routes.fidl

OrdinalVariantTypeDescription
response State_Resolve_Response
err zx/status