/openthread-latest/src/core/thread/ |
D | network_data_leader.cpp | 58 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 …]
|
D | network_data_leader_ftd.cpp | 61 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 …]
|
D | network_data_notifier.cpp | 137 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()
|
D | network_data_leader.hpp | 69 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);
|
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() 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()
|
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 | dua_manager.cpp | 115 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()
|
D | network_data_service.cpp | 79 …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/ |
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() 109 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetCommissioningDataset(AsCoreType(aDatase… in otNetDataGetCommissioningDataset() [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-latest/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() 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 …]
|
D | meshcop_leader.hpp | 52 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);
|
D | dataset_manager_ftd.cpp | 157 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/ |
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() 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 …]
|
D | bbr_local.cpp | 184 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()
|
D | bbr_leader.hpp | 86 class Leader : public InstanceLocator, private NonCopyable class 107 explicit Leader(Instance &aInstance);
|
D | ndproxy_table.cpp | 270 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/ |
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-latest/tests/unit/ |
D | test_network_data.cpp | 615 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/ |
D | instance.hpp | 563 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/ |
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()
|
D | slaac_address.cpp | 192 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/ |
D | README_NETDATA.md | 5 … 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.
|