Expand description
Types and utilities for dealing with routes.
Structs§
- Addable
Entry AddableEntry
is a routing entry that may be used to add a new entry to the forwarding table.- Entry
- A forwarding entry.
- Generation
- Used to compare routes for how early they were added to the table.
- Mark
Matchers - The 2 mark matchers a rule can specify. All non-none markers must match.
- RawMetric
- The priority of a forwarding entry. Lower metrics are preferred.
- Resolved
Route - The resolved route to a destination IP address.
- Route
Resolve Options - The options for
RoutesApi::resolve_route
api. - Routing
Table Id - Identifier to a routing table.
- Rule
- A routing rule.
- Rule
Matcher - Contains traffic matchers for a given rule.
- Wrap
Broadcast Marker - Wrapper struct to provide a convenient
GenericOverIp
impl for use withBroadcastIpExt::BroadcastMarker
.
Enums§
- AddRoute
Error - An error encountered when adding a routing entry.
- Addable
Entry Either - An IPv4 forwarding entry or an IPv6 forwarding entry.
- Addable
Metric - The metric for an
AddableEntry
. - Bound
Device Matcher - Matcher for the bound device of locally generated traffic.
- Entry
Either - An IPv4 forwarding entry or an IPv6 forwarding entry.
- Mark
Matcher - A matcher to the socket mark.
- Metric
- The metric for an
Entry
. - NextHop
- The next hop for a
Destination
. - Rule
Action - The action part of a
Rule
. - Traffic
Origin Matcher - Matches with
PacketOrigin
.
Type Aliases§
- Marks
- The 2 marks that can be attached to packets.
- Routable
IpAddr - An IP Address that witnesses properties needed to be routed.