[bbr] support domain prefix addition and removal (#4793)

This commit is contained in:
Rongli Sun
2020-04-11 22:05:04 -07:00
committed by GitHub
parent a47ea011b1
commit 52777fb459
17 changed files with 453 additions and 201 deletions
+13
View File
@@ -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);
/**
* @}
*
+12
View File
@@ -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.
*/