class State
Defined at line 6722 of file fidling/gen/sdk/fidl/fuchsia.net.routes/fuchsia.net.routes/hlcpp/fuchsia/net/routes/cpp/fidl.h
Provides access to the system's routing state.
Public Members
static const char[] Name_
Public Methods
void ~State ()
void Resolve (::fuchsia::net::IpAddress destination, ResolveCallback callback)
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.
void Resolve2 (::fuchsia::net::IpAddress destination, ::fuchsia::net::routes::ResolveOptions options, Resolve2Callback callback)
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.
+ request `options` contains optional information used for the route resolution.
- response `result` contains the resolved route to `destination`.
* error `ADDRESS_UNREACHABLE` if `destination` can't be resolved.
void GetRouteTableName (uint32_t table_id, GetRouteTableNameCallback callback)
Gets the route table name by its ID.
+ request `table_id` the ID of the route table in question.
- response `table_name` the name of the route table, if the route table
does not have a name, an empty string is returned.
* error `NO_TABLE` if the route table does not exist.