/openthread-3.6.0/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 | 101 void AddSupportedRadioType(Mac::RadioType aType) { mSupportedRadioTypes.Add(aType); } in AddSupportedRadioType() argument 102 void RemoveSupportedRadioType(Mac::RadioType aType) { mSupportedRadioTypes.Remove(aType); } in RemoveSupportedRadioType() argument 105 uint8_t GetRadioPreference(Mac::RadioType aType) const { return mRadioPreference[aType]; } in GetRadioPreference() 106 …void SetRadioPreference(Mac::RadioType aType, uint8_t aValue) { mRadioPreference[aType] = aValu… in SetRadioPreference() argument 204 …void Log(LogLevel aLogLevel, const char *aActionText, Mac::RadioType aType, const Neighb…
|
D | network_data_tlvs.hpp | 158 … void SetType(Type aType) { mType = (mType & ~kTypeMask) | ((aType << kTypeOffset) & kTypeMask); } in SetType() argument 270 static NetworkDataTlv *Find(NetworkDataTlv *aStart, NetworkDataTlv *aEnd, Type aType) in Find() argument 272 return AsNonConst(Find(AsConst(aStart), AsConst(aEnd), aType)); in Find() 285 …c const NetworkDataTlv *Find(const NetworkDataTlv *aStart, const NetworkDataTlv *aEnd, Type aType); 331 …static NetworkDataTlv *Find(NetworkDataTlv *aStart, NetworkDataTlv *aEnd, Type aType, bool aStable) in Find() argument 333 return AsNonConst(Find(AsConst(aStart), AsConst(aEnd), aType, aStable)); in Find() 350 Type aType, 852 NetworkDataTlv *FindSubTlv(Type aType) { return AsNonConst(AsConst(this)->FindSubTlv(aType)); } in FindSubTlv() argument 862 const NetworkDataTlv *FindSubTlv(Type aType) const; 873 NetworkDataTlv *FindSubTlv(Type aType, bool aStable) in FindSubTlv() argument [all …]
|
D | network_data_leader.hpp | 114 uint8_t GetVersion(Type aType) const { return (aType == kFullSet) ? mVersion : mStableVersion; } in GetVersion() 180 Type aType, 454 Error ReadCommissioningDataUint16SubTlv(MeshCoP::Tlv::Type aType, uint16_t &aValue) const; 458 const MeshCoP::Tlv *FindCommissioningDataSubTlv(uint8_t aType) const; 459 MeshCoP::Tlv *FindCommissioningDataSubTlv(uint8_t aType) in FindCommissioningDataSubTlv() argument 461 return AsNonConst(AsConst(this)->FindCommissioningDataSubTlv(aType)); in FindCommissioningDataSubTlv()
|
D | mle.hpp | 1014 Error AppendNetworkDataTlv(NetworkData::Type aType); 1279 void SendParentRequest(ParentRequestType aType); 1288 Error DetermineParentRequestType(ParentRequestType &aType) const; 1339 static void Log(MessageAction aAction, MessageType aType, const Ip6::Address &aAddress); 1340 …static void Log(MessageAction aAction, MessageType aType, const Ip6::Address &aAddress, uint16_t a… 1353 static void LogError(MessageAction aAction, MessageType aType, Error aError); 1355 static const char *MessageTypeToString(MessageType aType); 1356 static const char *MessageTypeActionToSuffixString(MessageType aType, MessageAction aAction); 1357 static void LogProcessError(MessageType aType, Error aError); 1358 static void LogSendError(MessageType aType, Error aError);
|
D | network_data_leader.cpp | 415 Type aType, in SetNetworkData() argument 429 if (aType == kStableSubset) in SetNetworkData() 454 const MeshCoP::Tlv *Leader::FindCommissioningDataSubTlv(uint8_t aType) const in FindCommissioningDataSubTlv() 460 subTlv = As<MeshCoP::Tlv>(Tlv::FindTlv(dataTlv->GetValue(), dataTlv->GetLength(), aType)); in FindCommissioningDataSubTlv() 466 Error Leader::ReadCommissioningDataUint16SubTlv(MeshCoP::Tlv::Type aType, uint16_t &aValue) const in ReadCommissioningDataUint16SubTlv() argument 469 const MeshCoP::Tlv *subTlv = FindCommissioningDataSubTlv(aType); in ReadCommissioningDataUint16SubTlv()
|
D | thread_tlvs.hpp | 93 void SetType(Type aType) { ot::Tlv::SetType(static_cast<uint8_t>(aType)); } in SetType() argument
|
D | network_data_publisher.hpp | 420 static Info InfoUnicast(Type aType, const Ip6::Address &aAddress, uint16_t aPort) in InfoUnicast() argument 422 return Info(aType, aPort, &aAddress); in InfoUnicast() 426 Info(Type aType, uint16_t aPortOrSeqNumber, const Ip6::Address *aAddress = nullptr);
|
/openthread-3.6.0/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() 84 Error Tlv::FindTlvValueOffset(const Message &aMessage, uint8_t aType, uint16_t &aValueOffset, uint1… in FindTlvValueOffset() argument 89 SuccessOrExit(error = info.FindIn(aMessage, aType)); in FindTlvValueOffset() 99 uint8_t aType, in FindTlvValueStartEndOffsets() argument 106 SuccessOrExit(error = info.FindIn(aMessage, aType)); in FindTlvValueStartEndOffsets() 165 Error Tlv::ParsedInfo::FindIn(const Message &aMessage, uint8_t aType) in FindIn() argument 180 if (mType == aType) in FindIn() [all …]
|
D | tlvs.hpp | 79 void SetType(uint8_t aType) { mType = aType; } in SetType() argument 334 static Error FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv); 351 …static Error FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv, uint16_… 406 …static Error FindTlvValueOffset(const Message &aMessage, uint8_t aType, uint16_t &aValueOffset, ui… 423 uint8_t aType, 624 static const Tlv *FindTlv(const void *aTlvsStart, uint16_t aTlvsLength, uint8_t aType); 636 static Tlv *FindTlv(void *aTlvsStart, uint16_t aTlvsLength, uint8_t aType) in FindTlv() argument 638 return AsNonConst(FindTlv(AsConst(aTlvsStart), aTlvsLength, aType)); in FindTlv() 680 Error FindIn(const Message &aMessage, uint8_t aType); 689 static Error FindTlv(const Message &aMessage, uint8_t aType, void *aValue, uint16_t aLength); [all …]
|
D | settings.cpp | 219 Settings::Key Settings::KeyForDatasetType(MeshCoP::Dataset::Type aType) in KeyForDatasetType() argument 221 return (aType == MeshCoP::Dataset::kActive) ? kKeyActiveDataset : kKeyPendingDataset; in KeyForDatasetType() 224 Error Settings::SaveOperationalDataset(MeshCoP::Dataset::Type aType, const MeshCoP::Dataset &aDatas… in SaveOperationalDataset() argument 226 Key key = KeyForDatasetType(aType); in SaveOperationalDataset() 234 Error Settings::ReadOperationalDataset(MeshCoP::Dataset::Type aType, MeshCoP::Dataset &aDataset) co… in ReadOperationalDataset() argument 239 …SuccessOrExit(error = Get<SettingsDriver>().Get(KeyForDatasetType(aType), aDataset.GetBytes(), &le… in ReadOperationalDataset() 248 Error Settings::DeleteOperationalDataset(MeshCoP::Dataset::Type aType) in DeleteOperationalDataset() argument 250 Key key = KeyForDatasetType(aType); in DeleteOperationalDataset()
|
/openthread-3.6.0/src/core/meshcop/ |
D | dataset.hpp | 634 bool ContainsTlv(Tlv::Type aType) const { return (FindTlv(aType) != nullptr); } in ContainsTlv() 658 Tlv *FindTlv(Tlv::Type aType) { return AsNonConst(AsConst(this)->FindTlv(aType)); } in FindTlv() argument 668 const Tlv *FindTlv(Tlv::Type aType) const; 696 Error WriteTlv(Tlv::Type aType, const void *aValue, uint8_t aLength); 744 void RemoveTlv(Tlv::Type aType); 812 Error GetTimestamp(Type aType, Timestamp &aTimestamp) const; 821 void SetTimestamp(Type aType, const Timestamp &aTimestamp); 846 void Set(Type aType, const Dataset &aDataset); 877 Error AppendMleDatasetTlv(Type aType, Message &aMessage) const; 941 static const char *TypeToString(Type aType);
|
D | dataset.cpp | 182 const Tlv *Dataset::FindTlv(Tlv::Type aType) const { return As<Tlv>(Tlv::FindTlv(mTlvs, mLength, aT… in FindTlv() 260 void Dataset::Set(Type aType, const Dataset &aDataset) in Set() argument 265 if (aType == kActive) in Set() 367 Error Dataset::GetTimestamp(Type aType, Timestamp &aTimestamp) const in GetTimestamp() argument 372 if (aType == kActive) in GetTimestamp() 389 void Dataset::SetTimestamp(Type aType, const Timestamp &aTimestamp) in SetTimestamp() argument 391 if (aType == kActive) in SetTimestamp() 401 Error Dataset::WriteTlv(Tlv::Type aType, const void *aValue, uint8_t aLength) in WriteTlv() argument 405 Tlv *oldTlv = FindTlv(aType); in WriteTlv() 420 newTlv->SetType(aType); in WriteTlv() [all …]
|
D | dataset_local.hpp | 57 DatasetLocal(Instance &aInstance, Dataset::Type aType); 190 Crypto::Storage::KeyRef GetKeyRef(Dataset::Type aType) const in GetKeyRef() 192 return (aType == Dataset::kActive) ? mActiveKeyRef : mPendingKeyRef; in GetKeyRef()
|
/openthread-3.6.0/src/core/radio/ |
D | trel_packet.cpp | 59 uint16_t Header::GetSize(Type aType) in GetSize() argument 63 switch (aType) in GetSize() 113 void Packet::Init(Header::Type aType, uint8_t *aPayload, uint16_t aPayloadLength) in Init() argument 115 uint16_t headerSize = Header::GetSize(aType); in Init() 121 GetHeader().Init(aType); in Init()
|
D | trel_packet.hpp | 93 void Init(Type aType) { mControl = aType + kVersion; } in Init() argument 227 static uint16_t GetSize(Type aType); 284 void Init(Header::Type aType, uint8_t *aPayload, uint16_t aPayloadLength);
|
/openthread-3.6.0/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-3.6.0/src/core/mac/ |
D | mac_types.hpp | 737 bool Contains(RadioType aType) const { return ((mBitMask & BitFlag(aType)) != 0); } in Contains() 745 void Add(RadioType aType) { mBitMask |= BitFlag(aType); } in Add() argument 767 void Remove(RadioType aType) { mBitMask &= ~BitFlag(aType); } in Remove() argument 799 …static uint8_t BitFlag(RadioType aType) { return static_cast<uint8_t>(1U << static_cast<uint8_t>(a… in BitFlag() argument
|
/openthread-3.6.0/src/core/net/ |
D | icmp6.hpp | 135 void SetType(Type aType) { mType = static_cast<uint8_t>(aType); } in SetType() argument 285 …Error SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, const Mes… 299 …Error SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, const Hea…
|
D | dns_types.hpp | 135 void SetType(Type aType) in SetType() argument 138 mFlags[0] |= static_cast<uint8_t>(aType) << kQrFlagOffset; in SetType() 169 void SetQueryType(QueryType aType) in SetQueryType() argument 172 mFlags[0] |= static_cast<uint8_t>(aType) << kOpCodeOffset; in SetQueryType() 1355 void Init(uint16_t aType, uint16_t aClass = kClassInternet) in Init() argument 1357 SetType(aType); in Init() 1370 bool Matches(uint16_t aType, uint16_t aClass = kClassInternet) const in Matches() argument 1372 return (mType == BigEndian::HostSwap16(aType)) && (mClass == BigEndian::HostSwap16(aClass)); in Matches() 1389 void SetType(uint16_t aType) { mType = BigEndian::HostSwap16(aType); } in SetType() argument 1586 uint16_t aType, [all …]
|
D | icmp6.cpp | 84 Error Icmp::SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, cons… in SendError() argument 90 error = SendError(aType, aCode, aMessageInfo, headers); in SendError() 96 Error Icmp::SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, cons… in SendError() argument 117 icmp6Header.SetType(aType); in SendError()
|
/openthread-3.6.0/examples/platforms/simulation/ |
D | trel.c | 96 static const char *messageTypeToString(MessageType aType) in messageTypeToString() argument 100 switch (aType) in messageTypeToString() 246 static void sendServiceMessage(MessageType aType) in sendServiceMessage() argument 250 … assert((aType == TREL_DNSSD_ADD_SERVICE_MESSAGE) || (aType == TREL_DNSSD_REMOVE_SERVICE_MESSAGE)); in sendServiceMessage() 255 message->mType = aType; in sendServiceMessage() 263 … aType == TREL_DNSSD_ADD_SERVICE_MESSAGE ? "add" : "remove", sServicePort, sServiceTxtLength); in sendServiceMessage()
|
/openthread-3.6.0/src/core/coap/ |
D | coap_message.cpp | 63 void Message::Init(Type aType, Code aCode) in Init() argument 66 SetType(aType); in Init() 70 Error Message::Init(Type aType, Code aCode, Uri aUri) in Init() argument 74 Init(aType, aCode); in Init() 251 Error Message::AppendBlockOption(Message::BlockType aType, uint32_t aNum, bool aMore, otCoapBlockSz… in AppendBlockOption() argument 256 VerifyOrExit(aType == kBlockType1 || aType == kBlockType2, error = kErrorInvalidArgs); in AppendBlockOption() 263 error = AppendUintOption((aType == kBlockType1) ? kOptionBlock1 : kOptionBlock2, encoded); in AppendBlockOption()
|
D | coap_message.hpp | 203 void Init(Type aType, Code aCode); 216 Error Init(Type aType, Code aCode, Uri aUri); 278 void SetType(Type aType) in SetType() argument 281 GetHelpData().mHeader.mVersionTypeToken |= (static_cast<uint8_t>(aType) << kTypeOffset); in SetType() 478 Error AppendBlockOption(BlockType aType, uint32_t aNum, bool aMore, otCoapBlockSzx aSize);
|
/openthread-3.6.0/src/core/api/ |
D | coap_api.cpp | 51 void otCoapMessageInit(otMessage *aMessage, otCoapType aType, otCoapCode aCode) in otCoapMessageInit() argument 53 AsCoapMessage(aMessage).Init(MapEnum(aType), MapEnum(aCode)); in otCoapMessageInit() 56 otError otCoapMessageInitResponse(otMessage *aResponse, const otMessage *aRequest, otCoapType aType… in otCoapMessageInitResponse() argument 61 response.Init(MapEnum(aType), MapEnum(aCode)); in otCoapMessageInitResponse()
|