Module routes

Source
Expand description

Types and utilities for dealing with routes.

Structs§

AddableEntry
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.
MarkMatchers
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.
ResolvedRoute
The resolved route to a destination IP address.
RouteResolveOptions
The options for RoutesApi::resolve_route api.
RoutingTableId
Identifier to a routing table.
Rule
A routing rule.
RuleMatcher
Contains traffic matchers for a given rule.
WrapBroadcastMarker
Wrapper struct to provide a convenient GenericOverIp impl for use with BroadcastIpExt::BroadcastMarker.

Enums§

AddRouteError
An error encountered when adding a routing entry.
AddableEntryEither
An IPv4 forwarding entry or an IPv6 forwarding entry.
AddableMetric
The metric for an AddableEntry.
BoundDeviceMatcher
Matcher for the bound device of locally generated traffic.
EntryEither
An IPv4 forwarding entry or an IPv6 forwarding entry.
MarkMatcher
A matcher to the socket mark.
Metric
The metric for an Entry.
NextHop
The next hop for a Destination.
RuleAction
The action part of a Rule.
TrafficOriginMatcher
Matches with PacketOrigin.

Type Aliases§

Marks
The 2 marks that can be attached to packets.
RoutableIpAddr
An IP Address that witnesses properties needed to be routed.