/openthread-2.7.6/src/core/common/ |
D | instance.hpp | 176 static Instance &Get(void); 327 template <typename Type> inline Type &Get(void); 437 template <> inline Radio &Instance::Get(void) in Get() function in ot::Instance 442 template <> inline Radio::Callbacks &Instance::Get(void) in Get() function in ot::Instance 448 template <> inline Notifier &Instance::Get(void) in Get() function in ot::Instance 453 template <> inline TimeTicker &Instance::Get(void) in Get() function in ot::Instance 458 template <> inline Settings &Instance::Get(void) in Get() function in ot::Instance 463 template <> inline SettingsDriver &Instance::Get(void) in Get() function in ot::Instance 468 template <> inline MeshForwarder &Instance::Get(void) in Get() function in ot::Instance 474 template <> inline RadioSelector &Instance::Get(void) in Get() function in ot::Instance [all …]
|
D | notifier.cpp | 120 aTasklet.Get<Notifier>().EmitEvents(); in EmitEvents() 139 Get<Mle::Mle>().HandleNotifierEvents(events); in EmitEvents() 140 Get<EnergyScanServer>().HandleNotifierEvents(events); in EmitEvents() 142 Get<MeshCoP::JoinerRouter>().HandleNotifierEvents(events); in EmitEvents() 144 Get<BackboneRouter::Manager>().HandleNotifierEvents(events); in EmitEvents() 147 Get<Utils::ChildSupervisor>().HandleNotifierEvents(events); in EmitEvents() 150 Get<MeshCoP::DatasetUpdater>().HandleNotifierEvents(events); in EmitEvents() 154 Get<NetworkData::Notifier>().HandleNotifierEvents(events); in EmitEvents() 157 Get<AnnounceSender>().HandleNotifierEvents(events); in EmitEvents() 160 Get<MeshCoP::BorderAgent>().HandleNotifierEvents(events); in EmitEvents() [all …]
|
D | instance.cpp | 126 Instance *instance = &Get(); in InitSingle() 138 Instance &Instance::Get(void) in Get() function in ot::Instance 180 Get<Settings>().Init(); in AfterInit() 181 IgnoreError(Get<Mle::MleRouter>().Restore()); in AfterInit() 184 Get<Trel::Link>().AfterInit(); in AfterInit() 190 Get<Extension::ExtensionBase>().SignalInstanceInit(); in AfterInit() 205 Get<Settings>().Deinit(); in Finalize() 208 IgnoreError(Get<Mac::SubMac>().Disable()); in Finalize() 227 Get<Settings>().Wipe(); in FactoryReset() 235 VerifyOrExit(Get<Mle::MleRouter>().IsDisabled(), error = kErrorInvalidState); in ErasePersistentInfo() [all …]
|
/openthread-2.7.6/src/core/api/ |
D | thread_api.cpp | 51 return instance.Get<Mle::MleRouter>().GetTimeout(); in otThreadGetChildTimeout() 58 instance.Get<Mle::MleRouter>().SetTimeout(aTimeout); in otThreadSetChildTimeout() 65 return &instance.Get<Mac::Mac>().GetExtendedPanId(); in otThreadGetExtendedPanId() 75 VerifyOrExit(instance.Get<Mle::MleRouter>().IsDisabled(), error = kErrorInvalidState); in otThreadSetExtendedPanId() 77 instance.Get<Mac::Mac>().SetExtendedPanId(extPanId); in otThreadSetExtendedPanId() 80 instance.Get<Mle::MleRouter>().SetMeshLocalPrefix(prefix); in otThreadSetExtendedPanId() 82 instance.Get<MeshCoP::ActiveDataset>().Clear(); in otThreadSetExtendedPanId() 83 instance.Get<MeshCoP::PendingDataset>().Clear(); in otThreadSetExtendedPanId() 95 … return instance.Get<Mle::MleRouter>().GetLeaderAddress(*static_cast<Ip6::Address *>(aLeaderRloc)); in otThreadGetLeaderRloc() 103 instance.Get<Mle::MleRouter>().GetDeviceMode().Get(config); in otThreadGetLinkMode() [all …]
|
D | link_api.cpp | 51 if (instance.Get<Mac::LinkRaw>().IsEnabled()) in otLinkGetChannel() 53 channel = instance.Get<Mac::LinkRaw>().GetChannel(); in otLinkGetChannel() 58 channel = instance.Get<Mac::Mac>().GetPanChannel(); in otLinkGetChannel() 70 if (instance.Get<Mac::LinkRaw>().IsEnabled()) in otLinkSetChannel() 72 error = instance.Get<Mac::LinkRaw>().SetChannel(aChannel); in otLinkSetChannel() 77 VerifyOrExit(instance.Get<Mle::MleRouter>().IsDisabled(), error = kErrorInvalidState); in otLinkSetChannel() 79 SuccessOrExit(error = instance.Get<Mac::Mac>().SetPanChannel(aChannel)); in otLinkSetChannel() 80 instance.Get<MeshCoP::ActiveDataset>().Clear(); in otLinkSetChannel() 81 instance.Get<MeshCoP::PendingDataset>().Clear(); in otLinkSetChannel() 91 return instance.Get<Mac::Mac>().GetSupportedChannelMask().GetMask(); in otLinkGetSupportedChannelMask() [all …]
|
D | link_raw_api.cpp | 54 return static_cast<Instance *>(aInstance)->Get<Mac::LinkRaw>().SetReceiveDone(aCallback); in otLinkRawSetReceiveDone() 59 return static_cast<Instance *>(aInstance)->Get<Mac::LinkRaw>().IsEnabled(); in otLinkRawIsEnabled() 64 return static_cast<Instance *>(aInstance)->Get<Mac::LinkRaw>().SetShortAddress(aShortAddress); in otLinkRawSetShortAddress() 69 return static_cast<Instance *>(aInstance)->Get<Radio>().GetPromiscuous(); in otLinkRawGetPromiscuous() 77 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSetPromiscuous() 78 instance.Get<Radio>().SetPromiscuous(aEnable); in otLinkRawSetPromiscuous() 89 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSleep() 91 error = instance.Get<Radio>().Sleep(); in otLinkRawSleep() 99 return static_cast<Instance *>(aInstance)->Get<Mac::LinkRaw>().Receive(); in otLinkRawReceive() 104 return &static_cast<Instance *>(aInstance)->Get<Mac::LinkRaw>().GetTransmitFrame(); in otLinkRawGetTransmitBuffer() [all …]
|
D | thread_ftd_api.cpp | 52 return instance.Get<ChildTable>().GetMaxChildrenAllowed(); in otThreadGetMaxAllowedChildren() 59 return instance.Get<ChildTable>().SetMaxChildrenAllowed(aMaxChildren); in otThreadSetMaxAllowedChildren() 66 return instance.Get<Mle::MleRouter>().GetMaxChildIpAddresses(); in otThreadGetMaxChildIpAddresses() 74 return instance.Get<Mle::MleRouter>().SetMaxChildIpAddresses(aMaxIpAddresses); in otThreadSetMaxChildIpAddresses() 82 return instance.Get<Mle::MleRouter>().IsRouterEligible(); in otThreadIsRouterEligible() 89 return instance.Get<Mle::MleRouter>().SetRouterEligible(aEligible); in otThreadSetRouterEligible() 96 return instance.Get<Mle::MleRouter>().SetPreferredRouterId(aRouterId); in otThreadSetPreferredRouterId() 103 return instance.Get<Mle::MleRouter>().GetLeaderWeight(); in otThreadGetLocalLeaderWeight() 110 instance.Get<Mle::MleRouter>().SetLeaderWeight(aWeight); in otThreadSetLocalLeaderWeight() 118 return instance.Get<Mle::MleRouter>().GetPreferredLeaderPartitionId(); in otThreadGetPreferredLeaderPartitionId() [all …]
|
D | srp_client_api.cpp | 50 return instance.Get<Srp::Client>().Start(*static_cast<const Ip6::SockAddr *>(aServerSockAddr)); in otSrpClientStart() 57 return instance.Get<Srp::Client>().Stop(); in otSrpClientStop() 64 return instance.Get<Srp::Client>().IsRunning(); in otSrpClientIsRunning() 71 return &instance.Get<Srp::Client>().GetServerAddress(); in otSrpClientGetServerAddress() 78 instance.Get<Srp::Client>().SetCallback(aCallback, aContext); in otSrpClientSetCallback() 86 instance.Get<Srp::Client>().EnableAutoStartMode(aCallback, aContext); in otSrpClientEnableAutoStartMode() 93 instance.Get<Srp::Client>().DisableAutoStartMode(); in otSrpClientDisableAutoStartMode() 100 return instance.Get<Srp::Client>().IsAutoStartModeEnabled(); in otSrpClientIsAutoStartModeEnabled() 108 return instance.Get<Srp::Client>().GetLeaseInterval(); in otSrpClientGetLeaseInterval() 115 return instance.Get<Srp::Client>().SetLeaseInterval(aInterval); in otSrpClientSetLeaseInterval() [all …]
|
D | ip6_api.cpp | 53 VerifyOrExit(!instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otIp6SetEnabled() 58 instance.Get<ThreadNetif>().Up(); in otIp6SetEnabled() 62 instance.Get<ThreadNetif>().Down(); in otIp6SetEnabled() 75 return instance.Get<ThreadNetif>().IsUp(); in otIp6IsEnabled() 82 return instance.Get<ThreadNetif>().GetUnicastAddresses().GetHead(); in otIp6GetUnicastAddresses() 89 return instance.Get<ThreadNetif>().AddExternalUnicastAddress( in otIp6AddUnicastAddress() 97 …return instance.Get<ThreadNetif>().RemoveExternalUnicastAddress(*static_cast<const Ip6::Address *>… in otIp6RemoveUnicastAddress() 104 return instance.Get<ThreadNetif>().GetMulticastAddresses().GetHead(); in otIp6GetMulticastAddresses() 111 …return instance.Get<ThreadNetif>().SubscribeExternalMulticast(*static_cast<const Ip6::Address *>(a… in otIp6SubscribeMulticastAddress() 118 …return instance.Get<ThreadNetif>().UnsubscribeExternalMulticast(*static_cast<const Ip6::Address *>… in otIp6UnsubscribeMulticastAddress() [all …]
|
D | channel_manager_api.cpp | 50 instance.Get<Utils::ChannelManager>().RequestChannelChange(aChannel); in otChannelManagerRequestChannelChange() 57 return instance.Get<Utils::ChannelManager>().GetRequestedChannel(); in otChannelManagerGetRequestedChannel() 64 return instance.Get<Utils::ChannelManager>().GetDelay(); in otChannelManagerGetDelay() 71 return instance.Get<Utils::ChannelManager>().SetDelay(aDelay); in otChannelManagerSetDelay() 79 return instance.Get<Utils::ChannelManager>().RequestChannelSelect(aSkipQualityCheck); in otChannelManagerRequestChannelSelect() 87 instance.Get<Utils::ChannelManager>().SetAutoChannelSelectionEnabled(aEnabled); in otChannelManagerSetAutoChannelSelectionEnabled() 94 return instance.Get<Utils::ChannelManager>().GetAutoChannelSelectionEnabled(); in otChannelManagerGetAutoChannelSelectionEnabled() 101 return instance.Get<Utils::ChannelManager>().SetAutoChannelSelectionInterval(aInterval); in otChannelManagerSetAutoChannelSelectionInterval() 108 return instance.Get<Utils::ChannelManager>().GetAutoChannelSelectionInterval(); in otChannelManagerGetAutoChannelSelectionInterval() 115 return instance.Get<Utils::ChannelManager>().GetSupportedChannels(); in otChannelManagerGetSupportedChannels() [all …]
|
D | backbone_router_ftd_api.cpp | 49 return instance.Get<BackboneRouter::Local>().SetEnabled(aEnabled); in otBackboneRouterSetEnabled() 56 return instance.Get<BackboneRouter::Local>().GetState(); in otBackboneRouterGetState() 65 instance.Get<BackboneRouter::Local>().GetConfig(*aConfig); in otBackboneRouterGetConfig() 74 return instance.Get<BackboneRouter::Local>().SetConfig(*aConfig); in otBackboneRouterSetConfig() 81 return instance.Get<BackboneRouter::Local>().AddService(true /* Force registration */); in otBackboneRouterRegister() 88 return instance.Get<BackboneRouter::Local>().GetRegistrationJitter(); in otBackboneRouterGetRegistrationJitter() 95 return instance.Get<BackboneRouter::Local>().SetRegistrationJitter(aJitter); in otBackboneRouterSetRegistrationJitter() 104 return instance.Get<BackboneRouter::Local>().GetDomainPrefix( in otBackboneRouterGetDomainPrefix() 114 return instance.Get<BackboneRouter::Local>().SetDomainPrefixCallback(aCallback, aContext); in otBackboneRouterSetDomainPrefixCallback() 124 instance.Get<BackboneRouter::NdProxyTable>().SetCallback(aCallback, aContext); in otBackboneRouterSetNdProxyCallback() [all …]
|
D | jam_detection_api.cpp | 49 instance.Get<Utils::JamDetector>().SetRssiThreshold(aRssiThreshold); in otJamDetectionSetRssiThreshold() 58 return instance.Get<Utils::JamDetector>().GetRssiThreshold(); in otJamDetectionGetRssiThreshold() 65 return instance.Get<Utils::JamDetector>().SetWindow(aWindow); in otJamDetectionSetWindow() 72 return instance.Get<Utils::JamDetector>().GetWindow(); in otJamDetectionGetWindow() 79 return instance.Get<Utils::JamDetector>().SetBusyPeriod(aBusyPeriod); in otJamDetectionSetBusyPeriod() 86 return instance.Get<Utils::JamDetector>().GetBusyPeriod(); in otJamDetectionGetBusyPeriod() 93 return instance.Get<Utils::JamDetector>().Start(aCallback, aContext); in otJamDetectionStart() 100 return instance.Get<Utils::JamDetector>().Stop(); in otJamDetectionStop() 107 return instance.Get<Utils::JamDetector>().IsEnabled(); in otJamDetectionIsEnabled() 114 return instance.Get<Utils::JamDetector>().GetState(); in otJamDetectionGetState() [all …]
|
D | netdata_publisher_api.cpp | 51 instance.Get<NetworkData::Publisher>().PublishDnsSrpServiceAnycast(aSequenceNumber); in otNetDataPublishDnsSrpServiceAnycast() 58 …instance.Get<NetworkData::Publisher>().PublishDnsSrpServiceUnicast(*static_cast<const Ip6::Address… in otNetDataPublishDnsSrpServiceUnicast() 66 instance.Get<NetworkData::Publisher>().PublishDnsSrpServiceUnicast(aPort); in otNetDataPublishDnsSrpServiceUnicastMeshLocalEid() 73 return instance.Get<NetworkData::Publisher>().IsDnsSrpServiceAdded(); in otNetDataIsDnsSrpServiceAdded() 82 instance.Get<NetworkData::Publisher>().SetDnsSrpServiceCallback(aCallback, aContext); in otNetDataSetDnsSrpServicePublisherCallback() 89 instance.Get<NetworkData::Publisher>().UnpublishDnsSrpService(); in otNetDataUnpublishDnsSrpService() 100 return instance.Get<NetworkData::Publisher>().PublishOnMeshPrefix( in otNetDataPublishOnMeshPrefix() 108 return instance.Get<NetworkData::Publisher>().PublishExternalRoute( in otNetDataPublishExternalRoute() 116 …return instance.Get<NetworkData::Publisher>().IsPrefixAdded(*static_cast<const Ip6::Prefix *>(aPre… in otNetDataIsPrefixAdded() 125 return instance.Get<NetworkData::Publisher>().SetPrefixCallback(aCallback, aContext); in otNetDataSetPrefixPublisherCallback() [all …]
|
D | border_router_api.cpp | 51 return instance.Get<BorderRouter::RoutingManager>().Init(aInfraIfIndex, aInfraIfIsRunning); in otBorderRoutingInit() 58 return instance.Get<BorderRouter::RoutingManager>().SetEnabled(aEnabled); in otBorderRoutingSetEnabled() 65 …return instance.Get<BorderRouter::RoutingManager>().GetOmrPrefix(static_cast<Ip6::Prefix &>(*aPref… in otBorderRoutingGetOmrPrefix() 72 …return instance.Get<BorderRouter::RoutingManager>().GetOnLinkPrefix(static_cast<Ip6::Prefix &>(*aP… in otBorderRoutingGetOnLinkPrefix() 83 return instance.Get<NetworkData::Local>().GetNetworkData(aStable, aData, *aDataLength); in otBorderRouterGetNetData() 97 error = instance.Get<BackboneRouter::Local>().SetDomainPrefix(*config); in otBorderRouterAddOnMeshPrefix() 102 error = instance.Get<NetworkData::Local>().AddOnMeshPrefix(*config); in otBorderRouterAddOnMeshPrefix() 117 error = instance.Get<BackboneRouter::Local>().RemoveDomainPrefix(*prefix); in otBorderRouterRemoveOnMeshPrefix() 122 error = instance.Get<NetworkData::Local>().RemoveOnMeshPrefix(*prefix); in otBorderRouterRemoveOnMeshPrefix() 137 return instance.Get<NetworkData::Local>().GetNextOnMeshPrefix(*aIterator, *config); in otBorderRouterGetNextOnMeshPrefix() [all …]
|
D | udp_api.cpp | 49 return instance.Get<Ip6::Udp>().NewMessage(0, Message::Settings(aSettings)); in otUdpNewMessage() 56 …return instance.Get<Ip6::Udp>().Open(*static_cast<Ip6::Udp::SocketHandle *>(aSocket), aCallback, a… in otUdpOpen() 63 return instance.Get<Ip6::Udp>().IsOpen(*static_cast<const Ip6::Udp::SocketHandle *>(aSocket)); in otUdpIsOpen() 70 return instance.Get<Ip6::Udp>().Close(*static_cast<Ip6::Udp::SocketHandle *>(aSocket)); in otUdpClose() 77 return instance.Get<Ip6::Udp>().Bind(*static_cast<Ip6::Udp::SocketHandle *>(aSocket), in otUdpBind() 85 return instance.Get<Ip6::Udp>().Connect(*static_cast<Ip6::Udp::SocketHandle *>(aSocket), in otUdpConnect() 93 return instance.Get<Ip6::Udp>().SendTo(*static_cast<Ip6::Udp::SocketHandle *>(aSocket), in otUdpSend() 102 return instance.Get<Ip6::Udp>().GetUdpSockets(); in otUdpGetSockets() 110 instance.Get<Ip6::Udp>().SetUdpForwarder(aForwarder, aContext); in otUdpForwardSetForwarder() 124 messageInfo.SetSockAddr(instance.Get<Mle::MleRouter>().GetMeshLocal16()); in otUdpForwardReceive() [all …]
|
D | commissioner_api.cpp | 52 …return instance.Get<MeshCoP::Commissioner>().Start(aStateCallback, aJoinerCallback, aCallbackConte… in otCommissionerStart() 59 return instance.Get<MeshCoP::Commissioner>().Stop(/* aResign */ true); in otCommissionerStop() 65 …MeshCoP::Commissioner &commissioner = static_cast<Instance *>(aInstance)->Get<MeshCoP::Commissione… in otCommissionerAddJoiner() 86 …return instance.Get<MeshCoP::Commissioner>().AddJoiner(*static_cast<const MeshCoP::JoinerDiscerner… in otCommissionerAddJoinerWithDiscerner() 94 return instance.Get<MeshCoP::Commissioner>().GetNextJoinerInfo(*aIterator, *aJoiner); in otCommissionerGetNextJoinerInfo() 100 …MeshCoP::Commissioner &commissioner = static_cast<Instance *>(aInstance)->Get<MeshCoP::Commissione… in otCommissionerRemoveJoiner() 118 return instance.Get<MeshCoP::Commissioner>().RemoveJoiner( in otCommissionerRemoveJoinerWithDiscerner() 126 return instance.Get<MeshCoP::Commissioner>().SetProvisioningUrl(aProvisioningUrl); in otCommissionerSetProvisioningUrl() 133 return instance.Get<MeshCoP::Commissioner>().GetProvisioningUrl(); in otCommissionerGetProvisioningUrl() 144 return instance.Get<MeshCoP::Commissioner>().GetAnnounceBeginClient().SendRequest( in otCommissionerAnnounceBegin() [all …]
|
/openthread-2.7.6/src/core/utils/ |
D | child_supervision.cpp | 70 child = Get<ChildTable>().GetChildAtIndex(childIndex); in GetDestination() 83 message = Get<MessagePool>().New(Message::kTypeSupervision, sizeof(uint8_t)); in SendMessage() 91 childIndex = Get<ChildTable>().GetChildIndex(aChild); in SendMessage() 94 SuccessOrExit(Get<ThreadNetif>().SendMessage(*message)); in SendMessage() 110 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValid)) in HandleTimeTick() 129 shouldRun = ((mSupervisionInterval != 0) && !Get<Mle::MleRouter>().IsDisabled() && in CheckState() 130 Get<ChildTable>().HasChildren(Child::kInStateValid)); in CheckState() 132 if (shouldRun && !Get<TimeTicker>().IsReceiverRegistered(TimeTicker::kChildSupervisor)) in CheckState() 134 Get<TimeTicker>().RegisterReceiver(TimeTicker::kChildSupervisor); in CheckState() 138 if (!shouldRun && Get<TimeTicker>().IsReceiverRegistered(TimeTicker::kChildSupervisor)) in CheckState() [all …]
|
/openthread-2.7.6/src/core/thread/ |
D | thread_netif.cpp | 168 Get<Mac::Mac>().SetEnabled(true); in Up() 170 IgnoreError(Get<Utils::ChannelMonitor>().Start()); in Up() 172 Get<MeshForwarder>().Start(); in Up() 177 IgnoreError(Get<Mle::MleRouter>().Enable()); in Up() 178 IgnoreError(Get<Tmf::Agent>().Start()); in Up() 180 IgnoreError(Get<Dns::ServiceDiscovery::Server>().Start()); in Up() 183 IgnoreError(Get<Dns::Client>().Start()); in Up() 186 IgnoreError(Get<Sntp::Client>().Start()); in Up() 188 Get<Notifier>().Signal(kEventThreadNetifStateChanged); in Up() 199 Get<Dns::Client>().Stop(); in Down() [all …]
|
D | mle.cpp | 128 mLinkLocal64.GetAddress().SetToLinkLocalAddress(Get<Mac::Mac>().GetExtAddress()); in Mle() 140 meshLocalPrefix.SetFromExtendedPanId(Get<Mac::Mac>().GetExtendedPanId()); in Mle() 150 Get<Ip6::Mpl>().SetMatchingAddress(mMeshLocal16.GetAddress()); in Mle() 193 Get<ThreadNetif>().RemoveUnicastAddress(mLinkLocal64); in Disable() 204 VerifyOrExit(!Get<Radio>().GetPromiscuous(), error = kErrorInvalidState); in Start() 205 VerifyOrExit(Get<ThreadNetif>().IsUp(), error = kErrorInvalidState); in Start() 207 if (Get<Mac::Mac>().GetPanId() == Mac::kPanIdBroadcast) in Start() 209 Get<Mac::Mac>().SetPanId(Mac::GenerateRandomPanId()); in Start() 219 Get<KeyManager>().Start(); in Start() 233 if (Get<MleRouter>().BecomeRouter(ThreadStatusTlv::kTooFewRouters) != kErrorNone) in Start() [all …]
|
D | dua_manager.cpp | 78 Get<Tmf::Agent>().AddResource(mDuaNotification); in DuaManager() 88 IgnoreError(Get<Tmf::Agent>().AbortTransaction(&DuaManager::HandleDuaResponse, this)); in HandleDomainPrefixUpdate() 109 VerifyOrExit(!Get<ThreadNetif>().HasUnicastAddress(GetDomainUnicastAddress())); in HandleDomainPrefixUpdate() 116 const Ip6::Prefix *prefix = Get<BackboneRouter::Leader>().GetDomainPrefix(); in HandleDomainPrefixUpdate() 150 …if ((error = Get<Utils::Slaac>().GenerateIid(mDomainUnicastAddress, nullptr, 0, &dadCounter)) == k… in GenerateDomainUnicastAddressIid() 178 if (Get<ThreadNetif>().HasUnicastAddress(GetDomainUnicastAddress())) in SetFixedDuaInterfaceIdentifier() 195 Get<ThreadNetif>().HasUnicastAddress(GetDomainUnicastAddress())) in ClearFixedDuaInterfaceIdentifier() 216 SuccessOrExit(Get<Settings>().Read(dadInfo)); in Restore() 228 return Get<Settings>().Save(dadInfo); in Store() 235 Get<ThreadNetif>().AddUnicastAddress(mDomainUnicastAddress); in AddDomainUnicastAddress() [all …]
|
/openthread-2.7.6/src/core/mac/ |
D | sub_mac_callbacks.cpp | 57 if (Get<LinkRaw>().IsEnabled()) in ReceiveDone() 59 Get<LinkRaw>().InvokeReceiveDone(aFrame, aError); in ReceiveDone() 64 Get<Mac>().HandleReceivedFrame(aFrame, aError); in ReceiveDone() 70 Get<Mac>().RecordCcaStatus(aCcaSuccess, aChannel); in RecordCcaStatus() 79 Get<Mac>().RecordFrameTransmitStatus(aFrame, aAckFrame, aError, aRetryCount, aWillRetx); in RecordFrameTransmitStatus() 85 if (Get<LinkRaw>().IsEnabled()) in TransmitDone() 87 Get<LinkRaw>().InvokeTransmitDone(aFrame, aAckFrame, aError); in TransmitDone() 92 Get<Mac>().HandleTransmitDone(aFrame, aAckFrame, aError); in TransmitDone() 99 if (Get<LinkRaw>().IsEnabled()) in EnergyScanDone() 101 Get<LinkRaw>().InvokeEnergyScanDone(aMaxRssi); in EnergyScanDone() [all …]
|
/openthread-2.7.6/src/core/backbone_router/ |
D | bbr_local.cpp | 113 Get<Notifier>().Signal(kEventThreadBackboneRouterLocalChanged); in Reset() 162 Get<Notifier>().Signal(kEventThreadBackboneRouterLocalChanged); in SetConfig() 177 VerifyOrExit(mState != OT_BACKBONE_ROUTER_STATE_DISABLED && Get<Mle::Mle>().IsAttached()); in AddService() 180 … !Get<BackboneRouter::Leader>().HasPrimary() /* if no available Backbone Router service */ || in AddService() 181 Get<BackboneRouter::Leader>().GetServer16() == Get<Mle::MleRouter>().GetRloc16() in AddService() 189 …SuccessOrExit(error = Get<NetworkData::Service::Manager>().Add<NetworkData::Service::BackboneRoute… in AddService() 190 Get<NetworkData::Notifier>().HandleServerDataUpdated(); in AddService() 203 …SuccessOrExit(error = Get<NetworkData::Service::Manager>().Remove<NetworkData::Service::BackboneRo… in RemoveService() 204 Get<NetworkData::Notifier>().HandleServerDataUpdated(); in RemoveService() 218 … mAllNetworkBackboneRouters.SetMulticastNetworkPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in SetState() [all …]
|
/openthread-2.7.6/src/core/net/ |
D | nd_agent.cpp | 50 uint16_t rloc16 = Get<Mle::MleRouter>().GetRloc16(); in UpdateService() 63 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService() 70 …error = Get<NetworkData::Leader>().GetContext(static_cast<const Ip6::Address &>(config.mPrefix.mPr… in UpdateService() 84 Get<ThreadNetif>().RemoveUnicastAddress(mAloc); in UpdateService() 93 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService() 100 …error = Get<NetworkData::Leader>().GetContext(static_cast<const Ip6::Address &>(config.mPrefix.mPr… in UpdateService() 108 … mAloc.GetAddress().SetToAnycastLocator(Get<Mle::MleRouter>().GetMeshLocalPrefix(), rloc); in UpdateService() 109 Get<ThreadNetif>().AddUnicastAddress(mAloc); in UpdateService() 122 Get<ThreadNetif>().RemoveUnicastAddress(mAloc); in ApplyMeshLocalPrefix() 123 mAloc.GetAddress().SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in ApplyMeshLocalPrefix() [all …]
|
/openthread-2.7.6/src/core/meshcop/ |
D | dataset_manager_ftd.cpp | 97 VerifyOrExit(Get<Mle::MleRouter>().IsLeader()); in HandleSet() 135 if (channel.GetChannel() != Get<Mac::Mac>().GetPanChannel()) in HandleSet() 142 if (Tlv::Find<PanIdTlv>(aMessage, panId) == kErrorNone && panId != Get<Mac::Mac>().GetPanId()) in HandleSet() 149 meshLocalPrefix != Get<Mle::MleRouter>().GetMeshLocalPrefix()) in HandleSet() 159 if (networkKey != Get<KeyManager>().GetNetworkKey()) in HandleSet() 167 …if (type == Tlv::kPendingTimestamp && (!hasNetworkKey || (networkKey == Get<KeyManager>().GetNetwo… in HandleSet() 170 const Timestamp *localActiveTimestamp = Get<ActiveDataset>().GetTimestamp(); in HandleSet() 183 Get<NetworkData::Leader>().GetCommissioningDataSubTlv(Tlv::kCommissionerSessionId)); in HandleSet() 195 IgnoreError(Get<ActiveDataset>().Read(dataset)); in HandleSet() 222 else if (delayTimerTlv.GetDelayTimer() < Get<Leader>().GetDelayTimerMinimal()) in HandleSet() [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_psa_its.data | 37 Get 0 bytes of 10 at 10 40 Get 1 byte of 10 at 9 43 Get 0 bytes of 10 at 0 46 Get 1 byte of 10 at 0 49 Get 2 bytes of 10 at 1 52 Get 1 byte of 10 at 10: out of range 55 Get 1 byte of 10 at 11: out of range 58 Get 0 bytes of 10 at 11: out of range 61 Get -1 byte of 10 at 10: out of range 64 Get 1 byte of 10 at -1: out of range
|