/openthread-3.7.0/src/core/api/ |
D | commissioner_api.cpp | 50 …return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().Start(aStateCallback, aJoinerCallback, a… in otCommissionerStart() 55 return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().GetId(); in otCommissionerGetId() 60 return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().SetId(aId); in otCommissionerSetId() 63 otError otCommissionerStop(otInstance *aInstance) { return AsCoreType(aInstance).Get<MeshCoP::Commi… in otCommissionerStop() 68 MeshCoP::Commissioner &commissioner = AsCoreType(aInstance).Get<MeshCoP::Commissioner>(); in otCommissionerAddJoiner() 87 …return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().AddJoiner(AsCoreType(aDiscerner), aPskd,… in otCommissionerAddJoinerWithDiscerner() 92 … return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().GetNextJoinerInfo(*aIterator, *aJoiner); in otCommissionerGetNextJoinerInfo() 98 MeshCoP::Commissioner &commissioner = AsCoreType(aInstance).Get<MeshCoP::Commissioner>(); in otCommissionerRemoveJoiner() 114 … return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().RemoveJoiner(AsCoreType(aDiscerner), 0); in otCommissionerRemoveJoinerWithDiscerner() 119 return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().SetProvisioningUrl(aProvisioningUrl); in otCommissionerSetProvisioningUrl() [all …]
|
D | dataset_api.cpp | 47 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().IsCommissioned(); in otDatasetIsCommissioned() 52 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().Read(AsCoreType(aDataset)); in otDatasetGetActive() 59 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().Read(*aDataset); in otDatasetGetActiveTlvs() 64 AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().SaveLocal(AsCoreType(aDataset)); in otDatasetSetActive() 73 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().SaveLocal(*aDataset); in otDatasetSetActiveTlvs() 78 return AsCoreType(aInstance).Get<MeshCoP::PendingDatasetManager>().Read(AsCoreType(aDataset)); in otDatasetGetPending() 85 return AsCoreType(aInstance).Get<MeshCoP::PendingDatasetManager>().Read(*aDataset); in otDatasetGetPendingTlvs() 90 AsCoreType(aInstance).Get<MeshCoP::PendingDatasetManager>().SaveLocal(AsCoreType(aDataset)); in otDatasetSetPending() 99 return AsCoreType(aInstance).Get<MeshCoP::PendingDatasetManager>().SaveLocal(*aDataset); in otDatasetSetPendingTlvs() 108 …return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().SendGetRequest(AsCoreType(aDatas… in otDatasetSendMgmtActiveGet() [all …]
|
D | border_agent_api.cpp | 48 return AsCoreType(aInstance).Get<MeshCoP::BorderAgent>().GetId(AsCoreType(aId)); in otBorderAgentGetId() 53 return AsCoreType(aInstance).Get<MeshCoP::BorderAgent>().SetId(AsCoreType(aId)); in otBorderAgentSetId() 59 return MapEnum(AsCoreType(aInstance).Get<MeshCoP::BorderAgent>().GetState()); in otBorderAgentGetState() 64 return AsCoreType(aInstance).Get<MeshCoP::BorderAgent>().GetUdpPort(); in otBorderAgentGetUdpPort() 76 …return AsCoreType(aInstance).Get<MeshCoP::BorderAgent>().SetEphemeralKey(aKeyString, aTimeout, aUd… in otBorderAgentSetEphemeralKey() 81 AsCoreType(aInstance).Get<MeshCoP::BorderAgent>().ClearEphemeralKey(); in otBorderAgentClearEphemeralKey() 86 return AsCoreType(aInstance).Get<MeshCoP::BorderAgent>().IsEphemeralKeyActive(); in otBorderAgentIsEphemeralKeyActive() 93 AsCoreType(aInstance).Get<MeshCoP::BorderAgent>().SetEphemeralKeyCallback(aCallback, aContext); in otBorderAgentSetEphemeralKeyCallback()
|
D | joiner_api.cpp | 56 …return AsCoreType(aInstance).Get<MeshCoP::Joiner>().Start(aPskd, aProvisioningUrl, aVendorName, aV… in otJoinerStart() 60 void otJoinerStop(otInstance *aInstance) { AsCoreType(aInstance).Get<MeshCoP::Joiner>().Stop(); } in otJoinerStop() 64 return MapEnum(AsCoreType(aInstance).Get<MeshCoP::Joiner>().GetState()); in otJoinerGetState() 69 return &AsCoreType(aInstance).Get<MeshCoP::Joiner>().GetId(); in otJoinerGetId() 75 MeshCoP::Joiner &joiner = AsCoreType(aInstance).Get<MeshCoP::Joiner>(); in otJoinerSetDiscerner() 91 return AsCoreType(aInstance).Get<MeshCoP::Joiner>().GetDiscerner(); in otJoinerGetDiscerner() 98 return MeshCoP::Joiner::StateToString(MapEnum(aState)); in otJoinerStateToString()
|
D | thread_api.cpp | 60 return &AsCoreType(aInstance).Get<MeshCoP::ExtendedPanIdManager>().GetExtPanId(); in otThreadGetExtendedPanId() 67 const MeshCoP::ExtendedPanId &extPanId = AsCoreType(aExtendedPanId); in otThreadSetExtendedPanId() 71 instance.Get<MeshCoP::ExtendedPanIdManager>().SetExtPanId(extPanId); in otThreadSetExtendedPanId() 73 instance.Get<MeshCoP::ActiveDatasetManager>().Clear(); in otThreadSetExtendedPanId() 74 instance.Get<MeshCoP::PendingDatasetManager>().Clear(); in otThreadSetExtendedPanId() 120 instance.Get<MeshCoP::ActiveDatasetManager>().Clear(); in otThreadSetNetworkKey() 121 instance.Get<MeshCoP::PendingDatasetManager>().Clear(); in otThreadSetNetworkKey() 138 instance.Get<MeshCoP::ActiveDatasetManager>().Clear(); in otThreadSetNetworkKeyRef() 139 instance.Get<MeshCoP::PendingDatasetManager>().Clear(); in otThreadSetNetworkKeyRef() 168 AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().Clear(); in otThreadSetMeshLocalPrefix() [all …]
|
D | dataset_ftd_api.cpp | 47 …return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().CreateNewNetwork(AsCoreType(aDat… in otDatasetCreateNewNetwork() 52 return AsCoreType(aInstance).Get<MeshCoP::Leader>().GetDelayTimerMinimal(); in otDatasetGetDelayTimerMinimal() 57 return AsCoreType(aInstance).Get<MeshCoP::Leader>().SetDelayTimerMinimal(aDelayTimerMinimal); in otDatasetSetDelayTimerMinimal()
|
D | dataset_updater_api.cpp | 51 …return AsCoreType(aInstance).Get<MeshCoP::DatasetUpdater>().RequestUpdate(AsCoreType(aDataset), aC… in otDatasetUpdaterRequestUpdate() 57 AsCoreType(aInstance).Get<MeshCoP::DatasetUpdater>().CancelUpdate(); in otDatasetUpdaterCancelUpdate() 62 return AsCoreType(aInstance).Get<MeshCoP::DatasetUpdater>().IsUpdateOngoing(); in otDatasetUpdaterIsUpdateOngoing()
|
/openthread-3.7.0/src/core/thread/ |
D | tmf.cpp | 96 Get<MeshCoP::Commissioner>().HandleTmf<kUriRelayRx>(aMessage, aMessageInfo); in HandleTmf() 99 Get<MeshCoP::BorderAgent>().HandleTmf<kUriRelayRx>(aMessage, aMessageInfo); in HandleTmf() 125 Case(kUriActiveGet, MeshCoP::ActiveDatasetManager); in HandleResource() 126 Case(kUriPendingGet, MeshCoP::PendingDatasetManager); in HandleResource() 134 Case(kUriActiveSet, MeshCoP::ActiveDatasetManager); in HandleResource() 135 Case(kUriActiveReplace, MeshCoP::ActiveDatasetManager); in HandleResource() 136 Case(kUriPendingSet, MeshCoP::PendingDatasetManager); in HandleResource() 137 Case(kUriLeaderPetition, MeshCoP::Leader); in HandleResource() 138 Case(kUriLeaderKeepAlive, MeshCoP::Leader); in HandleResource() 143 Case(kUriRelayTx, MeshCoP::JoinerRouter); in HandleResource() [all …]
|
D | discover_scanner.cpp | 73 MeshCoP::DiscoveryRequestTlv discoveryRequest; in Discover() 74 MeshCoP::JoinerAdvertisementTlv joinerAdvertisement; in Discover() 89 MeshCoP::ComputeJoinerId(extAddress, extAddress); in Discover() 90 MeshCoP::SteeringData::CalculateHashBitIndexes(extAddress, mFilterIndexes); in Discover() 173 … (aAdvDataLength <= MeshCoP::JoinerAdvertisementTlv::kAdvDataMaxLength) && (aOui <= kMaxOui), in SetJoinerAdvertisement() 312 MeshCoP::Tlv meshcopTlv; in HandleDiscoveryResponse() 313 MeshCoP::DiscoveryResponseTlv discoveryResponse; in HandleDiscoveryResponse() 314 MeshCoP::NetworkNameTlv networkName; in HandleDiscoveryResponse() 343 case MeshCoP::Tlv::kDiscoveryResponse: in HandleDiscoveryResponse() 350 case MeshCoP::Tlv::kExtendedPanId: in HandleDiscoveryResponse() [all …]
|
D | network_data_leader.cpp | 470 const MeshCoP::Tlv *Leader::FindCommissioningDataSubTlv(uint8_t aType) const in FindCommissioningDataSubTlv() 472 const MeshCoP::Tlv *subTlv = nullptr; in FindCommissioningDataSubTlv() 476 subTlv = As<MeshCoP::Tlv>(Tlv::FindTlv(dataTlv->GetValue(), dataTlv->GetLength(), aType)); in FindCommissioningDataSubTlv() 482 Error Leader::ReadCommissioningDataUint16SubTlv(MeshCoP::Tlv::Type aType, uint16_t &aValue) const in ReadCommissioningDataUint16SubTlv() 485 const MeshCoP::Tlv *subTlv = FindCommissioningDataSubTlv(aType); in ReadCommissioningDataUint16SubTlv() 495 void Leader::GetCommissioningDataset(MeshCoP::CommissioningDataset &aDataset) const in GetCommissioningDataset() 498 const MeshCoP::Tlv *subTlv; in GetCommissioningDataset() 499 const MeshCoP::Tlv *endTlv; in GetCommissioningDataset() 512 subTlv = reinterpret_cast<const MeshCoP::Tlv *>(dataTlv->GetValue()); in GetCommissioningDataset() 513 endTlv = reinterpret_cast<const MeshCoP::Tlv *>(dataTlv->GetValue() + dataTlv->GetLength()); in GetCommissioningDataset() [all …]
|
D | energy_scan_server.cpp | 70 MeshCoP::Tlv tlv; in HandleTmf() 74 SuccessOrExit(Tlv::Find<MeshCoP::CountTlv>(aMessage, count)); in HandleTmf() 75 SuccessOrExit(Tlv::Find<MeshCoP::PeriodTlv>(aMessage, period)); in HandleTmf() 76 SuccessOrExit(Tlv::Find<MeshCoP::ScanDurationTlv>(aMessage, scanDuration)); in HandleTmf() 78 SuccessOrExit(MeshCoP::ChannelMaskTlv::FindIn(aMessage, mask)); in HandleTmf() 84 SuccessOrExit(MeshCoP::ChannelMaskTlv::AppendTo(*mReportMessage, mask)); in HandleTmf() 86 tlv.SetType(MeshCoP::Tlv::kEnergyList); in HandleTmf()
|
D | panid_query_server.cpp | 67 SuccessOrExit(MeshCoP::ChannelMaskTlv::FindIn(aMessage, mask)); in HandleTmf() 69 SuccessOrExit(Tlv::Find<MeshCoP::PanIdTlv>(aMessage, panId)); in HandleTmf() 115 SuccessOrExit(error = MeshCoP::ChannelMaskTlv::AppendTo(*message, mChannelMask)); in SendConflict() 117 SuccessOrExit(error = Tlv::Append<MeshCoP::PanIdTlv>(*message, mPanId)); in SendConflict()
|
D | announce_begin_server.cpp | 74 SuccessOrExit(MeshCoP::ChannelMaskTlv::FindIn(aMessage, mask)); in HandleTmf() 76 SuccessOrExit(Tlv::Find<MeshCoP::CountTlv>(aMessage, count)); in HandleTmf() 77 SuccessOrExit(Tlv::Find<MeshCoP::PeriodTlv>(aMessage, period)); in HandleTmf()
|
/openthread-3.7.0/tests/unit/ |
D | test_meshcop.cpp | 41 MeshCoP::SteeringData steeringData; in TestSteeringData() 42 MeshCoP::SteeringData::HashBitIndexes indexes; in TestSteeringData() 52 MeshCoP::SteeringData::CalculateHashBitIndexes(joinerId2, indexes); in TestSteeringData() 74 for (uint8_t len = 1; len <= MeshCoP::SteeringData::kMaxLength; len++) in TestSteeringData() 118 MeshCoP::Timestamp t1; in TestTimestamp() 119 MeshCoP::Timestamp t2; in TestTimestamp() 120 MeshCoP::Timestamp::Info info; in TestTimestamp() 127 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t1) == 0); in TestTimestamp() 136 VerifyOrQuit(MeshCoP::Timestamp::Compare(t2, t2) == 0); in TestTimestamp() 143 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) > 0); in TestTimestamp() [all …]
|
D | test_network_name.cpp | 37 void CompareNetworkName(const MeshCoP::NetworkName &aNetworkName, const char *aNameString) in CompareNetworkName() 57 MeshCoP::NetworkName networkName; in TestNetworkName() 58 MeshCoP::NetworkName networkName2; in TestNetworkName() 62 SuccessOrQuit(networkName.Set(MeshCoP::NameData(kName1, sizeof(kName1)))); in TestNetworkName() 65 VerifyOrQuit(networkName.Set(MeshCoP::NameData(kName1, sizeof(kName1))) == kErrorAlready, in TestNetworkName() 69 VerifyOrQuit(networkName.Set(MeshCoP::NameData(kName1, sizeof(kName1) - 1)) == kErrorAlready, in TestNetworkName() 72 SuccessOrQuit(networkName.Set(MeshCoP::NameData(kName2, sizeof(kName2)))); in TestNetworkName() 75 SuccessOrQuit(networkName.Set(MeshCoP::NameData(kEmptyName, 0))); in TestNetworkName() 78 SuccessOrQuit(networkName.Set(MeshCoP::NameData(kLongName, sizeof(kLongName)))); in TestNetworkName() 81 …VerifyOrQuit(networkName.Set(MeshCoP::NameData(kLongName, sizeof(kLongName) - 1)) == kErrorAlready, in TestNetworkName() [all …]
|
D | test_pskc.cpp | 37 namespace MeshCoP { namespace 119 ot::MeshCoP::TestMinimumPassphrase(); in main() 120 ot::MeshCoP::TestMaximumPassphrase(); in main() 121 ot::MeshCoP::TestExampleInSpec(); in main()
|
/openthread-3.7.0/src/core/meshcop/ |
D | energy_scan_client.cpp | 73 VerifyOrExit(Get<MeshCoP::Commissioner>().IsActive(), error = kErrorInvalidState); in SendQuery() 80 …error = Tlv::Append<MeshCoP::CommissionerSessionIdTlv>(*message, Get<MeshCoP::Commissioner>().GetS… in SendQuery() 82 SuccessOrExit(error = MeshCoP::ChannelMaskTlv::AppendTo(*message, aChannelMask)); in SendQuery() 84 SuccessOrExit(error = Tlv::Append<MeshCoP::CountTlv>(*message, aCount)); in SendQuery() 85 SuccessOrExit(error = Tlv::Append<MeshCoP::PeriodTlv>(*message, aPeriod)); in SendQuery() 86 SuccessOrExit(error = Tlv::Append<MeshCoP::ScanDurationTlv>(*message, aScanDuration)); in SendQuery() 104 MeshCoP::EnergyListTlv energyListTlv; in HandleTmf() 110 SuccessOrExit(MeshCoP::ChannelMaskTlv::FindIn(aMessage, mask)); in HandleTmf() 112 …SuccessOrExit(MeshCoP::Tlv::FindTlv(aMessage, MeshCoP::Tlv::kEnergyList, sizeof(energyListTlv), en… in HandleTmf()
|
D | panid_query_client.cpp | 69 VerifyOrExit(Get<MeshCoP::Commissioner>().IsActive(), error = kErrorInvalidState); in SendQuery() 76 …error = Tlv::Append<MeshCoP::CommissionerSessionIdTlv>(*message, Get<MeshCoP::Commissioner>().GetS… in SendQuery() 78 SuccessOrExit(error = MeshCoP::ChannelMaskTlv::AppendTo(*message, aChannelMask)); in SendQuery() 80 SuccessOrExit(error = Tlv::Append<MeshCoP::PanIdTlv>(*message, aPanId)); in SendQuery() 104 SuccessOrExit(Tlv::Find<MeshCoP::PanIdTlv>(aMessage, panId)); in HandleTmf() 106 SuccessOrExit(MeshCoP::ChannelMaskTlv::FindIn(aMessage, mask)); in HandleTmf()
|
D | announce_begin_client.cpp | 67 VerifyOrExit(Get<MeshCoP::Commissioner>().IsActive(), error = kErrorInvalidState); in SendRequest() 74 …error = Tlv::Append<MeshCoP::CommissionerSessionIdTlv>(*message, Get<MeshCoP::Commissioner>().GetS… in SendRequest() 76 SuccessOrExit(error = MeshCoP::ChannelMaskTlv::AppendTo(*message, aChannelMask)); in SendRequest() 78 SuccessOrExit(error = Tlv::Append<MeshCoP::CountTlv>(*message, aCount)); in SendRequest() 79 SuccessOrExit(error = Tlv::Append<MeshCoP::PeriodTlv>(*message, aPeriod)); in SendRequest()
|
D | tcat_agent.hpp | 62 namespace MeshCoP { namespace 350 Error Connected(MeshCoP::SecureTransport &aTlsContext); 386 DefineCoreType(otTcatVendorInfo, MeshCoP::TcatAgent::VendorInfo); 388 DefineMapEnum(otTcatApplicationProtocol, MeshCoP::TcatAgent::TcatApplicationProtocol); 389 DefineMapEnum(otTcatDeviceIdType, MeshCoP::TcatAgent::TcatDeviceIdType); 392 typedef UintTlvInfo<MeshCoP::TcatAgent::kTlvResponseWithStatus, uint8_t> ResponseWithStatusTlv;
|
D | meshcop.hpp | 59 namespace MeshCoP { namespace 566 DefineCoreType(otJoinerPskd, MeshCoP::JoinerPskd); 567 DefineCoreType(otJoinerDiscerner, MeshCoP::JoinerDiscerner); 568 DefineCoreType(otSteeringData, MeshCoP::SteeringData); 569 DefineCoreType(otCommissioningDataset, MeshCoP::CommissioningDataset);
|
/openthread-3.7.0/src/core/instance/ |
D | instance.hpp | 542 MeshCoP::ActiveDatasetManager mActiveDataset; 543 MeshCoP::PendingDatasetManager mPendingDataset; 544 MeshCoP::ExtendedPanIdManager mExtendedPanIdManager; 545 MeshCoP::NetworkNameManager mNetworkNameManager; 581 MeshCoP::BorderAgent mBorderAgent; 585 MeshCoP::Commissioner mCommissioner; 593 MeshCoP::Joiner mJoiner; 601 MeshCoP::JoinerRouter mJoinerRouter; 602 MeshCoP::Leader mLeader; 692 MeshCoP::DatasetUpdater mDatasetUpdater; [all …]
|
/openthread-3.7.0/src/core/radio/ |
D | trel_interface.cpp | 150 sizeof(MeshCoP::ExtendedPanId); in RegisterService() 159 txtEntries[1].Init(kTxtRecordExtPanIdKey, Get<MeshCoP::ExtendedPanIdManager>().GetExtPanId().m8, in RegisterService() 160 sizeof(MeshCoP::ExtendedPanId)); in RegisterService() 167 Get<MeshCoP::ExtendedPanIdManager>().GetExtPanId().ToString().AsCString()); in RegisterService() 190 MeshCoP::ExtendedPanId extPanId; in HandleDiscoveredPeerInfo() 251 MeshCoP::ExtendedPanId &aExtPanId) const in ParsePeerInfoTxtData() 284 VerifyOrExit(entry.mValueLength == sizeof(MeshCoP::ExtendedPanId), error = kErrorParse); in ParsePeerInfoTxtData() 285 memcpy(aExtPanId.m8, entry.mValue, sizeof(MeshCoP::ExtendedPanId)); in ParsePeerInfoTxtData() 310 if (entry.GetExtPanId() != Get<MeshCoP::ExtendedPanIdManager>().GetExtPanId()) in GetNewPeerEntry() 372 … if (!aIsDiscovery && (entry.GetExtPanId() != Get<MeshCoP::ExtendedPanIdManager>().GetExtPanId())) in Send()
|
D | ble_secure.hpp | 75 typedef MeshCoP::TcatAgent::CommandClass CommandClass; 111 Error TcatStart(MeshCoP::TcatAgent::JoinCallback aHandler); 119 Error TcatSetVendorInfo(const MeshCoP::TcatAgent::VendorInfo &aVendorInfo) in TcatSetVendorInfo() 204 void SetPsk(const MeshCoP::JoinerPskd &aPskd); 480 MeshCoP::SecureTransport mTls; 481 MeshCoP::TcatAgent mTcatAgent;
|
/openthread-3.7.0/src/core/common/ |
D | settings.hpp | 795 const MeshCoP::BorderAgent::Id &GetId(void) const { return mId; } in GetId() 803 MeshCoP::BorderAgent::Id &GetId(void) { return mId; } in GetId() 809 void SetId(const MeshCoP::BorderAgent::Id &aId) { mId = aId; } in SetId() 814 MeshCoP::BorderAgent::Id mId; 885 void SaveOperationalDataset(MeshCoP::Dataset::Type aType, const MeshCoP::Dataset &aDataset); 897 Error ReadOperationalDataset(MeshCoP::Dataset::Type aType, MeshCoP::Dataset &aDataset) const; 905 void DeleteOperationalDataset(MeshCoP::Dataset::Type aType); 1239 static Key KeyForDatasetType(MeshCoP::Dataset::Type aType);
|