Google is committed to advancing racial equity for Black communities. See how.

fuchsia.net.routes

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

NameTypeDescriptionDefault
result Resolved 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.

OrdinalNameTypeDescription
1 address fuchsia.net/IpAddress

The IP address of the destination.

2 mac fuchsia.net/MacAddress

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

3 interface_id fuchsia.net/interface_id

The interface identifier over which the destination can be reached.

UNIONS

Resolved

Defined in fuchsia.net.routes/routes.fidl

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.

NameTypeDescription
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

Defined in fuchsia.net.routes/routes.fidl

NameTypeDescription
response State_Resolve_Response
err zx/status