/openthread-2.7.6/src/core/api/ |
D | thread_api.cpp | 49 Instance &instance = *static_cast<Instance *>(aInstance); in otThreadGetChildTimeout() local 51 return instance.Get<Mle::MleRouter>().GetTimeout(); in otThreadGetChildTimeout() 56 Instance &instance = *static_cast<Instance *>(aInstance); in otThreadSetChildTimeout() local 58 instance.Get<Mle::MleRouter>().SetTimeout(aTimeout); in otThreadSetChildTimeout() 63 Instance &instance = *static_cast<Instance *>(aInstance); in otThreadGetExtendedPanId() local 65 return &instance.Get<Mac::Mac>().GetExtendedPanId(); in otThreadGetExtendedPanId() 71 Instance & instance = *static_cast<Instance *>(aInstance); in otThreadSetExtendedPanId() local 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() [all …]
|
D | link_api.cpp | 47 Instance &instance = *static_cast<Instance *>(aInstance); in otLinkGetChannel() local 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() 67 Instance &instance = *static_cast<Instance *>(aInstance); in otLinkSetChannel() local 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() [all …]
|
D | thread_ftd_api.cpp | 50 Instance &instance = *static_cast<Instance *>(aInstance); in otThreadGetMaxAllowedChildren() local 52 return instance.Get<ChildTable>().GetMaxChildrenAllowed(); in otThreadGetMaxAllowedChildren() 57 Instance &instance = *static_cast<Instance *>(aInstance); in otThreadSetMaxAllowedChildren() local 59 return instance.Get<ChildTable>().SetMaxChildrenAllowed(aMaxChildren); in otThreadSetMaxAllowedChildren() 64 Instance &instance = *static_cast<Instance *>(aInstance); in otThreadGetMaxChildIpAddresses() local 66 return instance.Get<Mle::MleRouter>().GetMaxChildIpAddresses(); in otThreadGetMaxChildIpAddresses() 72 Instance &instance = *static_cast<Instance *>(aInstance); in otThreadSetMaxChildIpAddresses() local 74 return instance.Get<Mle::MleRouter>().SetMaxChildIpAddresses(aMaxIpAddresses); in otThreadSetMaxChildIpAddresses() 80 Instance &instance = *static_cast<Instance *>(aInstance); in otThreadIsRouterEligible() local 82 return instance.Get<Mle::MleRouter>().IsRouterEligible(); in otThreadIsRouterEligible() [all …]
|
D | srp_client_api.cpp | 48 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpClientStart() local 50 return instance.Get<Srp::Client>().Start(*static_cast<const Ip6::SockAddr *>(aServerSockAddr)); in otSrpClientStart() 55 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpClientStop() local 57 return instance.Get<Srp::Client>().Stop(); in otSrpClientStop() 62 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpClientIsRunning() local 64 return instance.Get<Srp::Client>().IsRunning(); in otSrpClientIsRunning() 69 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpClientGetServerAddress() local 71 return &instance.Get<Srp::Client>().GetServerAddress(); in otSrpClientGetServerAddress() 76 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpClientSetCallback() local 78 instance.Get<Srp::Client>().SetCallback(aCallback, aContext); in otSrpClientSetCallback() [all …]
|
D | channel_manager_api.cpp | 48 Instance &instance = *static_cast<Instance *>(aInstance); in otChannelManagerRequestChannelChange() local 50 instance.Get<Utils::ChannelManager>().RequestChannelChange(aChannel); in otChannelManagerRequestChannelChange() 55 Instance &instance = *static_cast<Instance *>(aInstance); in otChannelManagerGetRequestedChannel() local 57 return instance.Get<Utils::ChannelManager>().GetRequestedChannel(); in otChannelManagerGetRequestedChannel() 62 Instance &instance = *static_cast<Instance *>(aInstance); in otChannelManagerGetDelay() local 64 return instance.Get<Utils::ChannelManager>().GetDelay(); in otChannelManagerGetDelay() 69 Instance &instance = *static_cast<Instance *>(aInstance); in otChannelManagerSetDelay() local 71 return instance.Get<Utils::ChannelManager>().SetDelay(aDelay); in otChannelManagerSetDelay() 77 Instance &instance = *static_cast<Instance *>(aInstance); in otChannelManagerRequestChannelSelect() local 79 return instance.Get<Utils::ChannelManager>().RequestChannelSelect(aSkipQualityCheck); in otChannelManagerRequestChannelSelect() [all …]
|
D | ip6_api.cpp | 50 Instance &instance = *static_cast<Instance *>(aInstance); in otIp6SetEnabled() local 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() 73 Instance &instance = *static_cast<Instance *>(aInstance); in otIp6IsEnabled() local 75 return instance.Get<ThreadNetif>().IsUp(); in otIp6IsEnabled() 80 Instance &instance = *static_cast<Instance *>(aInstance); in otIp6GetUnicastAddresses() local 82 return instance.Get<ThreadNetif>().GetUnicastAddresses().GetHead(); in otIp6GetUnicastAddresses() 87 Instance &instance = *static_cast<Instance *>(aInstance); in otIp6AddUnicastAddress() local 89 return instance.Get<ThreadNetif>().AddExternalUnicastAddress( in otIp6AddUnicastAddress() [all …]
|
D | coap_secure_api.cpp | 50 Instance &instance = *static_cast<Instance *>(aInstance); in otCoapSecureStart() local 52 return instance.GetApplicationCoapSecure().Start(aPort); in otCoapSecureStart() 62 Instance &instance = *static_cast<Instance *>(aInstance); in otCoapSecureSetCertificate() local 66 …instance.GetApplicationCoapSecure().SetCertificate(aX509Cert, aX509Length, aPrivateKey, aPrivateKe… in otCoapSecureSetCertificate() 73 Instance &instance = *static_cast<Instance *>(aInstance); in otCoapSecureSetCaCertificateChain() local 77 …instance.GetApplicationCoapSecure().SetCaCertificateChain(aX509CaCertificateChain, aX509CaCertChai… in otCoapSecureSetCaCertificateChain() 88 Instance &instance = *static_cast<Instance *>(aInstance); in otCoapSecureSetPsk() local 92 … instance.GetApplicationCoapSecure().SetPreSharedKey(aPsk, aPskLength, aPskIdentity, aPskIdLength); in otCoapSecureSetPsk() 102 Instance &instance = *static_cast<Instance *>(aInstance); in otCoapSecureGetPeerCertificateBase64() local 104 …return instance.GetApplicationCoapSecure().GetPeerCertificateBase64(aPeerCert, aCertLength, aCertB… in otCoapSecureGetPeerCertificateBase64() [all …]
|
D | backbone_router_ftd_api.cpp | 47 Instance &instance = *static_cast<Instance *>(aInstance); in otBackboneRouterSetEnabled() local 49 return instance.Get<BackboneRouter::Local>().SetEnabled(aEnabled); in otBackboneRouterSetEnabled() 54 Instance &instance = *static_cast<Instance *>(aInstance); in otBackboneRouterGetState() local 56 return instance.Get<BackboneRouter::Local>().GetState(); in otBackboneRouterGetState() 61 Instance &instance = *static_cast<Instance *>(aInstance); in otBackboneRouterGetConfig() local 65 instance.Get<BackboneRouter::Local>().GetConfig(*aConfig); in otBackboneRouterGetConfig() 70 Instance &instance = *static_cast<Instance *>(aInstance); in otBackboneRouterSetConfig() local 74 return instance.Get<BackboneRouter::Local>().SetConfig(*aConfig); in otBackboneRouterSetConfig() 79 Instance &instance = *static_cast<Instance *>(aInstance); in otBackboneRouterRegister() local 81 return instance.Get<BackboneRouter::Local>().AddService(true /* Force registration */); in otBackboneRouterRegister() [all …]
|
D | jam_detection_api.cpp | 47 Instance &instance = *static_cast<Instance *>(aInstance); in otJamDetectionSetRssiThreshold() local 49 instance.Get<Utils::JamDetector>().SetRssiThreshold(aRssiThreshold); in otJamDetectionSetRssiThreshold() 56 Instance &instance = *static_cast<Instance *>(aInstance); in otJamDetectionGetRssiThreshold() local 58 return instance.Get<Utils::JamDetector>().GetRssiThreshold(); in otJamDetectionGetRssiThreshold() 63 Instance &instance = *static_cast<Instance *>(aInstance); in otJamDetectionSetWindow() local 65 return instance.Get<Utils::JamDetector>().SetWindow(aWindow); in otJamDetectionSetWindow() 70 Instance &instance = *static_cast<Instance *>(aInstance); in otJamDetectionGetWindow() local 72 return instance.Get<Utils::JamDetector>().GetWindow(); in otJamDetectionGetWindow() 77 Instance &instance = *static_cast<Instance *>(aInstance); in otJamDetectionSetBusyPeriod() local 79 return instance.Get<Utils::JamDetector>().SetBusyPeriod(aBusyPeriod); in otJamDetectionSetBusyPeriod() [all …]
|
D | netdata_publisher_api.cpp | 49 Instance &instance = *static_cast<Instance *>(aInstance); in otNetDataPublishDnsSrpServiceAnycast() local 51 instance.Get<NetworkData::Publisher>().PublishDnsSrpServiceAnycast(aSequenceNumber); in otNetDataPublishDnsSrpServiceAnycast() 56 Instance &instance = *static_cast<Instance *>(aInstance); in otNetDataPublishDnsSrpServiceUnicast() local 58 …instance.Get<NetworkData::Publisher>().PublishDnsSrpServiceUnicast(*static_cast<const Ip6::Address… in otNetDataPublishDnsSrpServiceUnicast() 64 Instance &instance = *static_cast<Instance *>(aInstance); in otNetDataPublishDnsSrpServiceUnicastMeshLocalEid() local 66 instance.Get<NetworkData::Publisher>().PublishDnsSrpServiceUnicast(aPort); in otNetDataPublishDnsSrpServiceUnicastMeshLocalEid() 71 Instance &instance = *static_cast<Instance *>(aInstance); in otNetDataIsDnsSrpServiceAdded() local 73 return instance.Get<NetworkData::Publisher>().IsDnsSrpServiceAdded(); in otNetDataIsDnsSrpServiceAdded() 80 Instance &instance = *static_cast<Instance *>(aInstance); in otNetDataSetDnsSrpServicePublisherCallback() local 82 instance.Get<NetworkData::Publisher>().SetDnsSrpServiceCallback(aCallback, aContext); in otNetDataSetDnsSrpServicePublisherCallback() [all …]
|
D | instance_api.cpp | 64 Instance *instance; in otInstanceInit() local 66 instance = Instance::Init(aInstanceBuffer, aInstanceBufferSize); in otInstanceInit() 69 return instance; in otInstanceInit() 81 Instance &instance = *static_cast<Instance *>(aInstance); in otInstanceIsInitialized() local 83 return instance.IsInitialized(); in otInstanceIsInitialized() 92 Instance &instance = *static_cast<Instance *>(aInstance); in otInstanceFinalize() local 93 instance.Finalize(); in otInstanceFinalize() 98 Instance &instance = *static_cast<Instance *>(aInstance); in otInstanceReset() local 100 instance.Reset(); in otInstanceReset() 106 Instance &instance = *static_cast<Instance *>(aInstance); in otSetStateChangedCallback() local [all …]
|
D | udp_api.cpp | 47 Instance &instance = *static_cast<Instance *>(aInstance); in otUdpNewMessage() local 49 return instance.Get<Ip6::Udp>().NewMessage(0, Message::Settings(aSettings)); in otUdpNewMessage() 54 Instance &instance = *static_cast<Instance *>(aInstance); in otUdpOpen() local 56 …return instance.Get<Ip6::Udp>().Open(*static_cast<Ip6::Udp::SocketHandle *>(aSocket), aCallback, a… in otUdpOpen() 61 Instance &instance = *static_cast<Instance *>(aInstance); in otUdpIsOpen() local 63 return instance.Get<Ip6::Udp>().IsOpen(*static_cast<const Ip6::Udp::SocketHandle *>(aSocket)); in otUdpIsOpen() 68 Instance &instance = *static_cast<Instance *>(aInstance); in otUdpClose() local 70 return instance.Get<Ip6::Udp>().Close(*static_cast<Ip6::Udp::SocketHandle *>(aSocket)); in otUdpClose() 75 Instance &instance = *static_cast<Instance *>(aInstance); in otUdpBind() local 77 return instance.Get<Ip6::Udp>().Bind(*static_cast<Ip6::Udp::SocketHandle *>(aSocket), in otUdpBind() [all …]
|
D | border_router_api.cpp | 49 Instance &instance = *static_cast<Instance *>(aInstance); in otBorderRoutingInit() local 51 return instance.Get<BorderRouter::RoutingManager>().Init(aInfraIfIndex, aInfraIfIsRunning); in otBorderRoutingInit() 56 Instance &instance = *static_cast<Instance *>(aInstance); in otBorderRoutingSetEnabled() local 58 return instance.Get<BorderRouter::RoutingManager>().SetEnabled(aEnabled); in otBorderRoutingSetEnabled() 63 Instance &instance = *static_cast<Instance *>(aInstance); in otBorderRoutingGetOmrPrefix() local 65 …return instance.Get<BorderRouter::RoutingManager>().GetOmrPrefix(static_cast<Ip6::Prefix &>(*aPref… in otBorderRoutingGetOmrPrefix() 70 Instance &instance = *static_cast<Instance *>(aInstance); in otBorderRoutingGetOnLinkPrefix() local 72 …return instance.Get<BorderRouter::RoutingManager>().GetOnLinkPrefix(static_cast<Ip6::Prefix &>(*aP… in otBorderRoutingGetOnLinkPrefix() 79 Instance &instance = *static_cast<Instance *>(aInstance); in otBorderRouterGetNetData() local 83 return instance.Get<NetworkData::Local>().GetNetworkData(aStable, aData, *aDataLength); in otBorderRouterGetNetData() [all …]
|
D | commissioner_api.cpp | 50 Instance &instance = *static_cast<Instance *>(aInstance); in otCommissionerStart() local 52 …return instance.Get<MeshCoP::Commissioner>().Start(aStateCallback, aJoinerCallback, aCallbackConte… in otCommissionerStart() 57 Instance &instance = *static_cast<Instance *>(aInstance); in otCommissionerStop() local 59 return instance.Get<MeshCoP::Commissioner>().Stop(/* aResign */ true); in otCommissionerStop() 84 Instance &instance = *static_cast<Instance *>(aInstance); in otCommissionerAddJoinerWithDiscerner() local 86 …return instance.Get<MeshCoP::Commissioner>().AddJoiner(*static_cast<const MeshCoP::JoinerDiscerner… in otCommissionerAddJoinerWithDiscerner() 92 Instance &instance = *static_cast<Instance *>(aInstance); in otCommissionerGetNextJoinerInfo() local 94 return instance.Get<MeshCoP::Commissioner>().GetNextJoinerInfo(*aIterator, *aJoiner); in otCommissionerGetNextJoinerInfo() 116 Instance &instance = *static_cast<Instance *>(aInstance); in otCommissionerRemoveJoinerWithDiscerner() local 118 return instance.Get<MeshCoP::Commissioner>().RemoveJoiner( in otCommissionerRemoveJoinerWithDiscerner() [all …]
|
D | network_time_api.cpp | 47 Instance &instance = *static_cast<Instance *>(aInstance); in otNetworkTimeGet() local 49 return instance.Get<TimeSync>().GetTime(*aNetworkTime); in otNetworkTimeGet() 55 Instance &instance = *static_cast<Instance *>(aInstance); in otNetworkTimeSetSyncPeriod() local 57 VerifyOrExit(instance.Get<Mle::MleRouter>().IsDisabled(), error = kErrorInvalidState); in otNetworkTimeSetSyncPeriod() 59 instance.Get<TimeSync>().SetTimeSyncPeriod(aTimeSyncPeriod); in otNetworkTimeSetSyncPeriod() 67 Instance &instance = *static_cast<Instance *>(aInstance); in otNetworkTimeGetSyncPeriod() local 69 return instance.Get<TimeSync>().GetTimeSyncPeriod(); in otNetworkTimeGetSyncPeriod() 75 Instance &instance = *static_cast<Instance *>(aInstance); in otNetworkTimeSetXtalThreshold() local 77 VerifyOrExit(instance.Get<Mle::MleRouter>().IsDisabled(), error = kErrorInvalidState); in otNetworkTimeSetXtalThreshold() 79 instance.Get<TimeSync>().SetXtalThreshold(aXtalThreshold); in otNetworkTimeSetXtalThreshold() [all …]
|
D | dataset_api.cpp | 47 Instance &instance = *static_cast<Instance *>(aInstance); in otDatasetIsCommissioned() local 49 return instance.Get<MeshCoP::ActiveDataset>().IsCommissioned(); in otDatasetIsCommissioned() 54 Instance &instance = *static_cast<Instance *>(aInstance); in otDatasetGetActive() local 58 …return instance.Get<MeshCoP::ActiveDataset>().Read(*static_cast<MeshCoP::Dataset::Info *>(aDataset… in otDatasetGetActive() 63 Instance &instance = *static_cast<Instance *>(aInstance); in otDatasetGetActiveTlvs() local 67 return instance.Get<MeshCoP::ActiveDataset>().Read(*aDataset); in otDatasetGetActiveTlvs() 72 Instance &instance = *static_cast<Instance *>(aInstance); in otDatasetSetActive() local 76 …return instance.Get<MeshCoP::ActiveDataset>().Save(*static_cast<const MeshCoP::Dataset::Info *>(aD… in otDatasetSetActive() 81 Instance &instance = *static_cast<Instance *>(aInstance); in otDatasetSetActiveTlvs() local 85 return instance.Get<MeshCoP::ActiveDataset>().Save(*aDataset); in otDatasetSetActiveTlvs() [all …]
|
D | link_raw_api.cpp | 75 Instance &instance = *static_cast<Instance *>(aInstance); in otLinkRawSetPromiscuous() local 77 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSetPromiscuous() 78 instance.Get<Radio>().SetPromiscuous(aEnable); in otLinkRawSetPromiscuous() 87 Instance &instance = *static_cast<Instance *>(aInstance); in otLinkRawSleep() local 89 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSleep() 91 error = instance.Get<Radio>().Sleep(); in otLinkRawSleep() 133 Instance &instance = *static_cast<Instance *>(aInstance); in otLinkRawSrcMatchEnable() local 135 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSrcMatchEnable() 137 instance.Get<Radio>().EnableSrcMatch(aEnable); in otLinkRawSrcMatchEnable() 146 Instance &instance = *static_cast<Instance *>(aInstance); in otLinkRawSrcMatchAddShortEntry() local [all …]
|
D | child_supervision_api.cpp | 49 Instance &instance = *static_cast<Instance *>(aInstance); in otChildSupervisionGetInterval() local 51 return instance.Get<Utils::ChildSupervisor>().GetSupervisionInterval(); in otChildSupervisionGetInterval() 56 Instance &instance = *static_cast<Instance *>(aInstance); in otChildSupervisionSetInterval() local 58 instance.Get<Utils::ChildSupervisor>().SetSupervisionInterval(aInterval); in otChildSupervisionSetInterval() 65 Instance &instance = *static_cast<Instance *>(aInstance); in otChildSupervisionGetCheckTimeout() local 67 return instance.Get<Utils::SupervisionListener>().GetTimeout(); in otChildSupervisionGetCheckTimeout() 72 Instance &instance = *static_cast<Instance *>(aInstance); in otChildSupervisionSetCheckTimeout() local 74 instance.Get<Utils::SupervisionListener>().SetTimeout(aTimeout); in otChildSupervisionSetCheckTimeout()
|
D | srp_server_api.cpp | 47 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpServerGetDomain() local 49 return instance.Get<Srp::Server>().GetDomain(); in otSrpServerGetDomain() 54 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpServerSetDomain() local 56 return instance.Get<Srp::Server>().SetDomain(aDomain); in otSrpServerSetDomain() 61 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpServerGetState() local 63 return static_cast<otSrpServerState>(instance.Get<Srp::Server>().GetState()); in otSrpServerGetState() 68 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpServerSetEnabled() local 70 instance.Get<Srp::Server>().SetEnabled(aEnabled); in otSrpServerSetEnabled() 75 Instance &instance = *static_cast<Instance *>(aInstance); in otSrpServerGetLeaseConfig() local 77 …instance.Get<Srp::Server>().GetLeaseConfig(static_cast<Srp::Server::LeaseConfig &>(*aLeaseConfig)); in otSrpServerGetLeaseConfig() [all …]
|
D | joiner_api.cpp | 55 Instance &instance = *static_cast<Instance *>(aInstance); in otJoinerStart() local 57 …return instance.Get<MeshCoP::Joiner>().Start(aPskd, aProvisioningUrl, aVendorName, aVendorModel, a… in otJoinerStart() 63 Instance &instance = *static_cast<Instance *>(aInstance); in otJoinerStop() local 65 instance.Get<MeshCoP::Joiner>().Stop(); in otJoinerStop() 70 Instance &instance = *static_cast<Instance *>(aInstance); in otJoinerGetState() local 72 return static_cast<otJoinerState>(instance.Get<MeshCoP::Joiner>().GetState()); in otJoinerGetState() 77 Instance &instance = *static_cast<Instance *>(aInstance); in otJoinerGetId() local 79 return &instance.Get<MeshCoP::Joiner>().GetId(); in otJoinerGetId() 101 Instance &instance = *static_cast<Instance *>(aInstance); in otJoinerGetDiscerner() local 103 return instance.Get<MeshCoP::Joiner>().GetDiscerner(); in otJoinerGetDiscerner()
|
D | server_api.cpp | 47 Instance &instance = *static_cast<Instance *>(aInstance); in otServerGetNetDataLocal() local 51 return instance.Get<NetworkData::Local>().GetNetworkData(aStable, aData, *aDataLength); in otServerGetNetDataLocal() 56 Instance &instance = *static_cast<Instance *>(aInstance); in otServerAddService() local 58 …return instance.Get<NetworkData::Local>().AddService(aConfig->mEnterpriseNumber, &aConfig->mServic… in otServerAddService() 69 Instance &instance = *static_cast<Instance *>(aInstance); in otServerRemoveService() local 71 …return instance.Get<NetworkData::Local>().RemoveService(aEnterpriseNumber, aServiceData, aServiceD… in otServerRemoveService() 77 Instance &instance = *static_cast<Instance *>(aInstance); in otServerGetNextService() local 81 error = instance.Get<NetworkData::Local>().GetNextService(*aIterator, in otServerGetNextService() 90 Instance &instance = *static_cast<Instance *>(aInstance); in otServerRegister() local 92 instance.Get<NetworkData::Notifier>().HandleServerDataUpdated(); in otServerRegister()
|
/openthread-2.7.6/tests/fuzz/ |
D | ip6_send.cpp | 48 otInstance * instance = nullptr; in LLVMFuzzerTestOneInput() local 57 instance = otInstanceInitSingle(); in LLVMFuzzerTestOneInput() 58 IgnoreError(otLinkSetPanId(instance, panId)); in LLVMFuzzerTestOneInput() 59 IgnoreError(otIp6SetEnabled(instance, true)); in LLVMFuzzerTestOneInput() 60 IgnoreError(otThreadSetEnabled(instance, true)); in LLVMFuzzerTestOneInput() 61 IgnoreError(otThreadBecomeLeader(instance)); in LLVMFuzzerTestOneInput() 66 message = otIp6NewMessage(instance, &settings); in LLVMFuzzerTestOneInput() 72 error = otIp6Send(instance, message); in LLVMFuzzerTestOneInput() 80 while (otTaskletsArePending(instance)) in LLVMFuzzerTestOneInput() 82 otTaskletsProcess(instance); in LLVMFuzzerTestOneInput() [all …]
|
D | ncp_hdlc_received.cpp | 57 otInstance *instance = nullptr; in LLVMFuzzerTestOneInput() local 64 instance = otInstanceInitSingle(); in LLVMFuzzerTestOneInput() 65 otNcpHdlcInit(instance, HdlcSend); in LLVMFuzzerTestOneInput() 66 IgnoreError(otLinkSetPanId(instance, panId)); in LLVMFuzzerTestOneInput() 67 IgnoreError(otIp6SetEnabled(instance, true)); in LLVMFuzzerTestOneInput() 68 IgnoreError(otThreadSetEnabled(instance, true)); in LLVMFuzzerTestOneInput() 69 IgnoreError(otThreadBecomeLeader(instance)); in LLVMFuzzerTestOneInput() 81 while (otTaskletsArePending(instance)) in LLVMFuzzerTestOneInput() 83 otTaskletsProcess(instance); in LLVMFuzzerTestOneInput() 86 FuzzerPlatformProcess(instance); in LLVMFuzzerTestOneInput() [all …]
|
D | radio_receive_done.cpp | 49 otInstance * instance = nullptr; in LLVMFuzzerTestOneInput() local 57 instance = otInstanceInitSingle(); in LLVMFuzzerTestOneInput() 58 IgnoreError(otLinkSetPanId(instance, panId)); in LLVMFuzzerTestOneInput() 59 IgnoreError(otIp6SetEnabled(instance, true)); in LLVMFuzzerTestOneInput() 60 IgnoreError(otThreadSetEnabled(instance, true)); in LLVMFuzzerTestOneInput() 61 IgnoreError(otThreadBecomeLeader(instance)); in LLVMFuzzerTestOneInput() 72 otPlatRadioReceiveDone(instance, &frame, OT_ERROR_NONE); in LLVMFuzzerTestOneInput() 78 while (otTaskletsArePending(instance)) in LLVMFuzzerTestOneInput() 80 otTaskletsProcess(instance); in LLVMFuzzerTestOneInput() 83 FuzzerPlatformProcess(instance); in LLVMFuzzerTestOneInput() [all …]
|
D | cli_received.cpp | 60 otInstance *instance = nullptr; in LLVMFuzzerTestOneInput() local 67 instance = otInstanceInitSingle(); in LLVMFuzzerTestOneInput() 68 otCliInit(instance, CliOutput, nullptr); in LLVMFuzzerTestOneInput() 69 IgnoreError(otLinkSetPanId(instance, panId)); in LLVMFuzzerTestOneInput() 70 IgnoreError(otIp6SetEnabled(instance, true)); in LLVMFuzzerTestOneInput() 71 IgnoreError(otThreadSetEnabled(instance, true)); in LLVMFuzzerTestOneInput() 72 IgnoreError(otThreadBecomeLeader(instance)); in LLVMFuzzerTestOneInput() 85 while (otTaskletsArePending(instance)) in LLVMFuzzerTestOneInput() 87 otTaskletsProcess(instance); in LLVMFuzzerTestOneInput() 90 FuzzerPlatformProcess(instance); in LLVMFuzzerTestOneInput() [all …]
|