mirror of
https://github.com/espressif/openthread.git
synced 2026-10-01 05:17:40 +00:00
[bbr] support domain prefix addition and removal (#4793)
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <openthread/backbone_router.h>
|
||||
#include <openthread/ip6.h>
|
||||
#include <openthread/netdata.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -158,6 +159,18 @@ uint8_t otBackboneRouterGetRegistrationJitter(otInstance *aInstance);
|
||||
*/
|
||||
void otBackboneRouterSetRegistrationJitter(otInstance *aInstance, uint8_t aJitter);
|
||||
|
||||
/**
|
||||
* This method gets the local Domain Prefix configuration.
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
* @param[out] aConfig A pointer to the Domain Prefix configuration.
|
||||
*
|
||||
* @retval OT_ERROR_NONE Successfully got the Domain Prefix configuration.
|
||||
* @retval OT_ERROR_NOT_FOUND No Domain Prefix was configured.
|
||||
*
|
||||
*/
|
||||
otError otBackboneRouterGetDomainPrefix(otInstance *aInstance, otBorderRouterConfig *aConfig);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*
|
||||
|
||||
@@ -102,6 +102,18 @@ typedef struct otBorderRouterConfig
|
||||
*/
|
||||
bool mStable : 1;
|
||||
|
||||
/**
|
||||
* TRUE, if this border router is able to supply DNS infomration obtained via ND. FALSE, otherwise.
|
||||
*/
|
||||
bool mNdDns : 1;
|
||||
|
||||
/**
|
||||
* TRUE, if this prefix is a Thread Domain Prefix. FALSE, otherwise.
|
||||
*
|
||||
* Note: Domain Prefix is introduced since Thread 1.2.
|
||||
*/
|
||||
bool mDp : 1;
|
||||
|
||||
/**
|
||||
* The Border Agent Rloc.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user