Home
last modified time | relevance | path

Searched refs:aDataset (Results 1 – 25 of 30) sorted by relevance

12

/openthread-3.6.0/src/cli/
Dcli_dataset.hpp91 void (Dataset::*mOutput)(const otOperationalDataset &aDataset);
92 otError (Dataset::*mParse)(Arg *&aArgs, otOperationalDataset &aDataset);
97 void OutputActiveTimestamp(const otOperationalDataset &aDataset);
98 void OutputChannel(const otOperationalDataset &aDataset);
99 void OutputChannelMask(const otOperationalDataset &aDataset);
100 void OutputDelay(const otOperationalDataset &aDataset);
101 void OutputExtendedPanId(const otOperationalDataset &aDataset);
102 void OutputMeshLocalPrefix(const otOperationalDataset &aDataset);
103 void OutputNetworkKey(const otOperationalDataset &aDataset);
104 void OutputNetworkName(const otOperationalDataset &aDataset);
[all …]
Dcli_dataset.cpp162 void Dataset::OutputActiveTimestamp(const otOperationalDataset &aDataset) in OutputActiveTimestamp() argument
164 OutputUint64Line(aDataset.mActiveTimestamp.mSeconds); in OutputActiveTimestamp()
183 void Dataset::OutputChannel(const otOperationalDataset &aDataset) { OutputLine("%u", aDataset.mChan… in OutputChannel() argument
201 void Dataset::OutputChannelMask(const otOperationalDataset &aDataset) in OutputChannelMask() argument
203 OutputLine("0x%08lx", ToUlong(aDataset.mChannelMask)); in OutputChannelMask()
223 …oid Dataset::OutputDelay(const otOperationalDataset &aDataset) { OutputLine("%lu", ToUlong(aDatase… in OutputDelay() argument
244 void Dataset::OutputExtendedPanId(const otOperationalDataset &aDataset) { OutputBytesLine(aDataset.… in OutputExtendedPanId() argument
262 void Dataset::OutputMeshLocalPrefix(const otOperationalDataset &aDataset) in OutputMeshLocalPrefix() argument
264 OutputIp6PrefixLine(aDataset.mMeshLocalPrefix); in OutputMeshLocalPrefix()
283 void Dataset::OutputNetworkKey(const otOperationalDataset &aDataset) { OutputBytesLine(aDataset.mNe… in OutputNetworkKey() argument
[all …]
/openthread-3.6.0/src/core/api/
Ddataset_api.cpp50 otError otDatasetGetActive(otInstance *aInstance, otOperationalDataset *aDataset) in otDatasetGetActive() argument
52 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().Read(AsCoreType(aDataset)); in otDatasetGetActive()
55 otError otDatasetGetActiveTlvs(otInstance *aInstance, otOperationalDatasetTlvs *aDataset) in otDatasetGetActiveTlvs() argument
57 AssertPointerIsNotNull(aDataset); in otDatasetGetActiveTlvs()
59 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().Read(*aDataset); in otDatasetGetActiveTlvs()
62 otError otDatasetSetActive(otInstance *aInstance, const otOperationalDataset *aDataset) in otDatasetSetActive() argument
64 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().Save(AsCoreType(aDataset)); in otDatasetSetActive()
67 otError otDatasetSetActiveTlvs(otInstance *aInstance, const otOperationalDatasetTlvs *aDataset) in otDatasetSetActiveTlvs() argument
69 AssertPointerIsNotNull(aDataset); in otDatasetSetActiveTlvs()
71 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().Save(*aDataset); in otDatasetSetActiveTlvs()
[all …]
Ddataset_ftd_api.cpp45 otError otDatasetCreateNewNetwork(otInstance *aInstance, otOperationalDataset *aDataset) in otDatasetCreateNewNetwork() argument
47 … AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().CreateNewNetwork(AsCoreType(aDataset)); in otDatasetCreateNewNetwork()
Ddataset_updater_api.cpp47 const otOperationalDataset *aDataset, in otDatasetUpdaterRequestUpdate() argument
51 …return AsCoreType(aInstance).Get<MeshCoP::DatasetUpdater>().RequestUpdate(AsCoreType(aDataset), aC… in otDatasetUpdaterRequestUpdate()
Dnetdata_api.cpp107 void otNetDataGetCommissioningDataset(otInstance *aInstance, otCommissioningDataset *aDataset) in otNetDataGetCommissioningDataset() argument
109 …urn AsCoreType(aInstance).Get<NetworkData::Leader>().GetCommissioningDataset(AsCoreType(aDataset)); in otNetDataGetCommissioningDataset()
Dcommissioner_api.cpp167 const otCommissioningDataset *aDataset, in otCommissionerSendMgmtSet() argument
171 …reType(aInstance).Get<MeshCoP::Commissioner>().SendMgmtCommissionerSetRequest(AsCoreType(aDataset), in otCommissionerSendMgmtSet()
/openthread-3.6.0/src/core/meshcop/
Ddataset_local.cpp75 Error DatasetLocal::Restore(Dataset &aDataset) in Restore() argument
81 error = Read(aDataset); in Restore()
85 mTimestampPresent = (aDataset.GetTimestamp(mType, mTimestamp) == kErrorNone); in Restore()
91 Error DatasetLocal::Read(Dataset &aDataset) const in Read()
95 error = Get<Settings>().ReadOperationalDataset(mType, aDataset); in Read()
96 VerifyOrExit(error == kErrorNone, aDataset.mLength = 0); in Read()
99 EmplaceSecurelyStoredKeys(aDataset); in Read()
104 aDataset.RemoveTlv(Tlv::kPendingTimestamp); in Read()
105 aDataset.RemoveTlv(Tlv::kDelayTimer); in Read()
111 Tlv *tlv = aDataset.FindTlv(Tlv::kDelayTimer); in Read()
[all …]
Ddataset_local.hpp110 Error Restore(Dataset &aDataset);
121 Error Read(Dataset &aDataset) const;
143 Error Read(otOperationalDatasetTlvs &aDataset) const;
173 Error Save(const otOperationalDatasetTlvs &aDataset);
184 Error Save(const Dataset &aDataset);
202 void MoveKeysToSecureStorage(Dataset &aDataset) const;
204 void EmplaceSecurelyStoredKeys(Dataset &aDataset) const;
208 void SetTimestamp(const Dataset &aDataset);
Ddataset_manager.hpp83 Error Read(Dataset &aDataset) const { return mLocal.Read(aDataset); } in Read()
105 Error Read(otOperationalDatasetTlvs &aDataset) const { return mLocal.Read(aDataset); } in Read()
248 Error Save(const Dataset &aDataset);
270 Error Save(const otOperationalDatasetTlvs &aDataset);
297 Error SaveLocal(const Dataset &aDataset);
429 void Save(const Dataset &aDataset) { IgnoreError(DatasetManager::Save(aDataset)); } in Save() argument
468 Error Save(const otOperationalDatasetTlvs &aDataset) { return DatasetManager::Save(aDataset); } in Save() argument
567 Error Save(const otOperationalDatasetTlvs &aDataset);
593 Error Save(const Dataset &aDataset);
Ddataset_updater.cpp56 Error DatasetUpdater::RequestUpdate(const Dataset::Info &aDataset, UpdaterCallback aCallback, void … in RequestUpdate() argument
64 VerifyOrExit(!aDataset.IsActiveTimestampPresent() && !aDataset.IsPendingTimestampPresent(), in RequestUpdate()
70 SuccessOrExit(error = message->Append(aDataset)); in RequestUpdate()
Ddataset.cpp254 void Dataset::ConvertTo(otOperationalDatasetTlvs &aDataset) const in ConvertTo()
256 memcpy(aDataset.mTlvs, mTlvs, mLength); in ConvertTo()
257 aDataset.mLength = static_cast<uint8_t>(mLength); in ConvertTo()
260 void Dataset::Set(Type aType, const Dataset &aDataset) in Set() argument
262 memcpy(mTlvs, aDataset.mTlvs, aDataset.mLength); in Set()
263 mLength = aDataset.mLength; in Set()
271 mUpdateTime = aDataset.GetUpdateTime(); in Set()
274 void Dataset::SetFrom(const otOperationalDatasetTlvs &aDataset) in SetFrom() argument
276 mLength = aDataset.mLength; in SetFrom()
277 memcpy(mTlvs, aDataset.mTlvs, mLength); in SetFrom()
Ddataset_manager.cpp115 Error DatasetManager::Save(const Dataset &aDataset) in Save() argument
121 if (aDataset.GetTimestamp(GetType(), mTimestamp) == kErrorNone) in Save()
127 SuccessOrExit(error = aDataset.ApplyConfiguration(GetInstance(), &isNetworkKeyUpdated)); in Save()
135 SuccessOrExit(error = mLocal.Save(aDataset)); in Save()
163 Error DatasetManager::Save(const otOperationalDatasetTlvs &aDataset) in Save() argument
167 SuccessOrExit(error = mLocal.Save(aDataset)); in Save()
174 Error DatasetManager::SaveLocal(const Dataset &aDataset) in SaveLocal() argument
178 SuccessOrExit(error = mLocal.Save(aDataset)); in SaveLocal()
700 Error PendingDatasetManager::Save(const otOperationalDatasetTlvs &aDataset) in Save() argument
704 SuccessOrExit(error = DatasetManager::Save(aDataset)); in Save()
[all …]
Ddataset.hpp776 void ConvertTo(otOperationalDatasetTlvs &aDataset) const;
846 void Set(Type aType, const Dataset &aDataset);
865 void SetFrom(const otOperationalDatasetTlvs &aDataset);
Ddataset_updater.hpp98 Error RequestUpdate(const Dataset::Info &aDataset, UpdaterCallback aCallback, void *aContext);
Dcommissioner.cpp674 Error Commissioner::SendMgmtCommissionerSetRequest(const CommissioningDataset &aDataset, in SendMgmtCommissionerSetRequest() argument
685 if (aDataset.IsLocatorSet()) in SendMgmtCommissionerSetRequest()
687 SuccessOrExit(error = Tlv::Append<BorderAgentLocatorTlv>(*message, aDataset.GetLocator())); in SendMgmtCommissionerSetRequest()
690 if (aDataset.IsSessionIdSet()) in SendMgmtCommissionerSetRequest()
692 … SuccessOrExit(error = Tlv::Append<CommissionerSessionIdTlv>(*message, aDataset.GetSessionId())); in SendMgmtCommissionerSetRequest()
695 if (aDataset.IsSteeringDataSet()) in SendMgmtCommissionerSetRequest()
697 const SteeringData &steeringData = aDataset.GetSteeringData(); in SendMgmtCommissionerSetRequest()
702 if (aDataset.IsJoinerUdpPortSet()) in SendMgmtCommissionerSetRequest()
704 SuccessOrExit(error = Tlv::Append<JoinerUdpPortTlv>(*message, aDataset.GetJoinerUdpPort())); in SendMgmtCommissionerSetRequest()
Dtcat_agent.cpp185 Dataset *aDataset) const in CheckCommandClassAuthorizationFlags()
216 if (aDataset == nullptr) in CheckCommandClassAuthorizationFlags()
222 aDataset->ConvertTo(datasetInfo); in CheckCommandClassAuthorizationFlags()
/openthread-3.6.0/include/openthread/
Ddataset.h353 otError otDatasetGetActive(otInstance *aInstance, otOperationalDataset *aDataset);
365 otError otDatasetGetActiveTlvs(otInstance *aInstance, otOperationalDatasetTlvs *aDataset);
391 otError otDatasetSetActive(otInstance *aInstance, const otOperationalDataset *aDataset);
417 otError otDatasetSetActiveTlvs(otInstance *aInstance, const otOperationalDatasetTlvs *aDataset);
429 otError otDatasetGetPending(otInstance *aInstance, otOperationalDataset *aDataset);
441 otError otDatasetGetPendingTlvs(otInstance *aInstance, otOperationalDatasetTlvs *aDataset);
454 otError otDatasetSetPending(otInstance *aInstance, const otOperationalDataset *aDataset);
467 otError otDatasetSetPendingTlvs(otInstance *aInstance, const otOperationalDatasetTlvs *aDataset);
504 const otOperationalDataset *aDataset,
545 const otOperationalDataset *aDataset,
[all …]
Ddataset_ftd.h62 otError otDatasetCreateNewNetwork(otInstance *aInstance, otOperationalDataset *aDataset);
Ddataset_updater.h92 const otOperationalDataset *aDataset,
Dnetdata.h253 void otNetDataGetCommissioningDataset(otInstance *aInstance, otCommissioningDataset *aDataset);
Dcommissioner.h465 const otCommissioningDataset *aDataset,
/openthread-3.6.0/src/core/thread/
Dnetwork_data_leader.cpp479 void Leader::GetCommissioningDataset(MeshCoP::CommissioningDataset &aDataset) const in GetCommissioningDataset()
485 aDataset.Clear(); in GetCommissioningDataset()
489 aDataset.mIsLocatorSet = (FindBorderAgentRloc(aDataset.mLocator) == kErrorNone); in GetCommissioningDataset()
490 aDataset.mIsSessionIdSet = (FindCommissioningSessionId(aDataset.mSessionId) == kErrorNone); in GetCommissioningDataset()
491 aDataset.mIsJoinerUdpPortSet = (FindJoinerUdpPort(aDataset.mJoinerUdpPort) == kErrorNone); in GetCommissioningDataset()
492aDataset.mIsSteeringDataSet = (FindSteeringData(AsCoreType(&aDataset.mSteeringData)) == kErrorNon… in GetCommissioningDataset()
509 ExitNow(aDataset.mHasExtraTlv = true); in GetCommissioningDataset()
/openthread-3.6.0/src/ncp/
Dncp_base_mtd.cpp1229 otError NcpBase::EncodeOperationalDataset(const otOperationalDataset &aDataset) in EncodeOperationalDataset() argument
1233 if (aDataset.mComponents.mIsActiveTimestampPresent) in EncodeOperationalDataset()
1235 const otTimestamp &activeTimestamp = aDataset.mActiveTimestamp; in EncodeOperationalDataset()
1243 if (aDataset.mComponents.mIsPendingTimestampPresent) in EncodeOperationalDataset()
1245 const otTimestamp &pendingTimestamp = aDataset.mPendingTimestamp; in EncodeOperationalDataset()
1253 if (aDataset.mComponents.mIsNetworkKeyPresent) in EncodeOperationalDataset()
1257 SuccessOrExit(error = mEncoder.WriteData(aDataset.mNetworkKey.m8, OT_NETWORK_KEY_SIZE)); in EncodeOperationalDataset()
1261 if (aDataset.mComponents.mIsNetworkNamePresent) in EncodeOperationalDataset()
1265 SuccessOrExit(error = mEncoder.WriteUtf8(aDataset.mNetworkName.m8)); in EncodeOperationalDataset()
1269 if (aDataset.mComponents.mIsExtendedPanIdPresent) in EncodeOperationalDataset()
[all …]
/openthread-3.6.0/src/core/common/
Dsettings.cpp224 …or Settings::SaveOperationalDataset(MeshCoP::Dataset::Type aType, const MeshCoP::Dataset &aDataset) in SaveOperationalDataset() argument
227 Error error = Get<SettingsDriver>().Set(key, aDataset.GetBytes(), aDataset.GetSize()); in SaveOperationalDataset()
234 Error Settings::ReadOperationalDataset(MeshCoP::Dataset::Type aType, MeshCoP::Dataset &aDataset) co… in ReadOperationalDataset()
239 …SuccessOrExit(error = Get<SettingsDriver>().Get(KeyForDatasetType(aType), aDataset.GetBytes(), &le… in ReadOperationalDataset()
242 aDataset.SetSize(length); in ReadOperationalDataset()

12