Backbone Router
This module includes functions for the OpenThread Backbone Router Service.
Summary
Enumerations |
|
---|---|
otBackboneRouterDomainPrefixEvent{
|
enum Represents the Domain Prefix events. |
otBackboneRouterMulticastListenerEvent{
|
enum Represents the Multicast Listener events. |
otBackboneRouterNdProxyEvent{
|
enum Represents the ND Proxy events. |
otBackboneRouterState{
|
enum Represents the Backbone Router Status. |
Typedefs |
|
---|---|
otBackboneRouterConfig
|
typedefstruct otBackboneRouterConfig
Represents Backbone Router configuration. |
otBackboneRouterDomainPrefixCallback)(void *aContext, otBackboneRouterDomainPrefixEvent aEvent, const otIp6Prefix *aDomainPrefix)
|
typedefvoid(*
Pointer is called whenever the Domain Prefix changed. |
otBackboneRouterMulticastListenerCallback)(void *aContext, otBackboneRouterMulticastListenerEvent aEvent, const otIp6Address *aAddress)
|
typedefvoid(*
Pointer is called whenever the Multicast Listeners change. |
otBackboneRouterMulticastListenerInfo
|
typedef Represents a Backbone Router Multicast Listener info. |
otBackboneRouterMulticastListenerIterator
|
typedefuint16_t
Used to iterate through Multicast Listeners. |
otBackboneRouterNdProxyCallback)(void *aContext, otBackboneRouterNdProxyEvent aEvent, const otIp6Address *aDua)
|
typedefvoid(*
Pointer is called whenever the Nd Proxy changed. |
otBackboneRouterNdProxyInfo
|
typedefstruct otBackboneRouterNdProxyInfo
Represents the Backbone Router ND Proxy info. |
Functions |
|
---|---|
otBackboneRouterConfigNextDuaRegistrationResponse(otInstance *aInstance, const otIp6InterfaceIdentifier *aMlIid, uint8_t aStatus)
|
void
Configures response status for next DUA registration.
|
otBackboneRouterConfigNextMulticastListenerRegistrationResponse(otInstance *aInstance, uint8_t aStatus)
|
void
Configures the response status for the next Multicast Listener Registration.
|
otBackboneRouterGetConfig(otInstance *aInstance, otBackboneRouterConfig *aConfig)
|
void
Gets the local Backbone Router configuration.
|
otBackboneRouterGetDomainPrefix(otInstance *aInstance, otBorderRouterConfig *aConfig)
|
Gets the local Domain Prefix configuration.
|
otBackboneRouterGetNdProxyInfo(otInstance *aInstance, const otIp6Address *aDua, otBackboneRouterNdProxyInfo *aNdProxyInfo)
|
Gets the Backbone Router ND Proxy info.
|
otBackboneRouterGetPrimary(otInstance *aInstance, otBackboneRouterConfig *aConfig)
|
Gets the Primary Backbone Router information in the Thread Network.
|
otBackboneRouterGetRegistrationJitter(otInstance *aInstance)
|
uint8_t
Returns the Backbone Router registration jitter value.
|
otBackboneRouterGetState(otInstance *aInstance)
|
Gets the Backbone Router otBackboneRouterState.
|
otBackboneRouterMulticastListenerAdd(otInstance *aInstance, const otIp6Address *aAddress, uint32_t aTimeout)
|
Adds a Multicast Listener with a timeout value, in seconds.
|
otBackboneRouterMulticastListenerClear(otInstance *aInstance)
|
void
Clears the Multicast Listeners.
|
otBackboneRouterMulticastListenerGetNext(otInstance *aInstance, otBackboneRouterMulticastListenerIterator *aIterator, otBackboneRouterMulticastListenerInfo *aListenerInfo)
|
Gets the next Multicast Listener info (using an iterator).
|
otBackboneRouterRegister(otInstance *aInstance)
|
Explicitly registers local Backbone Router configuration.
|
otBackboneRouterSetConfig(otInstance *aInstance, const otBackboneRouterConfig *aConfig)
|
Sets the local Backbone Router configuration otBackboneRouterConfig.
|
otBackboneRouterSetDomainPrefixCallback(otInstance *aInstance, otBackboneRouterDomainPrefixCallback aCallback, void *aContext)
|
void
Sets the Backbone Router Domain Prefix callback.
|
otBackboneRouterSetEnabled(otInstance *aInstance, bool aEnable)
|
void
Enables or disables Backbone functionality.
|
otBackboneRouterSetMulticastListenerCallback(otInstance *aInstance, otBackboneRouterMulticastListenerCallback aCallback, void *aContext)
|
void
Sets the Backbone Router Multicast Listener callback.
|
otBackboneRouterSetNdProxyCallback(otInstance *aInstance, otBackboneRouterNdProxyCallback aCallback, void *aContext)
|
void
Sets the Backbone Router ND Proxy callback.
|
otBackboneRouterSetRegistrationJitter(otInstance *aInstance, uint8_t aJitter)
|
void
Sets the Backbone Router registration jitter value.
|
Macros |
|
---|---|
OT_BACKBONE_ROUTER_MULTICAST_LISTENER_ITERATOR_INIT 0
|
Initializer for otBackboneRouterMulticastListenerIterator.
|
Structs |
|
---|---|
otBackboneRouterConfig |
Represents Backbone Router configuration. |
otBackboneRouterMulticastListenerInfo |
Represents a Backbone Router Multicast Listener info. |
otBackboneRouterNdProxyInfo |
Represents the Backbone Router ND Proxy info. |
Enumerations
otBackboneRouterDomainPrefixEvent
otBackboneRouterDomainPrefixEvent
otBackboneRouterMulticastListenerEvent
otBackboneRouterMulticastListenerEvent
otBackboneRouterNdProxyEvent
otBackboneRouterNdProxyEvent
otBackboneRouterState
otBackboneRouterState
Typedefs
otBackboneRouterConfig
struct otBackboneRouterConfig otBackboneRouterConfig
Represents Backbone Router configuration.
otBackboneRouterDomainPrefixCallback
void(* otBackboneRouterDomainPrefixCallback)(void *aContext, otBackboneRouterDomainPrefixEvent aEvent, const otIp6Prefix *aDomainPrefix)
Pointer is called whenever the Domain Prefix changed.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otBackboneRouterMulticastListenerCallback
void(* otBackboneRouterMulticastListenerCallback)(void *aContext, otBackboneRouterMulticastListenerEvent aEvent, const otIp6Address *aAddress)
Pointer is called whenever the Multicast Listeners change.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otBackboneRouterMulticastListenerInfo
struct otBackboneRouterMulticastListenerInfo otBackboneRouterMulticastListenerInfo
Represents a Backbone Router Multicast Listener info.
otBackboneRouterMulticastListenerIterator
uint16_t otBackboneRouterMulticastListenerIterator
Used to iterate through Multicast Listeners.
otBackboneRouterNdProxyCallback
void(* otBackboneRouterNdProxyCallback)(void *aContext, otBackboneRouterNdProxyEvent aEvent, const otIp6Address *aDua)
Pointer is called whenever the Nd Proxy changed.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otBackboneRouterNdProxyInfo
struct otBackboneRouterNdProxyInfo otBackboneRouterNdProxyInfo
Represents the Backbone Router ND Proxy info.
Functions
otBackboneRouterConfigNextDuaRegistrationResponse
void otBackboneRouterConfigNextDuaRegistrationResponse( otInstance *aInstance, const otIp6InterfaceIdentifier *aMlIid, uint8_t aStatus )
Configures response status for next DUA registration.
Note: available only when OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
is enabled. Only used for test and certification.
TODO: (DUA) support coap error code and corresponding process for certification purpose.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otBackboneRouterConfigNextMulticastListenerRegistrationResponse
void otBackboneRouterConfigNextMulticastListenerRegistrationResponse( otInstance *aInstance, uint8_t aStatus )
Configures the response status for the next Multicast Listener Registration.
Available when OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
, OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE
, and OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
are enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otBackboneRouterGetConfig
void otBackboneRouterGetConfig( otInstance *aInstance, otBackboneRouterConfig *aConfig )
Gets the local Backbone Router configuration.
Available when OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
is enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otBackboneRouterSetEnabled
otBackboneRouterGetState
otBackboneRouterSetConfig
otBackboneRouterRegister
otBackboneRouterGetDomainPrefix
otError otBackboneRouterGetDomainPrefix( otInstance *aInstance, otBorderRouterConfig *aConfig )
Gets the local Domain Prefix configuration.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otBackboneRouterGetNdProxyInfo
otError otBackboneRouterGetNdProxyInfo( otInstance *aInstance, const otIp6Address *aDua, otBackboneRouterNdProxyInfo *aNdProxyInfo )
Gets the Backbone Router ND Proxy info.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otBackboneRouterGetPrimary
otError otBackboneRouterGetPrimary( otInstance *aInstance, otBackboneRouterConfig *aConfig )
Gets the Primary Backbone Router information in the Thread Network.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otBackboneRouterGetRegistrationJitter
uint8_t otBackboneRouterGetRegistrationJitter( otInstance *aInstance )
Returns the Backbone Router registration jitter value.
Details | |
---|---|
Returns |
The Backbone Router registration jitter value.
|
otBackboneRouterSetRegistrationJitter
otBackboneRouterGetState
otBackboneRouterState otBackboneRouterGetState( otInstance *aInstance )
Gets the Backbone Router otBackboneRouterState.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otBackboneRouterSetEnabled
otBackboneRouterGetConfig
otBackboneRouterSetConfig
otBackboneRouterRegister
otBackboneRouterMulticastListenerAdd
otError otBackboneRouterMulticastListenerAdd( otInstance *aInstance, const otIp6Address *aAddress, uint32_t aTimeout )
Adds a Multicast Listener with a timeout value, in seconds.
Pass 0
to use the default MLR timeout.
Available when OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
, OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE
, and OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
are enabled.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otBackboneRouterMulticastListenerClear
otBackboneRouterMulticastListenerGetNext
otBackboneRouterMulticastListenerClear
void otBackboneRouterMulticastListenerClear( otInstance *aInstance )
Clears the Multicast Listeners.
Available when OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
, OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE
, and OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
are enabled.
Details | |||
---|---|---|---|
Parameters |
|
otBackboneRouterMulticastListenerAdd
otBackboneRouterMulticastListenerGetNext
otBackboneRouterMulticastListenerGetNext
otError otBackboneRouterMulticastListenerGetNext( otInstance *aInstance, otBackboneRouterMulticastListenerIterator *aIterator, otBackboneRouterMulticastListenerInfo *aListenerInfo )
Gets the next Multicast Listener info (using an iterator).
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otBackboneRouterMulticastListenerClear
otBackboneRouterMulticastListenerAdd
otBackboneRouterRegister
otError otBackboneRouterRegister( otInstance *aInstance )
Explicitly registers local Backbone Router configuration.
A Server Data Request message SRV_DATA.ntf
is triggered for the attached device.
Available when OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
is enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otBackboneRouterSetEnabled
otBackboneRouterGetState
otBackboneRouterGetConfig
otBackboneRouterSetConfig
otBackboneRouterSetConfig
otError otBackboneRouterSetConfig( otInstance *aInstance, const otBackboneRouterConfig *aConfig )
Sets the local Backbone Router configuration otBackboneRouterConfig.
A Server Data Request message SRV_DATA.ntf
is initiated automatically if BBR Dataset changes for Primary Backbone Router.
Available when OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
is enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otBackboneRouterSetEnabled
otBackboneRouterGetState
otBackboneRouterGetConfig
otBackboneRouterRegister
otBackboneRouterSetDomainPrefixCallback
void otBackboneRouterSetDomainPrefixCallback( otInstance *aInstance, otBackboneRouterDomainPrefixCallback aCallback, void *aContext )
Sets the Backbone Router Domain Prefix callback.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otBackboneRouterSetEnabled
void otBackboneRouterSetEnabled( otInstance *aInstance, bool aEnable )
Enables or disables Backbone functionality.
If enabled, a Server Data Request message SRV_DATA.ntf
is triggered for the attached device if there is no Backbone Router Service in the Thread Network Data.
If disabled, SRV_DATA.ntf
is triggered if the Backbone Router is in the Primary state.
Available when OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
is enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otBackboneRouterGetState
otBackboneRouterGetConfig
otBackboneRouterSetConfig
otBackboneRouterRegister
otBackboneRouterSetMulticastListenerCallback
void otBackboneRouterSetMulticastListenerCallback( otInstance *aInstance, otBackboneRouterMulticastListenerCallback aCallback, void *aContext )
Sets the Backbone Router Multicast Listener callback.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otBackboneRouterSetNdProxyCallback
void otBackboneRouterSetNdProxyCallback( otInstance *aInstance, otBackboneRouterNdProxyCallback aCallback, void *aContext )
Sets the Backbone Router ND Proxy callback.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otBackboneRouterSetRegistrationJitter
void otBackboneRouterSetRegistrationJitter( otInstance *aInstance, uint8_t aJitter )
Sets the Backbone Router registration jitter value.
Details | |||
---|---|---|---|
Parameters |
|
otBackboneRouterGetRegistrationJitter
Macros
OT_BACKBONE_ROUTER_MULTICAST_LISTENER_ITERATOR_INIT
OT_BACKBONE_ROUTER_MULTICAST_LISTENER_ITERATOR_INIT 0
Initializer for otBackboneRouterMulticastListenerIterator.
Resources
OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.