/openthread-latest/src/core/meshcop/ |
D | dataset.hpp | 59 class Dataset class 224 Dataset(void); 447 Error WriteTlvsFrom(const Dataset &aDataset); 476 Error WriteTlvsFrom(const Dataset::Info &aDatasetInfo); 600 void SetFrom(const Dataset &aDataset); 694 bool IsSubsetOf(const Dataset &aOther) const; 724 template <> inline bool Dataset::Components::IsPresent<Dataset::k##Component>(void) const \ 729 template <> inline void Dataset::Components::MarkAsPresent<Dataset::k##Component>(void) \ 754 template <> struct Dataset::TypeFor<Dataset::kActiveTimestamp> { using Type = Timestamp; }; 755 template <> struct Dataset::TypeFor<Dataset::kPendingTimestamp> { using Type = Timestamp; }; [all …]
|
D | dataset_manager.hpp | 112 Error Read(Dataset &aDataset) const; 123 Error Read(Dataset::Info &aDatasetInfo) const; 134 Error Read(Dataset::Tlvs &aDatasetTlvs) const; 142 void SaveLocal(const Dataset &aDataset); 150 void SaveLocal(const Dataset::Info &aDatasetInfo); 161 Error SaveLocal(const Dataset::Tlvs &aDatasetTlvs); 175 Error Save(const Dataset &aDataset) { return Save(aDataset, /* aAllowOlderTimestamp */ false); } in Save() 211 Error SendSetRequest(const Dataset::Info &aDatasetInfo, 229 Error SendGetRequest(const Dataset::Components &aDatasetComponents, 249 using Type = Dataset::Type; [all …]
|
D | dataset_manager.cpp | 74 Dataset dataset; in Restore() 86 void DatasetManager::Restore(const Dataset &aDataset) in Restore() 113 Error DatasetManager::Read(Dataset &aDataset) const in Read() 125 if (mType == Dataset::kActive) in Read() 144 Error DatasetManager::Read(Dataset::Info &aDatasetInfo) const in Read() 146 Dataset dataset; in Read() 158 Error DatasetManager::Read(Dataset::Tlvs &aDatasetTlvs) const in Read() 160 Dataset dataset; in Read() 175 Dataset dataset; in ApplyConfiguration() 184 Error DatasetManager::ApplyConfiguration(const Dataset &aDataset) const in ApplyConfiguration() [all …]
|
D | dataset.cpp | 54 Error Dataset::Info::GenerateRandom(Instance &aInstance) in GenerateRandom() 104 Dataset::Dataset(void) in Dataset() function in ot::MeshCoP::Dataset 111 Error Dataset::ValidateTlvs(void) const in ValidateTlvs() 135 bool Dataset::IsTlvValid(const Tlv &aTlv) in IsTlvValid() 186 bool Dataset::ContainsAllTlvs(const Tlv::Type aTlvTypes[], uint8_t aLength) const in ContainsAllTlvs() 202 bool Dataset::ContainsAllRequiredTlvsFor(Type aType) const in ContainsAllRequiredTlvsFor() 230 const Tlv *Dataset::FindTlv(Tlv::Type aType) const { return As<Tlv>(Tlv::FindTlv(mTlvs, mLength, aT… in FindTlv() 232 void Dataset::ConvertTo(Info &aDatasetInfo) const in ConvertTo() 302 void Dataset::ConvertTo(Tlvs &aTlvs) const in ConvertTo() 308 void Dataset::SetFrom(const Dataset &aDataset) in SetFrom() [all …]
|
D | dataset_updater.cpp | 55 Error DatasetUpdater::RequestUpdate(const Dataset::Info &aDataset, UpdaterCallback aCallback, void … in RequestUpdate() 57 Dataset dataset; in RequestUpdate() 63 Error DatasetUpdater::RequestUpdate(Dataset &aDataset, UpdaterCallback aCallback, void *aContext) in RequestUpdate() 67 Dataset activeDataset; in RequestUpdate() 153 HandleDatasetChanged(Dataset::kActive); in HandleNotifierEvents() 158 HandleDatasetChanged(Dataset::kPending); in HandleNotifierEvents() 162 void DatasetUpdater::HandleDatasetChanged(Dataset::Type aType) in HandleDatasetChanged() 164 Dataset requestedDataset; in HandleDatasetChanged() 165 Dataset newDataset; in HandleDatasetChanged() 175 if (aType == Dataset::kActive) in HandleDatasetChanged() [all …]
|
D | dataset_updater.hpp | 105 Error RequestUpdate(const Dataset::Info &aDataset, UpdaterCallback aCallback, void *aContext); 123 Error RequestUpdate(Dataset &aDataset, UpdaterCallback aCallback, void *aContext); 126 void HandleDatasetChanged(Dataset::Type aType);
|
D | tcat_agent.cpp | 189 Dataset *aDataset) const in CheckCommandClassAuthorizationFlags() 217 Dataset::Info datasetInfo; in CheckCommandClassAuthorizationFlags() 231 if (datasetInfo.IsPresent<Dataset::kNetworkName>() && mCommissionerHasNetworkName && in CheckCommandClassAuthorizationFlags() 232 (datasetInfo.Get<Dataset::kNetworkName>() == mCommissionerNetworkName)) in CheckCommandClassAuthorizationFlags() 237 if (datasetInfo.IsPresent<Dataset::kExtendedPanId>() && mCommissionerHasExtendedPanId && in CheckCommandClassAuthorizationFlags() 238 (datasetInfo.Get<Dataset::kExtendedPanId>() == mCommissionerExtendedPanId)) in CheckCommandClassAuthorizationFlags() 488 Dataset dataset; in HandleSetActiveOperationalDataset() 642 Dataset::Info datasetInfo; in HandleStartThreadInterface() 645 VerifyOrExit(datasetInfo.IsPresent<Dataset::kNetworkKey>(), error = kErrorInvalidState); in HandleStartThreadInterface()
|
D | dataset_manager_ftd.cpp | 73 Dataset dataset; in ProcessSetOrReplaceRequest() 184 VerifyOrExit(dataset.ContainsAllRequiredTlvsFor(Dataset::kActive)); in ProcessSetOrReplaceRequest() 283 Dataset dataset; in GenerateLocal() 418 void PendingDatasetManager::ApplyActiveDataset(Dataset &aDataset) in ApplyActiveDataset()
|
D | joiner.cpp | 522 Dataset::Info datasetInfo; in HandleTmf() 531 …SuccessOrExit(error = Tlv::Find<NetworkKeyTlv>(aMessage, datasetInfo.Update<Dataset::kNetworkKey>(… in HandleTmf() 533 datasetInfo.Set<Dataset::kChannel>(Get<Mac::Mac>().GetPanChannel()); in HandleTmf() 534 datasetInfo.Set<Dataset::kPanId>(Get<Mac::Mac>().GetPanId()); in HandleTmf()
|
D | tcat_agent.hpp | 370 Dataset *aDataset) const;
|
D | joiner_router.cpp | 297 Dataset dataset; in PrepareJoinerEntrustMessage()
|
/openthread-latest/src/cli/ |
D | cli_dataset.cpp | 48 otOperationalDatasetTlvs Dataset::sDatasetTlvs; 50 const Dataset::ComponentMapper *Dataset::LookupMapper(const char *aName) const in LookupMapper() 56 &Dataset::OutputActiveTimestamp, in LookupMapper() 57 &Dataset::ParseActiveTimestamp, in LookupMapper() 62 &Dataset::OutputChannel, in LookupMapper() 63 &Dataset::ParseChannel, in LookupMapper() 68 &Dataset::OutputChannelMask, in LookupMapper() 69 &Dataset::ParseChannelMask, in LookupMapper() 74 &Dataset::OutputDelay, in LookupMapper() 75 &Dataset::ParseDelay, in LookupMapper() [all …]
|
D | README_DATASET.md | 5 Thread network configuration parameters are managed using Active and Pending Operational Dataset ob… 16 ### Active Operational Dataset 18 …ctive Operational Dataset includes parameters that are currently in use across an entire Thread ne… 30 ### Pending Operational Dataset 32 …Dataset is used to communicate changes to the Active Operational Dataset before they take effect. … 60 2. Commit new dataset to the Active Operational Dataset in non-volatile storage. 82 …lly attaches to a Thread network, the device will retrieve the complete Active Operational Dataset. 84 1. Create a partial Active Operational Dataset. 102 3. After attaching, validate that the device received the complete Active Operational Dataset. 119 ### Using the Dataset Updater to update Operational Dataset [all …]
|
D | cli_dataset.hpp | 52 class Dataset : private Utils class 55 Dataset(otInstance *aInstance, OutputImplementer &aOutputImplementer) in Dataset() function in ot::Cli::Dataset 75 using Command = CommandEntry<Dataset>; 89 void (Dataset::*mOutput)(const otOperationalDataset &aDataset); 90 otError (Dataset::*mParse)(Arg *&aArgs, otOperationalDataset &aDataset);
|
D | README_NETDATA.md | 34 2. Commit new dataset to the Active Operational Dataset in non-volatile storage. 99 …lly attaches to a Thread network, the device will retrieve the complete Active Operational Dataset. 101 1. Create a partial Active Operational Dataset. 385 Commissioning Dataset information is printed under `Commissioning` header: 387 - Session ID if present in Dataset or `-` otherwise 388 - Border Agent RLOC16 (in hex) if present in Dataset or `-` otherwise 389 - Joiner UDP port number if present in Dataset or `-` otherwise 390 - Steering Data (as hex bytes) if present in Dataset or `-` otherwise 392 - e: if Dataset contains any extra unknown TLV
|
D | README_COMMISSIONING.md | 32 2. Commit new dataset to the Active Operational Dataset in non-volatile storage. 101 4. After successful attach, validate the device has the same Active Operational Dataset as above.
|
D | cli.hpp | 368 Dataset mDataset;
|
/openthread-latest/src/core/common/ |
D | settings.cpp | 220 Settings::Key Settings::KeyForDatasetType(MeshCoP::Dataset::Type aType) in KeyForDatasetType() 222 return (aType == MeshCoP::Dataset::kActive) ? kKeyActiveDataset : kKeyPendingDataset; in KeyForDatasetType() 225 void Settings::SaveOperationalDataset(MeshCoP::Dataset::Type aType, const MeshCoP::Dataset &aDatase… in SaveOperationalDataset() 235 Error Settings::ReadOperationalDataset(MeshCoP::Dataset::Type aType, MeshCoP::Dataset &aDataset) co… in ReadOperationalDataset() 238 uint16_t length = MeshCoP::Dataset::kMaxLength; in ReadOperationalDataset() 241 VerifyOrExit(length <= MeshCoP::Dataset::kMaxLength, error = kErrorNotFound); in ReadOperationalDataset() 250 void Settings::DeleteOperationalDataset(MeshCoP::Dataset::Type aType) in DeleteOperationalDataset()
|
D | settings.hpp | 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);
|
/openthread-latest/src/core/api/ |
D | dataset_api.cpp | 164 MeshCoP::Dataset dataset; in otDatasetParseTlvs() 178 MeshCoP::Dataset dataset; in otDatasetConvertToTlvs() 189 MeshCoP::Dataset dataset; in otDatasetUpdateTlvs()
|
/openthread-latest/tests/unit/ |
D | test_dataset.cpp | 65 Dataset dataset; in TestDataset() 66 Dataset dataset2; in TestDataset() 67 Dataset::Tlvs datasetTlvs; in TestDataset() 68 Dataset::Info datasetInfo; in TestDataset()
|
/openthread-latest/examples/apps/cli/ |
D | README.md | 21 Generate, view, and commit a new Active Operational Dataset: 84 Configure Thread Network Key from Node 1's Active Operational Dataset:
|
/openthread-latest/src/core/utils/ |
D | channel_manager.cpp | 161 MeshCoP::Dataset::Info dataset; in StartDatasetUpdate() 164 dataset.Set<MeshCoP::Dataset::kChannel>(mChannel); in StartDatasetUpdate() 165 dataset.Set<MeshCoP::Dataset::kDelay>(Time::SecToMsec(mDelay)); in StartDatasetUpdate()
|
/openthread-latest/src/core/thread/ |
D | mle.cpp | 4933 Error Mle::TxMessage::AppendActiveDatasetTlv(void) { return AppendDatasetTlv(MeshCoP::Dataset::kAct… in AppendActiveDatasetTlv() 4935 Error Mle::TxMessage::AppendPendingDatasetTlv(void) { return AppendDatasetTlv(MeshCoP::Dataset::kPe… in AppendPendingDatasetTlv() 4937 Error Mle::TxMessage::AppendDatasetTlv(MeshCoP::Dataset::Type aDatasetType) in AppendDatasetTlv() 4941 MeshCoP::Dataset dataset; in AppendDatasetTlv() 4945 case MeshCoP::Dataset::kActive: in AppendDatasetTlv() 4950 case MeshCoP::Dataset::kPending: in AppendDatasetTlv() 5118 return ReadAndSaveDataset(MeshCoP::Dataset::kActive, aActiveTimestamp); in ReadAndSaveActiveDataset() 5123 return ReadAndSaveDataset(MeshCoP::Dataset::kPending, aPendingTimestamp); in ReadAndSavePendingDataset() 5126 Error Mle::RxMessage::ReadAndSaveDataset(MeshCoP::Dataset::Type aDatasetType, in ReadAndSaveDataset() 5130 …Tlv::Type tlvType = (aDatasetType == MeshCoP::Dataset::kActive) ? Tlv::kActiveDataset : Tlv… in ReadAndSaveDataset() [all …]
|
D | mle.hpp | 1097 Error AppendDatasetTlv(MeshCoP::Dataset::Type aDatasetType); 1126 …Error ReadAndSaveDataset(MeshCoP::Dataset::Type aDatasetType, const MeshCoP::Timestamp &aTimestamp…
|