mirror of
https://github.com/espressif/openthread.git
synced 2026-09-04 08:10:11 +00:00
[instance] init BackboneRouter::Local before Mle (#9843)
This commit moves the `mBackboneRouterLocal` before `mMleRouter` in `Instance` class to ensure that it is initialized and its constructor is called before. This ensures when `Mle()` constructor invokes the `ApplyNewMeshLocalPrefix()` method on `BackboneRouter::Local`, it is already initialized.
This commit is contained in:
@@ -124,6 +124,9 @@ Instance::Instance(void)
|
||||
#endif
|
||||
#if OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE
|
||||
, mSntpClient(*this)
|
||||
#endif
|
||||
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
|
||||
, mBackboneRouterLocal(*this)
|
||||
#endif
|
||||
, mActiveDataset(*this)
|
||||
, mPendingDataset(*this)
|
||||
@@ -178,7 +181,6 @@ Instance::Instance(void)
|
||||
, mBackboneRouterLeader(*this)
|
||||
#endif
|
||||
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
|
||||
, mBackboneRouterLocal(*this)
|
||||
, mBackboneRouterManager(*this)
|
||||
#endif
|
||||
#if OPENTHREAD_CONFIG_MLR_ENABLE || (OPENTHREAD_FTD && OPENTHREAD_CONFIG_TMF_PROXY_MLR_ENABLE)
|
||||
|
||||
@@ -510,6 +510,10 @@ private:
|
||||
Sntp::Client mSntpClient;
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
|
||||
BackboneRouter::Local mBackboneRouterLocal;
|
||||
#endif
|
||||
|
||||
MeshCoP::ActiveDatasetManager mActiveDataset;
|
||||
MeshCoP::PendingDatasetManager mPendingDataset;
|
||||
MeshCoP::ExtendedPanIdManager mExtendedPanIdManager;
|
||||
@@ -578,7 +582,6 @@ private:
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
|
||||
BackboneRouter::Local mBackboneRouterLocal;
|
||||
BackboneRouter::Manager mBackboneRouterManager;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user