/openthread-3.4.0/src/core/api/ |
D | netdata_api.cpp | 48 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 …]
|
D | dataset_ftd_api.cpp | 52 return AsCoreType(aInstance).Get<MeshCoP::Leader>().GetDelayTimerMinimal(); in otDatasetGetDelayTimerMinimal() 57 return AsCoreType(aInstance).Get<MeshCoP::Leader>().SetDelayTimerMinimal(aDelayTimerMinimal); in otDatasetSetDelayTimerMinimal()
|
D | backbone_router_api.cpp | 49 return AsCoreType(aInstance).Get<BackboneRouter::Leader>().GetConfig(*aConfig); in otBackboneRouterGetPrimary()
|
/openthread-3.4.0/src/core/backbone_router/ |
D | bbr_leader.cpp | 46 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 …]
|
D | bbr_local.cpp | 182 … !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 …]
|
D | ndproxy_table.cpp | 128 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()
|
D | bbr_leader.hpp | 61 class Leader : public InstanceLocator, private NonCopyable class 92 explicit Leader(Instance &aInstance);
|
D | bbr_local.hpp | 192 void HandleBackboneRouterPrimaryUpdate(Leader::State aState, const Config &aConfig); 256 void HandleDomainPrefixUpdate(Leader::DomainPrefixState aState);
|
/openthread-3.4.0/src/core/meshcop/ |
D | meshcop_leader.cpp | 58 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 …]
|
D | meshcop_leader.hpp | 67 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);
|
D | dataset_manager_ftd.cpp | 175 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/ |
D | network_data_leader_ftd.cpp | 61 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 …]
|
D | network_data_leader_ftd.hpp | 69 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);
|
D | dua_manager.cpp | 81 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 …]
|
D | network_data_notifier.cpp | 135 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()
|
D | tmf.cpp | 136 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()
|
D | mlr_manager.cpp | 79 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()
|
D | dua_manager.hpp | 104 void HandleDomainPrefixUpdate(BackboneRouter::Leader::DomainPrefixState aState); 113 …void HandleBackboneRouterPrimaryUpdate(BackboneRouter::Leader::State aState, const BackboneRouter:…
|
D | network_data_service.cpp | 92 …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()
|
D | mesh_forwarder_ftd.cpp | 176 …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/ |
D | nd_agent.cpp | 64 … 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()
|
D | dhcp6_server.cpp | 82 … 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/ |
D | instance.hpp | 486 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/ |
D | README_NETDATA.md | 5 … 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/ |
D | history_tracker.cpp | 369 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()
|