Module rules

Source
Expand description

Extensions for route rules FIDL.

Structs§

InstalledRule
An installed IPv4 routing rule.
RuleIndex
The index of a rule within a provided rule set.
RuleMatcher
The matcher part of the rule that is used to match packets.
RuleSetPriority
The priority of the rule set, all rule sets are linearized based on this.

Enums§

CollectRulesUntilIdleError
Errors returned by collect_rules_until_idle.
InterfaceMatcher
How the interface of a packet should be matched against a rule.
MarkMatcher
A matcher to be used against the mark value.
RuleAction
Actions of a rule if the matcher matches.
RuleEvent
A rules watcher event.
RuleFidlConversionError
Conversion error for rule elements.
RuleSetCreationError
Rule set creation errors.
RuleSetRequest
GenericOverIp version of RuleSetV{4, 6}Request.
RuleTableRequest
GenericOverIp version of RouteTableV{4, 6}Request.
RuleWatchError
Route watcher Watch errors.
RuleWatcherRequest
The request for the rules watchers.

Constants§

DEFAULT_RULE_SET_PRIORITY
The priority for the default rule set, where the default rule that points to the main table lives.

Traits§

FidlRuleAdminIpExt
Admin extension for the rules part of fuchsia.net.routes.admin FIDL API.
FidlRuleIpExt
Observation extension for the rules part of fuchsia.net.routes FIDL API.

Functions§

add_rule
Dispatches add_rule on either the RuleSetV4 or RuleSetV6 proxy.
authenticate_for_route_table
Dispatches authenticate_for_route_table on either the RuleSetV4 or RuleSetV6 proxy.
close_rule_set
Dispatches close on either the RuleSetV4 or RuleSetV6 proxy.
collect_rules_until_idle
Collects all existing events from the stream, stopping once the idle event is observed.
get_rule_watcher
Dispatches either GetRuleWatcherV4 or GetRuleWatcherV6 on the state proxy.
new_rule_set
Creates a new rule set for the rule table.
remove_rule
Dispatches remove_rule on either the RuleSetV4 or RuleSetV6 proxy.
rule_event_stream_from_state
Creates a rules event stream from the state proxy.
rule_event_stream_from_watcher
Turns the provided watcher client into a RuleEvent stream by applying Hanging-Get watch.
watch
Calls Watch() on the provided RuleWatcherV4 or RuleWatcherV6 proxy.