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.cpp43 Leader::Leader(Instance &aInstance) in Leader() function in ot::NetworkData::Leader
58 void Leader::Reset(void) in Reset()
70 Error Leader::GetServiceId(uint32_t aEnterpriseNumber, in GetServiceId()
96 Error Leader::GetPreferredNat64Prefix(ExternalRouteConfig &aConfig) const in GetPreferredNat64Prefix()
120 bool Leader::IsNat64(const Ip6::Address &aAddress) const in IsNat64()
138 const PrefixTlv *Leader::FindNextMatchingPrefixTlv(const Ip6::Address &aAddress, const PrefixTlv *a… in FindNextMatchingPrefixTlv()
160 Error Leader::GetContext(const Ip6::Address &aAddress, Lowpan::Context &aContext) const in GetContext()
193 const PrefixTlv *Leader::FindPrefixTlvForContextId(uint8_t aContextId, const ContextTlv *&aContextT… in FindPrefixTlvForContextId()
212 Error Leader::GetContext(uint8_t aContextId, Lowpan::Context &aContext) const in GetContext()
237 void Leader::GetContextForMeshLocalPrefix(Lowpan::Context &aContext) const in GetContextForMeshLocalPrefix()
[all …]
Dnetwork_data_leader_ftd.cpp45 void Leader::Start(Mle::LeaderStartMode aStartMode) in Start()
59 void Leader::IncrementVersion(void) in IncrementVersion()
67 void Leader::IncrementVersionAndStableVersion(void) in IncrementVersionAndStableVersion()
75 void Leader::IncrementVersions(const ChangedFlags &aFlags) in IncrementVersions()
83 void Leader::IncrementVersions(bool aIncludeStable) in IncrementVersions()
102 Error Leader::AnycastLookup(uint16_t aAloc16, uint16_t &aRloc16) const in AnycastLookup()
129 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorDrop); in AnycastLookup()
130 aRloc16 = Get<BackboneRouter::Leader>().GetServer16(); in AnycastLookup()
165 Error Leader::LookupRouteForServiceAloc(uint16_t aAloc16, uint16_t &aRloc16) const in LookupRouteForServiceAloc()
194 bool Leader::IsEntryForDhcp6Agent(const BorderRouterEntry &aEntry) { return aEntry.IsDhcp() || aEnt… in IsEntryForDhcp6Agent()
[all …]
Dnetwork_data_notifier.cpp130 Get<Leader>().FindRlocs(kAnyBrOrServer, kAnyRole, rlocs); in RemoveStaleChildEntries()
165 if (Get<Leader>().ContainsEntriesFrom(Get<Local>(), deviceRloc) && in UpdateInconsistentData()
166 Get<Local>().ContainsEntriesFrom(Get<Leader>(), deviceRloc)) in UpdateInconsistentData()
203 Get<Leader>().CheckForNetDataGettingFull(*aNetworkData, aOldRloc16); in SendServerDataNotification()
309 Get<Leader>().ContainsBorderRouterWithRloc(rloc16)); in IsEligibleForRouterRoleUpgradeAsBorderRouter()
315 …VerifyOrExit(Get<Leader>().CountBorderRouters(kRouterRoleOnly) < Mle::kRouterUpgradeBorderRouterRe… in IsEligibleForRouterRoleUpgradeAsBorderRouter()
Dnetwork_data_leader.hpp67 class Leader : public MutableNetworkData, private NonCopyable class
78 explicit Leader(Instance &aInstance);
630 using UpdateTimer = TimerMilliIn<Leader, &Leader::HandleTimer>;
649 DeclareTmfHandler(Leader, kUriServerData);
650 DeclareTmfHandler(Leader, kUriCommissionerGet);
651 DeclareTmfHandler(Leader, kUriCommissionerSet);
Dmlr_manager.cpp71 void MlrManager::HandleBackboneRouterPrimaryUpdate(BackboneRouter::Leader::State aState, in HandleBackboneRouterPrimaryUpdate()
77 …aState == BackboneRouter::Leader::kStateAdded || aState == BackboneRouter::Leader::kStateToTrigger… in HandleBackboneRouterPrimaryUpdate()
221 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorInvalidState); in SendMlr()
378 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorInvalidState); in SendMlrMessage()
407 SuccessOrExit(error = Get<BackboneRouter::Leader>().GetServiceId(pbbrServiceId)); in SendMlrMessage()
413 Get<BackboneRouter::Leader>().GetServer16()); in SendMlrMessage()
462 if (Get<BackboneRouter::Leader>().GetConfig(config) == kErrorNone) in HandleMlrResponse()
613 Get<BackboneRouter::Leader>().HasPrimary(); in UpdateReregistrationDelay()
625 IgnoreError(Get<BackboneRouter::Leader>().GetConfig(config)); in UpdateReregistrationDelay()
Dtmf.cpp135 Case(kUriLeaderPetition, MeshCoP::Leader); in HandleResource()
136 Case(kUriLeaderKeepAlive, MeshCoP::Leader); in HandleResource()
137 Case(kUriServerData, NetworkData::Leader); in HandleResource()
138 Case(kUriCommissionerGet, NetworkData::Leader); in HandleResource()
139 Case(kUriCommissionerSet, NetworkData::Leader); in HandleResource()
Ddua_manager.cpp104 const Ip6::Prefix *prefix = Get<BackboneRouter::Leader>().GetDomainPrefix(); in HandleDomainPrefixUpdate()
266 VerifyOrExit(Get<BackboneRouter::Leader>().GetConfig(config) == kErrorNone); in UpdateReregistrationDelay()
302 …(Get<NetworkData::Leader>().GetContext(Get<DuaManager>().GetDomainUnicastAddress(), context) != kE… in HandleNotifierEvents()
342 void DuaManager::HandleBackboneRouterPrimaryUpdate(BackboneRouter::Leader::State aState, in HandleBackboneRouterPrimaryUpdate()
347 …if (aState == BackboneRouter::Leader::kStateAdded || aState == BackboneRouter::Leader::kStateToTri… in HandleBackboneRouterPrimaryUpdate()
429 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorInvalidState); in PerformNextRegistration()
507 SuccessOrExit(error = Get<BackboneRouter::Leader>().GetServiceId(pbbrServiceId)); in PerformNextRegistration()
513 Get<BackboneRouter::Leader>().GetServer16()); in PerformNextRegistration()
624 VerifyOrExit(Get<BackboneRouter::Leader>().IsDomainUnicast(target), error = kErrorDrop); in ProcessDuaResponse()
Dnetwork_data_service.cpp82 …return Get<Leader>().GetServiceId(kThreadEnterpriseNumber, serviceData, /* aServerStable */ true, … in GetServiceId()
99 while ((serviceTlv = Get<Leader>().FindNextThreadService(serviceTlv, serviceData, in GetBackboneRouterPrimary()
194 …Get<Leader>().FindNextThreadService(aIterator.mServiceTlv, serviceData, NetworkData::kServicePrefi… in GetNextDnsSrpAnycastInfo()
361 …Get<Leader>().FindNextThreadService(aIterator.mServiceTlv, serviceData, NetworkData::kServicePrefi… in GetNextDnsSrpUnicastInfo()
/openthread-latest/src/core/api/
Dnetdata_api.cpp45 return AsCoreType(aInstance).Get<NetworkData::Leader>().CopyNetworkData( in otNetDataGet()
51 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetLength(); in otNetDataGetLength()
56 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetMaxLength(); in otNetDataGetMaxLength()
61 AsCoreType(aInstance).Get<NetworkData::Leader>().ResetMaxLength(); in otNetDataResetMaxLength()
70 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextOnMeshPrefix(*aIterator, AsCoreType… in otNetDataGetNextOnMeshPrefix()
76 return AsCoreType(aInstance).Get<NetworkData::Leader>().ContainsOmrPrefix(AsCoreType(aPrefix)); in otNetDataContainsOmrPrefix()
84 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextExternalRoute(*aIterator, AsCoreTyp… in otNetDataGetNextRoute()
91 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextService(*aIterator, AsCoreType(aCon… in otNetDataGetNextService()
100 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextLowpanContextInfo(*aIterator, in otNetDataGetNextLowpanContextInfo()
106 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetCommissioningDataset(AsCoreType(aDatase… in otNetDataGetCommissioningDataset()
[all …]
Ddataset_ftd_api.cpp51 return AsCoreType(aInstance).Get<MeshCoP::Leader>().GetDelayTimerMinimal(); in otDatasetGetDelayTimerMinimal()
56 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.cpp45 Leader::Leader(Instance &aInstance) in Leader() function in ot::MeshCoP::Leader
53 template <> void Leader::HandleTmf<kUriLeaderPetition>(Coap::Message &aMessage, const Ip6::MessageI… in HandleTmf()
76 SuccessOrExit(Get<NetworkData::Leader>().SetCommissioningData(&data, data.GetLength())); in HandleTmf()
87 void Leader::SendPetitionResponse(const Coap::Message &aRequest, in SendPetitionResponse()
118 template <> void Leader::HandleTmf<kUriLeaderKeepAlive>(Coap::Message &aMessage, const Ip6::Message… in HandleTmf()
133 … borderAgentLocator = Get<NetworkData::Leader>().FindInCommissioningData<BorderAgentLocatorTlv>(); in HandleTmf()
151 Get<NetworkData::Leader>().IncrementVersion(); in HandleTmf()
164 void Leader::SendKeepAliveResponse(const Coap::Message &aRequest, in SendKeepAliveResponse()
185 void Leader::SendDatasetChanged(const Ip6::Address &aAddress) in SendDatasetChanged()
204 Error Leader::SetDelayTimerMinimal(uint32_t aDelayTimerMinimal) in SetDelayTimerMinimal()
[all …]
Dmeshcop_leader.hpp52 class Leader : public InstanceLocator, private NonCopyable class
62 explicit Leader(Instance &aInstance);
132 using LeaderTimer = TimerMilliIn<Leader, &Leader::HandleTimer>;
142 DeclareTmfHandler(Leader, kUriLeaderPetition);
143 DeclareTmfHandler(Leader, kUriLeaderKeepAlive);
Ddataset_manager_ftd.cpp137 SuccessOrExit(Get<NetworkData::Leader>().FindCommissioningSessionId(localSessionId)); in ProcessSetOrReplaceRequest()
181 delayTimer = Max(delayTimer, Get<Leader>().GetDelayTimerMinimal()); in ProcessSetOrReplaceRequest()
213 Get<NetworkData::Leader>().IncrementVersionAndStableVersion(); in HandleSetOrReplace()
225 SuccessOrExit(Get<NetworkData::Leader>().FindCommissioningSessionId(localSessionId)); in HandleSetOrReplace()
227 Get<Leader>().SendDatasetChanged(destination); in HandleSetOrReplace()
414 SuccessOrExit(aDataset.Write<DelayTimerTlv>(Get<Leader>().GetDelayTimerMinimal())); in ApplyActiveDataset()
Djoiner_router.cpp66 if (Get<NetworkData::Leader>().IsJoiningAllowed()) in Start()
99 if (Get<NetworkData::Leader>().FindJoinerUdpPort(port) == kErrorNone) in GetJoinerUdpPort()
128 SuccessOrExit(error = Get<NetworkData::Leader>().FindBorderAgentRloc(borderAgentRloc)); in HandleUdpReceive()
/openthread-latest/src/core/backbone_router/
Dbbr_leader.cpp45 Leader::Leader(Instance &aInstance) in Leader() function in ot::BackboneRouter::Leader
51 void Leader::Reset(void) in Reset()
60 Error Leader::GetConfig(Config &aConfig) const in GetConfig()
72 Error Leader::GetServiceId(uint8_t &aServiceId) const in GetServiceId()
85 void Leader::LogBackboneRouterPrimary(State aState, const Config &aConfig) const in LogBackboneRouterPrimary()
98 const char *Leader::StateToString(State aState) in StateToString()
123 const char *Leader::DomainPrefixEventToString(DomainPrefixEvent aEvent) in DomainPrefixEventToString()
146 void Leader::Update(void) in Update()
152 void Leader::UpdateBackboneRouterPrimary(void) in UpdateBackboneRouterPrimary()
223 void Leader::UpdateDomainPrefixConfig(void) in UpdateDomainPrefixConfig()
[all …]
Dbbr_local.cpp178 VerifyOrExit(!Get<BackboneRouter::Leader>().HasPrimary() || in AddService()
179 … Get<BackboneRouter::Leader>().GetServer16() == Get<Mle::MleRouter>().GetRloc16()); in AddService()
240 void Local::HandleBackboneRouterPrimaryUpdate(Leader::State aState, const Config &aConfig) in HandleBackboneRouterPrimaryUpdate()
386 mAllDomainBackboneRouters.SetMulticastNetworkPrefix(*Get<Leader>().GetDomainPrefix()); in HandleDomainPrefixUpdate()
393 Get<Leader>().GetDomainPrefix()); in HandleDomainPrefixUpdate()
Dbbr_leader.hpp84 class Leader : public InstanceLocator, private NonCopyable class
104 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.cpp59 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
66 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
88 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
95 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
/openthread-latest/src/core/utils/
Dslaac_address.cpp184 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, config) == kErrorNone) in RemoveOrDeprecateAddresses()
261 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, config) == kErrorNone) in AddAddresses()
348 IgnoreError(Get<NetworkData::Leader>().FindDomainIdFor(aConfig.GetPrefix(), domainId)); in AddAddressFor()
369 if (Get<NetworkData::Leader>().GetContext(aSlaacAddress.GetAddress(), context) != kErrorNone) in UpdateContextIdFor()
Dhistory_tracker.cpp361 if (!Get<NetworkData::Leader>().ContainsOnMeshPrefix(prefix)) in RecordNetworkDataChange()
369 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, prefix) == kErrorNone) in RecordNetworkDataChange()
383 if (!Get<NetworkData::Leader>().ContainsExternalRoute(route)) in RecordNetworkDataChange()
391 while (Get<NetworkData::Leader>().GetNextExternalRoute(iterator, route) == kErrorNone) in RecordNetworkDataChange()
399 …SuccessOrAssert(Get<NetworkData::Leader>().CopyNetworkData(NetworkData::kFullSet, mPreviousNetwork… in RecordNetworkDataChange()
/openthread-latest/tests/unit/
Dtest_network_data.cpp615 class TestLeader : public Leader in TestNetworkDataDsnSrpServices()
724 …reinterpret_cast<TestLeader &>(instance->Get<Leader>()).Populate(kNetworkData, sizeof(kNetworkData… in TestNetworkDataDsnSrpServices()
730 instance->Get<Leader>().FindRlocs(kAnyBrOrServer, kAnyRole, rlocs); in TestNetworkDataDsnSrpServices()
733 instance->Get<Leader>().FindRlocs(kAnyBrOrServer, kRouterRoleOnly, rlocs); in TestNetworkDataDsnSrpServices()
736 instance->Get<Leader>().FindRlocs(kAnyBrOrServer, kChildRoleOnly, rlocs); in TestNetworkDataDsnSrpServices()
739 instance->Get<Leader>().FindRlocs(kBrProvidingExternalIpConn, kAnyRole, rlocs); in TestNetworkDataDsnSrpServices()
815 class TestLeader : public Leader in TestNetworkDataDsnSrpAnycastSeqNumSelection()
1022 …reinterpret_cast<TestLeader &>(instance->Get<Leader>()).Populate(test.mNetworkData, test.mNetworkD… in TestNetworkDataDsnSrpAnycastSeqNumSelection()
/openthread-latest/src/core/instance/
Dinstance.hpp570 NetworkData::Leader mNetworkDataLeader;
609 MeshCoP::Leader mLeader;
613 BackboneRouter::Leader mBackboneRouterLeader;
850 template <> inline MeshCoP::Leader &Instance::Get(void) { return mLeader; } in Get()
871 template <> inline NetworkData::Leader &Instance::Get(void) { return mNetworkDataLeader; } in Get()
1029 template <> inline BackboneRouter::Leader &Instance::Get(void) { return mBackboneRouterLeader; } in Get()
/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