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. - 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
Watcherrors. - 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.adminFIDL API. - Fidl
Rule IpExt - Observation extension for the rules part of
fuchsia.net.routesFIDL API.
Functions§
- add_
rule - Dispatches
add_ruleon either theRuleSetV4orRuleSetV6proxy. - authenticate_
for_ route_ table - Dispatches
authenticate_for_route_tableon either theRuleSetV4orRuleSetV6proxy. - close_
rule_ set - Dispatches
closeon either theRuleSetV4orRuleSetV6proxy. - collect_
rules_ until_ idle - Collects all
existingevents from the stream, stopping once theidleevent is observed. - get_
rule_ watcher - Dispatches either
GetRuleWatcherV4orGetRuleWatcherV6on the state proxy. - new_
rule_ set - Creates a new rule set for the rule table.
- remove_
rule - Dispatches
remove_ruleon either theRuleSetV4orRuleSetV6proxy. - 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
RuleEventstream by applying Hanging-Get watch. - watch
- Calls
Watch()on the providedRuleWatcherV4orRuleWatcherV6proxy.