Expand description
Extensions for route rules FIDL.
Structs§
- Installed
Rule - An installed IPv4 routing rule.
- Rule
Index - The index of a rule within a provided rule set.
- Rule
Matcher - The matcher part of the rule that is used to match packets.
- Rule
SetPriority - The priority of the rule set, all rule sets are linearized based on this.
Enums§
- Collect
Rules Until Idle Error - Errors returned by
collect_rules_until_idle
. - Interface
Matcher - How the interface of a packet should be matched against a rule.
- Mark
Matcher - A matcher to be used against the mark value.
- Rule
Action - Actions of a rule if the matcher matches.
- Rule
Event - A rules watcher event.
- Rule
Fidl Conversion Error - Conversion error for rule elements.
- Rule
SetCreation Error - Rule set creation errors.
- Rule
SetRequest - GenericOverIp version of RuleSetV{4, 6}Request.
- Rule
Table Request - GenericOverIp version of RouteTableV{4, 6}Request.
- Rule
Watch Error - Route watcher
Watch
errors. - Rule
Watcher Request - 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§
- Fidl
Rule Admin IpExt - Admin extension for the rules part of
fuchsia.net.routes.admin
FIDL API. - Fidl
Rule IpExt - Observation extension for the rules part of
fuchsia.net.routes
FIDL API.
Functions§
- add_
rule - Dispatches
add_rule
on either theRuleSetV4
orRuleSetV6
proxy. - authenticate_
for_ route_ table - Dispatches
authenticate_for_route_table
on either theRuleSetV4
orRuleSetV6
proxy. - close_
rule_ set - Dispatches
close
on either theRuleSetV4
orRuleSetV6
proxy. - collect_
rules_ until_ idle - Collects all
existing
events from the stream, stopping once theidle
event is observed. - get_
rule_ watcher - Dispatches either
GetRuleWatcherV4
orGetRuleWatcherV6
on the state proxy. - new_
rule_ set - Creates a new rule set for the rule table.
- remove_
rule - Dispatches
remove_rule
on either theRuleSetV4
orRuleSetV6
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 providedRuleWatcherV4
orRuleWatcherV6
proxy.