/openthread-latest/src/core/common/ |
D | tlvs.cpp | 59 Error Tlv::FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv) in FindTlv() argument 63 return FindTlv(aMessage, aType, aMaxSize, aTlv, offset); in FindTlv() 66 Error Tlv::FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv, uint16_t &… in FindTlv() argument 71 SuccessOrExit(error = info.FindIn(aMessage, aType)); in FindTlv() 81 Error Tlv::FindTlvValueOffsetRange(const Message &aMessage, uint8_t aType, OffsetRange &aOffsetRang… in FindTlvValueOffsetRange() argument 86 SuccessOrExit(error = info.FindIn(aMessage, aType)); in FindTlvValueOffsetRange() 141 Error Tlv::ParsedInfo::FindIn(const Message &aMessage, uint8_t aType) in FindIn() argument 152 if (mType == aType) in FindIn() 212 Error Tlv::FindStringTlv(const Message &aMessage, uint8_t aType, uint8_t aMaxStringLength, char *aV… in FindStringTlv() argument 217 SuccessOrExit(error = info.FindIn(aMessage, aType)); in FindStringTlv() [all …]
|
D | tlvs.hpp | 76 void SetType(uint8_t aType) { mType = aType; } in SetType() argument 276 Error FindIn(const Message &aMessage, uint8_t aType); 373 static Error FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv); 389 …static Error FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv, uint16_… 440 …static Error FindTlvValueOffsetRange(const Message &aMessage, uint8_t aType, OffsetRange &aOffsetR… 555 static Error AppendTlv(Message &aMessage, uint8_t aType, const void *aValue, uint16_t aLength); 648 static const Tlv *FindTlv(const void *aTlvsStart, uint16_t aTlvsLength, uint8_t aType); 659 static Tlv *FindTlv(void *aTlvsStart, uint16_t aTlvsLength, uint8_t aType) in FindTlv() argument 661 return AsNonConst(FindTlv(AsConst(aTlvsStart), aTlvsLength, aType)); in FindTlv() 698 static Error FindTlv(const Message &aMessage, uint8_t aType, void *aValue, uint16_t aLength); [all …]
|
D | settings.cpp | 227 Settings::Key Settings::KeyForDatasetType(MeshCoP::Dataset::Type aType) in KeyForDatasetType() argument 229 return (aType == MeshCoP::Dataset::kActive) ? kKeyActiveDataset : kKeyPendingDataset; in KeyForDatasetType() 232 void Settings::SaveOperationalDataset(MeshCoP::Dataset::Type aType, const MeshCoP::Dataset &aDatase… in SaveOperationalDataset() argument 234 Key key = KeyForDatasetType(aType); in SaveOperationalDataset() 242 Error Settings::ReadOperationalDataset(MeshCoP::Dataset::Type aType, MeshCoP::Dataset &aDataset) co… in ReadOperationalDataset() argument 247 …SuccessOrExit(error = Get<SettingsDriver>().Get(KeyForDatasetType(aType), aDataset.GetBytes(), &le… in ReadOperationalDataset() 257 void Settings::DeleteOperationalDataset(MeshCoP::Dataset::Type aType) in DeleteOperationalDataset() argument 259 Key key = KeyForDatasetType(aType); in DeleteOperationalDataset()
|
/openthread-latest/src/core/thread/ |
D | network_data_tlvs.cpp | 42 …DataTlv *NetworkDataTlv::Find(const NetworkDataTlv *aStart, const NetworkDataTlv *aEnd, Type aType) in Find() argument 48 if (tlv->GetType() == aType) in Find() 62 Type aType, in Find() argument 69 if ((tlv->GetType() == aType) && (tlv->IsStable() == aStable)) in Find() 84 …onst NetworkDataTlv *PrefixTlv::FindSubTlv(Type aType) const { return Find(GetSubTlvs(), GetNext()… in FindSubTlv() 86 const NetworkDataTlv *PrefixTlv::FindSubTlv(Type aType, bool aStable) const in FindSubTlv() argument 88 return Find(GetSubTlvs(), GetNext(), aType, aStable); in FindSubTlv() 120 const NetworkDataTlv *TlvIterator::Iterate(NetworkDataTlv::Type aType) in Iterate() argument 122 const NetworkDataTlv *tlv = NetworkDataTlv::Find(mStart, mEnd, aType); in Iterate() 131 const NetworkDataTlv *TlvIterator::Iterate(NetworkDataTlv::Type aType, bool aStable) in Iterate() argument [all …]
|
D | radio_selector.hpp | 96 void AddSupportedRadioType(Mac::RadioType aType) { mSupportedRadioTypes.Add(aType); } in AddSupportedRadioType() argument 97 void RemoveSupportedRadioType(Mac::RadioType aType) { mSupportedRadioTypes.Remove(aType); } in RemoveSupportedRadioType() argument 100 uint8_t GetRadioPreference(Mac::RadioType aType) const { return mRadioPreference[aType]; } in GetRadioPreference() 101 …void SetRadioPreference(Mac::RadioType aType, uint8_t aValue) { mRadioPreference[aType] = aValu… in SetRadioPreference() argument 193 …void Log(LogLevel aLogLevel, const char *aActionText, Mac::RadioType aType, const Neighb…
|
D | network_data_tlvs.hpp | 149 … void SetType(Type aType) { mType = (mType & ~kTypeMask) | ((aType << kTypeOffset) & kTypeMask); } in SetType() argument 248 static NetworkDataTlv *Find(NetworkDataTlv *aStart, NetworkDataTlv *aEnd, Type aType) in Find() argument 250 return AsNonConst(Find(AsConst(aStart), AsConst(aEnd), aType)); in Find() 262 …c const NetworkDataTlv *Find(const NetworkDataTlv *aStart, const NetworkDataTlv *aEnd, Type aType); 305 …static NetworkDataTlv *Find(NetworkDataTlv *aStart, NetworkDataTlv *aEnd, Type aType, bool aStable) in Find() argument 307 return AsNonConst(Find(AsConst(aStart), AsConst(aEnd), aType, aStable)); in Find() 323 Type aType, 782 NetworkDataTlv *FindSubTlv(Type aType) { return AsNonConst(AsConst(this)->FindSubTlv(aType)); } in FindSubTlv() argument 791 const NetworkDataTlv *FindSubTlv(Type aType) const; 801 NetworkDataTlv *FindSubTlv(Type aType, bool aStable) in FindSubTlv() argument [all …]
|
D | network_data_leader.hpp | 107 uint8_t GetVersion(Type aType) const { return (aType == kFullSet) ? mVersion : mStableVersion; } in GetVersion() 167 Type aType, 451 Error ReadCommissioningDataUint16SubTlv(MeshCoP::Tlv::Type aType, uint16_t &aValue) const; 455 const MeshCoP::Tlv *FindCommissioningDataSubTlv(uint8_t aType) const; 456 MeshCoP::Tlv *FindCommissioningDataSubTlv(uint8_t aType) in FindCommissioningDataSubTlv() argument 458 return AsNonConst(AsConst(this)->FindCommissioningDataSubTlv(aType)); in FindCommissioningDataSubTlv()
|
D | mle.hpp | 994 Error AppendNetworkDataTlv(NetworkData::Type aType); 1352 void SendParentRequest(ParentRequestType aType); 1361 Error DetermineParentRequestType(ParentRequestType &aType) const; 1416 static void Log(MessageAction aAction, MessageType aType, const Ip6::Address &aAddress); 1417 …static void Log(MessageAction aAction, MessageType aType, const Ip6::Address &aAddress, uint16_t a… 1434 static void LogError(MessageAction aAction, MessageType aType, Error aError); 1436 static const char *MessageTypeToString(MessageType aType); 1437 static const char *MessageTypeActionToSuffixString(MessageType aType, MessageAction aAction); 1438 static void LogProcessError(MessageType aType, Error aError); 1439 static void LogSendError(MessageType aType, Error aError);
|
D | network_data_publisher.hpp | 413 …static Info InfoUnicast(Type aType, const Ip6::Address &aAddress, uint16_t aPort, uint8_t aVersion) in InfoUnicast() argument 415 return Info(aType, aPort, aVersion, &aAddress); in InfoUnicast() 419 …Info(Type aType, uint16_t aPortOrSeqNumber, uint8_t aVersion, const Ip6::Address *aAddress = nullp… 435 void CountUnicastEntries(Service::DnsSrpUnicastType aType,
|
D | child.hpp | 306 void SetRequestTlv(uint8_t aIndex, uint8_t aType) { mRequestTlvs[aIndex] = aType; } in SetRequestTlv() argument
|
/openthread-latest/src/core/meshcop/ |
D | dataset.hpp | 251 bool ContainsTlv(Tlv::Type aType) const { return (FindTlv(aType) != nullptr); } in ContainsTlv() 285 bool ContainsAllRequiredTlvsFor(Type aType) const; 294 Tlv *FindTlv(Tlv::Type aType) { return AsNonConst(AsConst(this)->FindTlv(aType)); } in FindTlv() argument 303 const Tlv *FindTlv(Tlv::Type aType) const; 367 Error WriteTlv(Tlv::Type aType, const void *aValue, uint8_t aLength); 468 void RemoveTlv(Tlv::Type aType); 479 Error ReadTimestamp(Type aType, Timestamp &aTimestamp) const; 492 Error WriteTimestamp(Type aType, const Timestamp &aTimestamp); 499 void RemoveTimestamp(Type aType); 647 static const char *TypeToString(Type aType); [all …]
|
D | dataset.cpp | 206 bool Dataset::ContainsAllRequiredTlvsFor(Type aType) const in ContainsAllRequiredTlvsFor() 226 if (aType == kActive) in ContainsAllRequiredTlvsFor() 234 const Tlv *Dataset::FindTlv(Tlv::Type aType) const { return As<Tlv>(Tlv::FindTlv(mTlvs, mLength, aT… in FindTlv() 363 Error Dataset::WriteTlv(Tlv::Type aType, const void *aValue, uint8_t aLength) in WriteTlv() argument 367 Tlv *oldTlv = FindTlv(aType); in WriteTlv() 382 newTlv->SetType(aType); in WriteTlv() 530 void Dataset::RemoveTlv(Tlv::Type aType) { RemoveTlv(FindTlv(aType)); } in RemoveTlv() argument 544 Error Dataset::ReadTimestamp(Type aType, Timestamp &aTimestamp) const in ReadTimestamp() argument 547 const Tlv *tlv = FindTlv(TimestampTlvFor(aType)); in ReadTimestamp() 561 Error Dataset::WriteTimestamp(Type aType, const Timestamp &aTimestamp) in WriteTimestamp() argument [all …]
|
D | dataset_updater.cpp | 156 void DatasetUpdater::HandleDatasetChanged(Dataset::Type aType) in HandleDatasetChanged() argument 169 if (aType == Dataset::kActive) in HandleDatasetChanged() 185 if (aType == Dataset::kActive) in HandleDatasetChanged() 197 SuccessOrExit(newDataset.ReadTimestamp(aType, newTimestamp)); in HandleDatasetChanged() 198 SuccessOrExit(requestedDataset.ReadTimestamp(aType, requestedTimestamp)); in HandleDatasetChanged()
|
D | dataset_manager.hpp | 247 KeyRefType GetKeyRefType(Dataset::Type aType) const in GetKeyRefType() 249 return (aType == Dataset::kActive) ? mActiveKeyRefType : mPendingKeyRefType; in GetKeyRefType() 276 DatasetManager(Instance &aInstance, Type aType, TimerMilli::Handler aTimerHandler);
|
/openthread-latest/src/core/radio/ |
D | trel_packet.cpp | 56 uint16_t Header::GetSize(Type aType) in GetSize() argument 60 switch (aType) in GetSize() 110 void Packet::Init(Header::Type aType, uint8_t *aPayload, uint16_t aPayloadLength) in Init() argument 112 uint16_t headerSize = Header::GetSize(aType); in Init() 118 GetHeader().Init(aType); in Init()
|
D | trel_packet.hpp | 88 void Init(Type aType) { mControl = aType + kVersion; } in Init() argument 206 static uint16_t GetSize(Type aType); 259 void Init(Header::Type aType, uint8_t *aPayload, uint16_t aPayloadLength);
|
/openthread-latest/src/posix/platform/ |
D | misc.cpp | 99 int SocketWithCloseExec(int aDomain, int aType, int aProtocol, SocketBlockOption aBlockOption) in SocketWithCloseExec() argument 105 VerifyOrExit((fd = socket(aDomain, aType, aProtocol)) != -1, perror("socket(SOCK_CLOEXEC)")); in SocketWithCloseExec() 111 aType |= aBlockOption == kSocketNonBlock ? SOCK_CLOEXEC | SOCK_NONBLOCK : SOCK_CLOEXEC; in SocketWithCloseExec() 112 VerifyOrExit((fd = socket(aDomain, aType, aProtocol)) != -1, perror("socket(SOCK_CLOEXEC)")); in SocketWithCloseExec()
|
/openthread-latest/src/core/mac/ |
D | mac_types.hpp | 687 bool Contains(RadioType aType) const { return ((mBitMask & BitFlag(aType)) != 0); } in Contains() 694 void Add(RadioType aType) { mBitMask |= BitFlag(aType); } in Add() argument 713 void Remove(RadioType aType) { mBitMask &= ~BitFlag(aType); } in Remove() argument 742 …static uint8_t BitFlag(RadioType aType) { return static_cast<uint8_t>(1U << static_cast<uint8_t>(a… in BitFlag() argument
|
/openthread-latest/src/core/net/ |
D | icmp6.hpp | 128 void SetType(Type aType) { mType = static_cast<uint8_t>(aType); } in SetType() argument 263 …Error SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, const Mes… 276 …Error SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, const Hea…
|
D | dns_types.hpp | 125 void SetType(Type aType) in SetType() argument 128 mFlags[0] |= static_cast<uint8_t>(aType) << kQrFlagOffset; in SetType() 156 void SetQueryType(QueryType aType) in SetQueryType() argument 159 mFlags[0] |= static_cast<uint8_t>(aType) << kOpCodeOffset; in SetQueryType() 1285 void Init(uint16_t aType, uint16_t aClass = kClassInternet) in Init() argument 1287 SetType(aType); in Init() 1299 bool Matches(uint16_t aType, uint16_t aClass = kClassInternet) const in Matches() argument 1301 return (mType == BigEndian::HostSwap16(aType)) && (mClass == BigEndian::HostSwap16(aClass)); in Matches() 1316 void SetType(uint16_t aType) { mType = BigEndian::HostSwap16(aType); } in SetType() argument 1502 uint16_t aType, [all …]
|
D | icmp6.cpp | 77 Error Icmp::SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, cons… in SendError() argument 83 error = SendError(aType, aCode, aMessageInfo, headers); in SendError() 89 Error Icmp::SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, cons… in SendError() argument 110 icmp6Header.SetType(aType); in SendError()
|
D | dns_types.cpp | 858 uint16_t aType, in FindRecord() argument 883 error = ReadRecord(aMessage, offset, aType, aRecord, aMinRecordSize); in FindRecord() 914 uint16_t aType, in ReadRecord() argument 929 … if (((aType == kTypeAny) || (record.GetType() == aType)) && (record.GetSize() >= aMinRecordSize)) in ReadRecord() 1346 void NsecRecord::TypeBitMap::AddType(uint16_t aType) in AddType() argument 1348 if ((aType >> 8) == mBlockNumber) in AddType() 1350 uint8_t type = static_cast<uint8_t>(aType & 0xff); in AddType() 1359 bool NsecRecord::TypeBitMap::ContainsType(uint16_t aType) const in ContainsType() 1362 uint8_t type = static_cast<uint8_t>(aType & 0xff); in ContainsType() 1366 VerifyOrExit((aType >> 8) == mBlockNumber); in ContainsType()
|
/openthread-latest/examples/platforms/simulation/ |
D | trel.c | 97 static const char *messageTypeToString(MessageType aType) in messageTypeToString() argument 101 switch (aType) in messageTypeToString() 155 static void sendServiceMessage(MessageType aType) in sendServiceMessage() argument 159 … assert((aType == TREL_DNSSD_ADD_SERVICE_MESSAGE) || (aType == TREL_DNSSD_REMOVE_SERVICE_MESSAGE)); in sendServiceMessage() 164 message->mType = aType; in sendServiceMessage() 171 … aType == TREL_DNSSD_ADD_SERVICE_MESSAGE ? "add" : "remove", sSockAddr.mPort, sServiceTxtLength); in sendServiceMessage()
|
/openthread-latest/src/core/coap/ |
D | coap_message.cpp | 56 void Message::Init(Type aType, Code aCode) in Init() argument 59 SetType(aType); in Init() 63 Error Message::Init(Type aType, Code aCode, Uri aUri) in Init() argument 67 Init(aType, aCode); in Init() 288 Error Message::AppendBlockOption(Message::BlockType aType, uint32_t aNum, bool aMore, otCoapBlockSz… in AppendBlockOption() argument 293 VerifyOrExit(aType == kBlockType1 || aType == kBlockType2, error = kErrorInvalidArgs); in AppendBlockOption() 300 error = AppendUintOption((aType == kBlockType1) ? kOptionBlock1 : kOptionBlock2, encoded); in AppendBlockOption()
|
/openthread-latest/src/core/api/ |
D | coap_api.cpp | 47 void otCoapMessageInit(otMessage *aMessage, otCoapType aType, otCoapCode aCode) in otCoapMessageInit() argument 49 AsCoapMessage(aMessage).Init(MapEnum(aType), MapEnum(aCode)); in otCoapMessageInit() 52 otError otCoapMessageInitResponse(otMessage *aResponse, const otMessage *aRequest, otCoapType aType… in otCoapMessageInitResponse() argument 57 response.Init(MapEnum(aType), MapEnum(aCode)); in otCoapMessageInitResponse()
|