Home
last modified time | relevance | path

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

123

/openthread-3.4.0/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()
119 …return AsCoreType(aInstance).Get<NetworkData::Leader>().SteeringDataCheckJoiner(AsCoreType(aEui64)… in otNetDataSteeringDataCheckJoiner()
[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-3.4.0/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()
87 void Leader::LogBackboneRouterPrimary(State aState, const Config &aConfig) const in LogBackboneRouterPrimary()
100 void Leader::LogDomainPrefix(DomainPrefixState aState, const Ip6::Prefix &aPrefix) const in LogDomainPrefix()
105 const char *Leader::StateToString(State aState) in StateToString()
126 const char *Leader::DomainPrefixStateToString(DomainPrefixState aState) in DomainPrefixStateToString()
147 void Leader::Update(void) in Update()
153 void Leader::UpdateBackboneRouterPrimary(void) in UpdateBackboneRouterPrimary()
[all …]
Dbbr_local.cpp182 … !Get<BackboneRouter::Leader>().HasPrimary() /* if no available Backbone Router service */ || in AddService()
183 Get<BackboneRouter::Leader>().GetServer16() == Get<Mle::MleRouter>().GetRloc16() in AddService()
242 void Local::HandleBackboneRouterPrimaryUpdate(Leader::State aState, const Config &aConfig) in HandleBackboneRouterPrimaryUpdate()
361 void Local::HandleDomainPrefixUpdate(Leader::DomainPrefixState aState) in HandleDomainPrefixUpdate()
368 if (aState == Leader::kDomainPrefixRemoved || aState == Leader::kDomainPrefixRefreshed) in HandleDomainPrefixUpdate()
373 if (aState == Leader::kDomainPrefixAdded || aState == Leader::kDomainPrefixRefreshed) in HandleDomainPrefixUpdate()
375 mAllDomainBackboneRouters.SetMulticastNetworkPrefix(*Get<Leader>().GetDomainPrefix()); in HandleDomainPrefixUpdate()
383 case Leader::kDomainPrefixAdded: in HandleDomainPrefixUpdate()
384 …mDomainPrefixCallback.Invoke(OT_BACKBONE_ROUTER_DOMAIN_PREFIX_ADDED, Get<Leader>().GetDomainPrefix… in HandleDomainPrefixUpdate()
386 case Leader::kDomainPrefixRemoved: in HandleDomainPrefixUpdate()
[all …]
Dndproxy_table.cpp128 void NdProxyTable::HandleDomainPrefixUpdate(Leader::DomainPrefixState aState) in HandleDomainPrefixUpdate()
130 if (aState == Leader::kDomainPrefixAdded || aState == Leader::kDomainPrefixRemoved || in HandleDomainPrefixUpdate()
131 aState == Leader::kDomainPrefixRefreshed) in HandleDomainPrefixUpdate()
271 const Ip6::Prefix *prefix = Get<BackboneRouter::Leader>().GetDomainPrefix(); in TriggerCallback()
301 const Ip6::Prefix *domainPrefix = Get<BackboneRouter::Leader>().GetDomainPrefix(); in GetDua()
313 return Get<Leader>().IsDomainUnicast(aDua) ? FindByAddressIid(aDua.GetIid()) : nullptr; in ResolveDua()
331 VerifyOrExit(Get<Leader>().IsDomainUnicast(aDua), error = kErrorInvalidArgs); in GetInfo()
Dbbr_leader.hpp61 class Leader : public InstanceLocator, private NonCopyable class
92 explicit Leader(Instance &aInstance);
Dbbr_local.hpp192 void HandleBackboneRouterPrimaryUpdate(Leader::State aState, const Config &aConfig);
256 void HandleDomainPrefixUpdate(Leader::DomainPrefixState aState);
/openthread-3.4.0/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()
99 …Get<NetworkData::Leader>().SetCommissioningData(reinterpret_cast<uint8_t *>(&data), data.GetLength… in HandleTmf()
115 void Leader::SendPetitionResponse(const Coap::Message &aRequest, in SendPetitionResponse()
146 template <> void Leader::HandleTmf<kUriLeaderKeepAlive>(Coap::Message &aMessage, const Ip6::Message… in HandleTmf()
160 …As<BorderAgentLocatorTlv>(Get<NetworkData::Leader>().GetCommissioningDataSubTlv(Tlv::kBorderAgentL… in HandleTmf()
178 Get<NetworkData::Leader>().IncrementVersion(); in HandleTmf()
191 void Leader::SendKeepAliveResponse(const Coap::Message &aRequest, in SendKeepAliveResponse()
212 void Leader::SendDatasetChanged(const Ip6::Address &aAddress) in SendDatasetChanged()
231 Error Leader::SetDelayTimerMinimal(uint32_t aDelayTimerMinimal) in SetDelayTimerMinimal()
[all …]
Dmeshcop_leader.hpp67 class Leader : public InstanceLocator, private NonCopyable class
78 explicit Leader(Instance &aInstance);
132 using LeaderTimer = TimerMilliIn<Leader, &Leader::HandleTimer>;
142 DeclareTmfHandler(Leader, kUriLeaderPetition);
143 DeclareTmfHandler(Leader, kUriLeaderKeepAlive);
Ddataset_manager_ftd.cpp175 Get<NetworkData::Leader>().GetCommissioningDataSubTlv(Tlv::kCommissionerSessionId)); in HandleSet()
214 else if (delayTimerTlv.GetDelayTimer() < Get<Leader>().GetDelayTimerMinimal()) in HandleSet()
216 delayTimerTlv.SetDelayTimer(Get<Leader>().GetDelayTimerMinimal()); in HandleSet()
231 Get<NetworkData::Leader>().IncrementVersionAndStableVersion(); in HandleSet()
247 Get<NetworkData::Leader>().GetCommissioningDataSubTlv(Tlv::kCommissionerSessionId)); in HandleSet()
253 Get<Leader>().SendDatasetChanged(destination); in HandleSet()
440 IgnoreError(dataset.SetTlv(Tlv::kDelayTimer, Get<Leader>().GetDelayTimerMinimal())); in ApplyActiveDataset()
/openthread-3.4.0/src/core/thread/
Dnetwork_data_leader_ftd.cpp61 Leader::Leader(Instance &aInstance) in Leader() function in ot::NetworkData::Leader
70 void Leader::Reset(void) in Reset()
77 void Leader::Start(Mle::LeaderStartMode aStartMode) in Start()
87 void Leader::IncrementVersion(void) in IncrementVersion()
95 void Leader::IncrementVersionAndStableVersion(void) in IncrementVersionAndStableVersion()
103 void Leader::IncrementVersions(const ChangedFlags &aFlags) in IncrementVersions()
111 void Leader::IncrementVersions(bool aIncludeStable) in IncrementVersions()
122 void Leader::RemoveBorderRouter(uint16_t aRloc16, MatchMode aMatchMode) in RemoveBorderRouter()
130 template <> void Leader::HandleTmf<kUriServerData>(Coap::Message &aMessage, const Ip6::MessageInfo … in HandleTmf()
171 template <> void Leader::HandleTmf<kUriCommissionerSet>(Coap::Message &aMessage, const Ip6::Message… in HandleTmf()
[all …]
Dnetwork_data_leader_ftd.hpp69 class Leader : public LeaderBase, private NonCopyable class
90 explicit Leader(Instance &aInstance);
333 using UpdateTimer = TimerMilliIn<Leader, &Leader::HandleTimer>;
340 DeclareTmfHandler(Leader, kUriServerData);
341 DeclareTmfHandler(Leader, kUriCommissionerGet);
342 DeclareTmfHandler(Leader, kUriCommissionerSet);
Ddua_manager.cpp81 void DuaManager::HandleDomainPrefixUpdate(BackboneRouter::Leader::DomainPrefixState aState) in HandleDomainPrefixUpdate()
83 if ((aState == BackboneRouter::Leader::kDomainPrefixRemoved) || in HandleDomainPrefixUpdate()
84 (aState == BackboneRouter::Leader::kDomainPrefixRefreshed)) in HandleDomainPrefixUpdate()
107 case BackboneRouter::Leader::kDomainPrefixUnchanged: in HandleDomainPrefixUpdate()
113 case BackboneRouter::Leader::kDomainPrefixRefreshed: in HandleDomainPrefixUpdate()
114 case BackboneRouter::Leader::kDomainPrefixAdded: in HandleDomainPrefixUpdate()
116 const Ip6::Prefix *prefix = Get<BackboneRouter::Leader>().GetDomainPrefix(); in HandleDomainPrefixUpdate()
278 VerifyOrExit(Get<BackboneRouter::Leader>().GetConfig(config) == kErrorNone); in UpdateReregistrationDelay()
314 …(Get<NetworkData::Leader>().GetContext(Get<DuaManager>().GetDomainUnicastAddress(), context) != kE… in HandleNotifierEvents()
354 void DuaManager::HandleBackboneRouterPrimaryUpdate(BackboneRouter::Leader::State aState, in HandleBackboneRouterPrimaryUpdate()
[all …]
Dnetwork_data_notifier.cpp135 while (Get<Leader>().GetNextServer(iterator, rloc16) == kErrorNone) in RemoveStaleChildEntries()
168 if (Get<Leader>().ContainsEntriesFrom(Get<Local>(), deviceRloc) && in UpdateInconsistentData()
169 Get<Local>().ContainsEntriesFrom(Get<Leader>(), deviceRloc)) in UpdateInconsistentData()
296 Get<Leader>().ContainsBorderRouterWithRloc(rloc16)); in IsEligibleForRouterRoleUpgradeAsBorderRouter()
302 …VerifyOrExit(Get<Leader>().CountBorderRouters(kRouterRoleOnly) < Mle::kRouterUpgradeBorderRouterRe… in IsEligibleForRouterRoleUpgradeAsBorderRouter()
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()
Dmlr_manager.cpp79 void MlrManager::HandleBackboneRouterPrimaryUpdate(BackboneRouter::Leader::State aState, in HandleBackboneRouterPrimaryUpdate()
85 …aState == BackboneRouter::Leader::kStateAdded || aState == BackboneRouter::Leader::kStateToTrigger… in HandleBackboneRouterPrimaryUpdate()
235 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorInvalidState); in SendMulticastListenerRegistration()
395 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorInvalidState); in SendMulticastListenerRegistrationMessage()
424 SuccessOrExit(error = Get<BackboneRouter::Leader>().GetServiceId(pbbrServiceId)); in SendMulticastListenerRegistrationMessage()
430 Get<BackboneRouter::Leader>().GetServer16()); in SendMulticastListenerRegistrationMessage()
483 if (Get<BackboneRouter::Leader>().GetConfig(config) == kErrorNone) in HandleMulticastListenerRegistrationResponse()
627 Get<BackboneRouter::Leader>().HasPrimary(); in UpdateReregistrationDelay()
639 IgnoreError(Get<BackboneRouter::Leader>().GetConfig(config)); in UpdateReregistrationDelay()
Ddua_manager.hpp104 void HandleDomainPrefixUpdate(BackboneRouter::Leader::DomainPrefixState aState);
113 …void HandleBackboneRouterPrimaryUpdate(BackboneRouter::Leader::State aState, const BackboneRouter:…
Dnetwork_data_service.cpp92 …return Get<Leader>().GetServiceId(kThreadEnterpriseNumber, serviceData, aServerStable, aServiceId); in GetServiceId()
108 while ((serviceTlv = Get<Leader>().FindNextThreadService(serviceTlv, serviceData, in GetBackboneRouterPrimary()
179 … tlv = Get<Leader>().FindNextThreadService(tlv, serviceData, NetworkData::kServicePrefixMatch); in GetNextDnsSrpAnycastInfo()
312 …Get<Leader>().FindNextThreadService(aIterator.mServiceTlv, serviceData, NetworkData::kServicePrefi… in GetNextDnsSrpUnicastInfo()
Dmesh_forwarder_ftd.cpp176 …if (Get<BackboneRouter::Local>().IsPrimary() && Get<BackboneRouter::Leader>().IsDomainUnicast(ip6D… in HandleResolved()
435 SuccessOrExit(Get<NetworkData::Leader>().GetContext(aServiceId, context)); in AnycastRouteLookup()
437 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, config) == kErrorNone) in AnycastRouteLookup()
472 while (Get<NetworkData::Leader>().GetNextService(iterator, config) == kErrorNone) in AnycastRouteLookup()
543 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorDrop); in UpdateIp6RouteFtd()
544 mMeshDest = Get<BackboneRouter::Leader>().GetServer16(); in UpdateIp6RouteFtd()
562 else if (Get<NetworkData::Leader>().IsOnMesh(ip6Header.GetDestination())) in UpdateIp6RouteFtd()
569 …Get<NetworkData::Leader>().RouteLookup(ip6Header.GetSource(), ip6Header.GetDestination(), mMeshDes… in UpdateIp6RouteFtd()
608 Get<NetworkData::Leader>().IsOnMesh(ip6Headers.GetDestinationAddress())); in SendIcmpErrorIfDstUnreach()
748 Get<NetworkData::Leader>().IsOnMesh(ip6Headers.GetSourceAddress())) in UpdateRoutes()
/openthread-3.4.0/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-3.4.0/src/core/common/
Dinstance.hpp486 NetworkData::Leader mNetworkDataLeader;
525 MeshCoP::Leader mLeader;
529 BackboneRouter::Leader mBackboneRouterLeader;
737 template <> inline MeshCoP::Leader &Instance::Get(void) { return mLeader; } in Get()
758 template <> inline NetworkData::Leader &Instance::Get(void) { return mNetworkDataLeader; } in Get()
903 template <> inline BackboneRouter::Leader &Instance::Get(void) { return mBackboneRouterLeader; } in Get()
/openthread-3.4.0/src/cli/
DREADME_NETDATA.md5 … and devices offering services register their information with the Leader. The Leader collects and…
291 Register configured prefixes, routes, and services with the Leader.
344 Print Network Data received from the Leader.
360 Print Network Data received from the Leader as hex-encoded TLVs.
368 Print local Network Data to sync with Leader.
379 Print local Network Data to sync with Leader as hex-encoded TLVs.
/openthread-3.4.0/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()

123