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§
- Route
Error - Error returned by [
Routes::add], [Routes::add_default_ipv4_route] and [Routes::add_default_ipv6_route]. - Route
Origin - Where a route came from.