Home
last modified time | relevance | path

Searched refs:Leader (Results 1 – 25 of 60) sorted by relevance

123

/openthread-latest/src/core/thread/
Dnetwork_data_leader.cpp58 Leader::Leader(Instance &aInstance) in Leader() function in ot::NetworkData::Leader
73 void Leader::Reset(void) in Reset()
85 Error Leader::GetServiceId(uint32_t aEnterpriseNumber, in GetServiceId()
111 Error Leader::GetPreferredNat64Prefix(ExternalRouteConfig &aConfig) const in GetPreferredNat64Prefix()
135 bool Leader::IsNat64(const Ip6::Address &aAddress) const in IsNat64()
153 const PrefixTlv *Leader::FindNextMatchingPrefixTlv(const Ip6::Address &aAddress, const PrefixTlv *a… in FindNextMatchingPrefixTlv()
175 Error Leader::GetContext(const Ip6::Address &aAddress, Lowpan::Context &aContext) const in GetContext()
208 const PrefixTlv *Leader::FindPrefixTlvForContextId(uint8_t aContextId, const ContextTlv *&aContextT… in FindPrefixTlvForContextId()
227 Error Leader::GetContext(uint8_t aContextId, Lowpan::Context &aContext) const in GetContext()
252 void Leader::GetContextForMeshLocalPrefix(Lowpan::Context &aContext) const in GetContextForMeshLocalPrefix()
[all …]
Dnetwork_data_leader_ftd.cpp61 void Leader::Start(Mle::LeaderStartMode aStartMode) in Start()
75 void Leader::IncrementVersion(void) in IncrementVersion()
83 void Leader::IncrementVersionAndStableVersion(void) in IncrementVersionAndStableVersion()
91 void Leader::IncrementVersions(const ChangedFlags &aFlags) in IncrementVersions()
99 void Leader::IncrementVersions(bool aIncludeStable) in IncrementVersions()
118 Error Leader::AnycastLookup(uint16_t aAloc16, uint16_t &aRloc16) const in AnycastLookup()
145 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorDrop); in AnycastLookup()
146 aRloc16 = Get<BackboneRouter::Leader>().GetServer16(); in AnycastLookup()
181 Error Leader::LookupRouteForServiceAloc(uint16_t aAloc16, uint16_t &aRloc16) const in LookupRouteForServiceAloc()
210 bool Leader::IsEntryForDhcp6Agent(const BorderRouterEntry &aEntry) { return aEntry.IsDhcp() || aEnt… in IsEntryForDhcp6Agent()
[all …]
Dnetwork_data_notifier.cpp137 Get<Leader>().FindRlocs(kAnyBrOrServer, kAnyRole, rlocs); in RemoveStaleChildEntries()
172 if (Get<Leader>().ContainsEntriesFrom(Get<Local>(), deviceRloc) && in UpdateInconsistentData()
173 Get<Local>().ContainsEntriesFrom(Get<Leader>(), deviceRloc)) in UpdateInconsistentData()
210 Get<Leader>().CheckForNetDataGettingFull(*aNetworkData, aOldRloc16); in SendServerDataNotification()
313 Get<Leader>().ContainsBorderRouterWithRloc(rloc16)); in IsEligibleForRouterRoleUpgradeAsBorderRouter()
319 …VerifyOrExit(Get<Leader>().CountBorderRouters(kRouterRoleOnly) < Mle::kRouterUpgradeBorderRouterRe… in IsEligibleForRouterRoleUpgradeAsBorderRouter()
Dnetwork_data_leader.hpp69 class Leader : public MutableNetworkData, private NonCopyable class
81 explicit Leader(Instance &aInstance);
667 using UpdateTimer = TimerMilliIn<Leader, &Leader::HandleTimer>;
686 DeclareTmfHandler(Leader, kUriServerData);
687 DeclareTmfHandler(Leader, kUriCommissionerGet);
688 DeclareTmfHandler(Leader, kUriCommissionerSet);
Dmlr_manager.cpp79 void MlrManager::HandleBackboneRouterPrimaryUpdate(BackboneRouter::Leader::State aState, in HandleBackboneRouterPrimaryUpdate()
85 …aState == BackboneRouter::Leader::kStateAdded || aState == BackboneRouter::Leader::kStateToTrigger… in HandleBackboneRouterPrimaryUpdate()
229 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorInvalidState); in SendMlr()
386 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorInvalidState); in SendMlrMessage()
415 SuccessOrExit(error = Get<BackboneRouter::Leader>().GetServiceId(pbbrServiceId)); in SendMlrMessage()
421 Get<BackboneRouter::Leader>().GetServer16()); in SendMlrMessage()
470 if (Get<BackboneRouter::Leader>().GetConfig(config) == kErrorNone) in HandleMlrResponse()
621 Get<BackboneRouter::Leader>().HasPrimary(); in UpdateReregistrationDelay()
633 IgnoreError(Get<BackboneRouter::Leader>().GetConfig(config)); in UpdateReregistrationDelay()
Dtmf.cpp136 Case(kUriLeaderPetition, MeshCoP::Leader); in HandleResource()
137 Case(kUriLeaderKeepAlive, MeshCoP::Leader); in HandleResource()
138 Case(kUriServerData, NetworkData::Leader); in HandleResource()
139 Case(kUriCommissionerGet, NetworkData::Leader); in HandleResource()
140 Case(kUriCommissionerSet, NetworkData::Leader); in HandleResource()
Ddua_manager.cpp115 const Ip6::Prefix *prefix = Get<BackboneRouter::Leader>().GetDomainPrefix(); in HandleDomainPrefixUpdate()
277 VerifyOrExit(Get<BackboneRouter::Leader>().GetConfig(config) == kErrorNone); in UpdateReregistrationDelay()
313 …(Get<NetworkData::Leader>().GetContext(Get<DuaManager>().GetDomainUnicastAddress(), context) != kE… in HandleNotifierEvents()
353 void DuaManager::HandleBackboneRouterPrimaryUpdate(BackboneRouter::Leader::State aState, in HandleBackboneRouterPrimaryUpdate()
358 …if (aState == BackboneRouter::Leader::kStateAdded || aState == BackboneRouter::Leader::kStateToTri… in HandleBackboneRouterPrimaryUpdate()
440 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorInvalidState); in PerformNextRegistration()
518 SuccessOrExit(error = Get<BackboneRouter::Leader>().GetServiceId(pbbrServiceId)); in PerformNextRegistration()
524 Get<BackboneRouter::Leader>().GetServer16()); in PerformNextRegistration()
635 VerifyOrExit(Get<BackboneRouter::Leader>().IsDomainUnicast(target), error = kErrorDrop); in ProcessDuaResponse()
Dnetwork_data_service.cpp79 …return Get<Leader>().GetServiceId(kThreadEnterpriseNumber, serviceData, /* aServerStable */ true, … in GetServiceId()
96 while ((serviceTlv = Get<Leader>().FindNextThreadService(serviceTlv, serviceData, in GetBackboneRouterPrimary()
188 …Get<Leader>().FindNextThreadService(aIterator.mServiceTlv, serviceData, NetworkData::kServicePrefi… in GetNextDnsSrpAnycastInfo()
339 …Get<Leader>().FindNextThreadService(aIterator.mServiceTlv, serviceData, NetworkData::kServicePrefi… in GetNextDnsSrpUnicastInfo()
/openthread-latest/src/core/api/
Dnetdata_api.cpp48 return AsCoreType(aInstance).Get<NetworkData::Leader>().CopyNetworkData( in otNetDataGet()
54 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetLength(); in otNetDataGetLength()
59 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetMaxLength(); in otNetDataGetMaxLength()
64 AsCoreType(aInstance).Get<NetworkData::Leader>().ResetMaxLength(); in otNetDataResetMaxLength()
73 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextOnMeshPrefix(*aIterator, AsCoreType… in otNetDataGetNextOnMeshPrefix()
79 return AsCoreType(aInstance).Get<NetworkData::Leader>().ContainsOmrPrefix(AsCoreType(aPrefix)); in otNetDataContainsOmrPrefix()
87 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextExternalRoute(*aIterator, AsCoreTyp… in otNetDataGetNextRoute()
94 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextService(*aIterator, AsCoreType(aCon… in otNetDataGetNextService()
103 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextLowpanContextInfo(*aIterator, in otNetDataGetNextLowpanContextInfo()
109 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetCommissioningDataset(AsCoreType(aDatase… in otNetDataGetCommissioningDataset()
[all …]
Ddataset_ftd_api.cpp52 return AsCoreType(aInstance).Get<MeshCoP::Leader>().GetDelayTimerMinimal(); in otDatasetGetDelayTimerMinimal()
57 return AsCoreType(aInstance).Get<MeshCoP::Leader>().SetDelayTimerMinimal(aDelayTimerMinimal); in otDatasetSetDelayTimerMinimal()
Dbackbone_router_api.cpp49 return AsCoreType(aInstance).Get<BackboneRouter::Leader>().GetConfig(*aConfig); in otBackboneRouterGetPrimary()
/openthread-latest/src/core/meshcop/
Dmeshcop_leader.cpp58 Leader::Leader(Instance &aInstance) in Leader() function in ot::MeshCoP::Leader
66 template <> void Leader::HandleTmf<kUriLeaderPetition>(Coap::Message &aMessage, const Ip6::MessageI… in HandleTmf()
89 SuccessOrExit(Get<NetworkData::Leader>().SetCommissioningData(&data, data.GetLength())); in HandleTmf()
100 void Leader::SendPetitionResponse(const Coap::Message &aRequest, in SendPetitionResponse()
131 template <> void Leader::HandleTmf<kUriLeaderKeepAlive>(Coap::Message &aMessage, const Ip6::Message… in HandleTmf()
146 … borderAgentLocator = Get<NetworkData::Leader>().FindInCommissioningData<BorderAgentLocatorTlv>(); in HandleTmf()
164 Get<NetworkData::Leader>().IncrementVersion(); in HandleTmf()
177 void Leader::SendKeepAliveResponse(const Coap::Message &aRequest, in SendKeepAliveResponse()
198 void Leader::SendDatasetChanged(const Ip6::Address &aAddress) in SendDatasetChanged()
217 Error Leader::SetDelayTimerMinimal(uint32_t aDelayTimerMinimal) in SetDelayTimerMinimal()
[all …]
Dmeshcop_leader.hpp52 class Leader : public InstanceLocator, private NonCopyable class
63 explicit Leader(Instance &aInstance);
138 using LeaderTimer = TimerMilliIn<Leader, &Leader::HandleTimer>;
148 DeclareTmfHandler(Leader, kUriLeaderPetition);
149 DeclareTmfHandler(Leader, kUriLeaderKeepAlive);
Ddataset_manager_ftd.cpp157 SuccessOrExit(Get<NetworkData::Leader>().FindCommissioningSessionId(localSessionId)); in ProcessSetOrReplaceRequest()
201 delayTimer = Max(delayTimer, Get<Leader>().GetDelayTimerMinimal()); in ProcessSetOrReplaceRequest()
233 Get<NetworkData::Leader>().IncrementVersionAndStableVersion(); in HandleSetOrReplace()
245 SuccessOrExit(Get<NetworkData::Leader>().FindCommissioningSessionId(localSessionId)); in HandleSetOrReplace()
247 Get<Leader>().SendDatasetChanged(destination); in HandleSetOrReplace()
426 SuccessOrExit(aDataset.Write<DelayTimerTlv>(Get<Leader>().GetDelayTimerMinimal())); in ApplyActiveDataset()
/openthread-latest/src/core/backbone_router/
Dbbr_leader.cpp46 Leader::Leader(Instance &aInstance) in Leader() function in ot::BackboneRouter::Leader
52 void Leader::Reset(void) in Reset()
61 Error Leader::GetConfig(Config &aConfig) const in GetConfig()
73 Error Leader::GetServiceId(uint8_t &aServiceId) const in GetServiceId()
86 void Leader::LogBackboneRouterPrimary(State aState, const Config &aConfig) const in LogBackboneRouterPrimary()
99 const char *Leader::StateToString(State aState) in StateToString()
120 const char *Leader::DomainPrefixEventToString(DomainPrefixEvent aEvent) in DomainPrefixEventToString()
139 void Leader::Update(void) in Update()
145 void Leader::UpdateBackboneRouterPrimary(void) in UpdateBackboneRouterPrimary()
216 void Leader::UpdateDomainPrefixConfig(void) in UpdateDomainPrefixConfig()
[all …]
Dbbr_local.cpp184 VerifyOrExit(!Get<BackboneRouter::Leader>().HasPrimary() || in AddService()
185 … Get<BackboneRouter::Leader>().GetServer16() == Get<Mle::MleRouter>().GetRloc16()); in AddService()
246 void Local::HandleBackboneRouterPrimaryUpdate(Leader::State aState, const Config &aConfig) in HandleBackboneRouterPrimaryUpdate()
392 mAllDomainBackboneRouters.SetMulticastNetworkPrefix(*Get<Leader>().GetDomainPrefix()); in HandleDomainPrefixUpdate()
399 Get<Leader>().GetDomainPrefix()); in HandleDomainPrefixUpdate()
Dbbr_leader.hpp86 class Leader : public InstanceLocator, private NonCopyable class
107 explicit Leader(Instance &aInstance);
Dndproxy_table.cpp270 const Ip6::Prefix *prefix = Get<BackboneRouter::Leader>().GetDomainPrefix(); in TriggerCallback()
300 const Ip6::Prefix *domainPrefix = Get<BackboneRouter::Leader>().GetDomainPrefix(); in GetDua()
312 return Get<Leader>().IsDomainUnicast(aDua) ? FindByAddressIid(aDua.GetIid()) : nullptr; in ResolveDua()
330 VerifyOrExit(Get<Leader>().IsDomainUnicast(aDua), error = kErrorInvalidArgs); in GetInfo()
/openthread-latest/src/core/net/
Dnd_agent.cpp64 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
71 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
93 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
100 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
Ddhcp6_server.cpp82 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
89 … error = Get<NetworkData::Leader>().GetContext(prefixAgent.GetPrefixAsAddress(), lowpanContext); in UpdateService()
110 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
117 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
/openthread-latest/tests/unit/
Dtest_network_data.cpp615 class TestLeader : public Leader in TestNetworkDataDsnSrpServices()
709 …reinterpret_cast<TestLeader &>(instance->Get<Leader>()).Populate(kNetworkData, sizeof(kNetworkData… in TestNetworkDataDsnSrpServices()
715 instance->Get<Leader>().FindRlocs(kAnyBrOrServer, kAnyRole, rlocs); in TestNetworkDataDsnSrpServices()
718 instance->Get<Leader>().FindRlocs(kAnyBrOrServer, kRouterRoleOnly, rlocs); in TestNetworkDataDsnSrpServices()
721 instance->Get<Leader>().FindRlocs(kAnyBrOrServer, kChildRoleOnly, rlocs); in TestNetworkDataDsnSrpServices()
724 instance->Get<Leader>().FindRlocs(kBrProvidingExternalIpConn, kAnyRole, rlocs); in TestNetworkDataDsnSrpServices()
799 class TestLeader : public Leader in TestNetworkDataDsnSrpAnycastSeqNumSelection()
953 …reinterpret_cast<TestLeader &>(instance->Get<Leader>()).Populate(test.mNetworkData, test.mNetworkD… in TestNetworkDataDsnSrpAnycastSeqNumSelection()
/openthread-latest/src/core/instance/
Dinstance.hpp563 NetworkData::Leader mNetworkDataLeader;
602 MeshCoP::Leader mLeader;
606 BackboneRouter::Leader mBackboneRouterLeader;
833 template <> inline MeshCoP::Leader &Instance::Get(void) { return mLeader; } in Get()
854 template <> inline NetworkData::Leader &Instance::Get(void) { return mNetworkDataLeader; } in Get()
1012 template <> inline BackboneRouter::Leader &Instance::Get(void) { return mBackboneRouterLeader; } in Get()
/openthread-latest/src/core/utils/
Dhistory_tracker.cpp369 if (!Get<NetworkData::Leader>().ContainsOnMeshPrefix(prefix)) in RecordNetworkDataChange()
377 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, prefix) == kErrorNone) in RecordNetworkDataChange()
391 if (!Get<NetworkData::Leader>().ContainsExternalRoute(route)) in RecordNetworkDataChange()
399 while (Get<NetworkData::Leader>().GetNextExternalRoute(iterator, route) == kErrorNone) in RecordNetworkDataChange()
407 …SuccessOrAssert(Get<NetworkData::Leader>().CopyNetworkData(NetworkData::kFullSet, mPreviousNetwork… in RecordNetworkDataChange()
Dslaac_address.cpp192 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, config) == kErrorNone) in RemoveOrDeprecateAddresses()
260 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, config) == kErrorNone) in AddAddresses()
347 IgnoreError(Get<NetworkData::Leader>().FindDomainIdFor(aConfig.GetPrefix(), domainId)); in AddAddressFor()
/openthread-latest/src/cli/
DREADME_NETDATA.md5 … and devices offering services register their information with the Leader. The Leader collects and…
328 Register configured prefixes, routes, and services with the Leader.
394 Print Network Data received from the Leader.
412 Print Network Data entries from the Leader associated with `0xa00` RLOC16.
425 Print Network Data received from the Leader as hex-encoded TLVs.
433 Print local Network Data to sync with Leader.
444 Print local Network Data to sync with Leader as hex-encoded TLVs.

123