embassy-net

Crates

git

Versions

default

Flavors

Skip to main content

Module route

Module route 

Source
Expand description

IP routing.

Routes is the routing table, accessed with Stack::routes.

Routes are keyed by a CIDR. On lookup most specific CIDR wins. Each route contains:

  • via
  • outgoing interface
  • optional expiry time.

On-link destinations (in the same network as one of the stack’s addresses) do not consult the table: the next hop is the destination itself.

Structs§

Route
A prefix of addresses that should be routed via a router, out of an interface.
Routes
A routing table, returned by Stack::routes.

Enums§

RouteError
Error returned by [Routes::add], [Routes::add_default_ipv4_route] and [Routes::add_default_ipv6_route].
RouteOrigin
Where a route came from.