pub enum DeviceRouteRequest {
RegisterOnMeshPrefix {
prefix: OnMeshPrefix,
responder: DeviceRouteRegisterOnMeshPrefixResponder,
},
UnregisterOnMeshPrefix {
subnet: Ipv6AddressWithPrefix,
responder: DeviceRouteUnregisterOnMeshPrefixResponder,
},
RegisterExternalRoute {
external_route: ExternalRoute,
responder: DeviceRouteRegisterExternalRouteResponder,
},
UnregisterExternalRoute {
subnet: Ipv6AddressWithPrefix,
responder: DeviceRouteUnregisterExternalRouteResponder,
},
}
Expand description
LoWPAN protocol for IPv6 route and prefix management methods that do not expose PII.
Note that methods that deal with PII are located in the
DeviceRouteExtra
protocol.
Variants§
RegisterOnMeshPrefix
Registers an on-mesh prefix to be advertised on the current network.
Subsequent calls with the same value for the subnet
field will
update the properties associated with that on-mesh prefix.
These changes persist like adding an IP address would, and will stick around until explicitly removed or the interface component is reset/restarted.
If the given OnMeshPrefix
structure is invalid for some reason
(missing required fields, invalid values, etc), the channel will be
closed with the epitaph ZX_ERR_INVALID_ARGS
.
If registering a new on-mesh prefix and the maximum number of
on-mesh prefixes has already been registered, this channel will
be closed with the epitaph ZX_ERR_NO_RESOURCES
.
UnregisterOnMeshPrefix
Unregisters any on-mesh prefix that was previously registered with
RegisterOnMeshPrefix
. It returns once the on-mesh prefix has
been removed locally.
If the given mesh prefix was not previously registered, no action is taken.
RegisterExternalRoute
Registers an external route to be advertised on the current network.
Subsequent calls with the same value for the subnet
field will
update the properties associated with that route.
These changes persist like adding an IP address would, and will stick around until explicitly removed or the interface component is reset/restarted.
If the given ExternalRoute
structure is invalid for some reason
(missing required fields, invalid values, etc), the channel will be
closed with the epitaph ZX_ERR_INVALID_ARGUMENT
.
If registering a new external route and the maximum number of
external routes has already been registered, this channel will
be closed with the epitaph ZX_ERR_NO_RESOURCES
.
UnregisterExternalRoute
Unregisters any external route that was previously registered with
RegisterExternalRoute
. It returns once the external route has
been removed locally.
If the given external route was not previously registered, no action is taken.
Implementations§
Source§impl DeviceRouteRequest
impl DeviceRouteRequest
pub fn into_register_on_mesh_prefix( self, ) -> Option<(OnMeshPrefix, DeviceRouteRegisterOnMeshPrefixResponder)>
pub fn into_unregister_on_mesh_prefix( self, ) -> Option<(Ipv6AddressWithPrefix, DeviceRouteUnregisterOnMeshPrefixResponder)>
pub fn into_register_external_route( self, ) -> Option<(ExternalRoute, DeviceRouteRegisterExternalRouteResponder)>
pub fn into_unregister_external_route( self, ) -> Option<(Ipv6AddressWithPrefix, DeviceRouteUnregisterExternalRouteResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL