/openthread-3.7.0/src/core/common/ |
D | log.cpp | 211 Error GenerateNextHexDumpLine(HexDumpInfo &aInfo) in GenerateNextHexDumpLine() argument 222 StringWriter writer(aInfo.mLine, sizeof(aInfo.mLine)); in GenerateNextHexDumpLine() 224 switch (aInfo.mIterator) in GenerateNextHexDumpLine() 228 uint16_t txtLen = StringLength(aInfo.mTitle, kWidth - kTitleSuffixLen) + kTitleSuffixLen; in GenerateNextHexDumpLine() 231 writer.Append("[%s len=%03u]", aInfo.mTitle, aInfo.mDataLength); in GenerateNextHexDumpLine() 233 aInfo.mIterator = kIterFirstDataLine; in GenerateNextHexDumpLine() 239 aInfo.mIterator = kIterFinished; in GenerateNextHexDumpLine() 247 aInfo.mIterator = 0; in GenerateNextHexDumpLine() 252 uint16_t startIndex = aInfo.mIterator; in GenerateNextHexDumpLine() 253 uint16_t endIndex = aInfo.mIterator + kDumpBytesPerLine; in GenerateNextHexDumpLine() [all …]
|
/openthread-3.7.0/src/core/thread/ |
D | network_data_service.cpp | 169 Error Manager::GetNextDnsSrpAnycastInfo(Iterator &aIterator, DnsSrpAnycast::Info &aInfo) const in GetNextDnsSrpAnycastInfo() 185 aInfo.mAnycastAddress.SetToAnycastLocator(Get<Mle::Mle>().GetMeshLocalPrefix(), in GetNextDnsSrpAnycastInfo() 187 aInfo.mSequenceNumber = in GetNextDnsSrpAnycastInfo() 196 Error Manager::FindPreferredDnsSrpAnycastInfo(DnsSrpAnycast::Info &aInfo) const in FindPreferredDnsSrpAnycastInfo() 212 aInfo = info; in FindPreferredDnsSrpAnycastInfo() 218 if (SerialNumber::IsGreater(info.mSequenceNumber, aInfo.mSequenceNumber)) in FindPreferredDnsSrpAnycastInfo() 220 aInfo = info; in FindPreferredDnsSrpAnycastInfo() 243 if (seqNumber == aInfo.mSequenceNumber) in FindPreferredDnsSrpAnycastInfo() 248 diff = seqNumber - aInfo.mSequenceNumber; in FindPreferredDnsSrpAnycastInfo() 250 if ((diff == kMidValue) || !SerialNumber::IsGreater(aInfo.mSequenceNumber, seqNumber)) in FindPreferredDnsSrpAnycastInfo() [all …]
|
D | network_diagnostic.hpp | 207 Error AllocateAnswer(Coap::Message *&aAnswer, AnswerInfo &aInfo); 208 Error CheckAnswerLength(Coap::Message *&aAnswer, AnswerInfo &aInfo); 214 Error AppendChildTableAsChildTlvs(Coap::Message *&aAnswer, AnswerInfo &aInfo); 215 Error AppendRouterNeighborTlvs(Coap::Message *&aAnswer, AnswerInfo &aInfo); 216 Error AppendChildTableIp6AddressList(Coap::Message *&aAnswer, AnswerInfo &aInfo);
|
D | address_resolver.cpp | 89 Error AddressResolver::GetNextCacheEntry(EntryInfo &aInfo, Iterator &aIterator) const in GetNextCacheEntry() argument 126 aInfo.Clear(); in GetNextCacheEntry() 127 aInfo.mTarget = entry->GetTarget(); in GetNextCacheEntry() 128 aInfo.mRloc16 = entry->GetRloc16(); in GetNextCacheEntry() 132 aInfo.mState = MapEnum(EntryInfo::kStateCached); in GetNextCacheEntry() 133 aInfo.mCanEvict = true; in GetNextCacheEntry() 134 aInfo.mValidLastTrans = entry->IsLastTransactionTimeValid(); in GetNextCacheEntry() 138 aInfo.mLastTransTime = entry->GetLastTransactionTime(); in GetNextCacheEntry() 139 AsCoreType(&aInfo.mMeshLocalEid).SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in GetNextCacheEntry() 140 AsCoreType(&aInfo.mMeshLocalEid).SetIid(entry->GetMeshLocalIid()); in GetNextCacheEntry() [all …]
|
D | radio_selector.cpp | 64 void RadioSelector::NeighborInfo::PopulateMultiRadioInfo(MultiRadioInfo &aInfo) in PopulateMultiRadioInfo() argument 66 ClearAllBytes(aInfo); in PopulateMultiRadioInfo() 71 aInfo.mSupportsIeee802154 = true; in PopulateMultiRadioInfo() 72 aInfo.mIeee802154Info.mPreference = GetRadioPreference(Mac::kRadioTypeIeee802154); in PopulateMultiRadioInfo() 79 aInfo.mSupportsTrelUdp6 = true; in PopulateMultiRadioInfo() 80 aInfo.mTrelUdp6Info.mPreference = GetRadioPreference(Mac::kRadioTypeTrel); in PopulateMultiRadioInfo()
|
D | network_diagnostic.cpp | 472 Error Server::AllocateAnswer(Coap::Message *&aAnswer, AnswerInfo &aInfo) in AllocateAnswer() argument 482 IgnoreError(aAnswer->SetPriority(aInfo.mPriority)); in AllocateAnswer() 486 if (aInfo.mFirstAnswer == nullptr) in AllocateAnswer() 488 aInfo.mFirstAnswer = aAnswer; in AllocateAnswer() 491 if (aInfo.mHasQueryId) in AllocateAnswer() 493 SuccessOrExit(error = Tlv::Append<QueryIdTlv>(*aAnswer, aInfo.mQueryId)); in AllocateAnswer() 593 Error Server::CheckAnswerLength(Coap::Message *&aAnswer, AnswerInfo &aInfo) in CheckAnswerLength() argument 606 answerTlv.Init(aInfo.mAnswerIndex++, /* aIsLast */ false); in CheckAnswerLength() 609 error = AllocateAnswer(aAnswer, aInfo); in CheckAnswerLength() 680 Error Server::AppendChildTableAsChildTlvs(Coap::Message *&aAnswer, AnswerInfo &aInfo) in AppendChildTableAsChildTlvs() argument [all …]
|
D | network_data_service.hpp | 560 Error GetNextDnsSrpAnycastInfo(Iterator &aIterator, DnsSrpAnycast::Info &aInfo) const; 575 Error FindPreferredDnsSrpAnycastInfo(DnsSrpAnycast::Info &aInfo) const; 590 Error GetNextDnsSrpUnicastInfo(Iterator &aIterator, DnsSrpUnicast::Info &aInfo) const;
|
/openthread-3.7.0/src/cli/ |
D | cli_history.cpp | 1021 const char *History::RadioTypeToString(const otHistoryTrackerMessageInfo &aInfo) in RadioTypeToString() argument 1025 if (aInfo.mRadioTrelUdp6 && aInfo.mRadioIeee802154) in RadioTypeToString() 1029 else if (aInfo.mRadioIeee802154) in RadioTypeToString() 1033 else if (aInfo.mRadioTrelUdp6) in RadioTypeToString() 1041 const char *History::MessageTypeToString(const otHistoryTrackerMessageInfo &aInfo) in MessageTypeToString() argument 1043 const char *str = otIp6ProtoToString(aInfo.mIpProto); in MessageTypeToString() 1045 if (aInfo.mIpProto == OT_IP6_PROTO_ICMP6) in MessageTypeToString() 1047 switch (aInfo.mIcmp6Type) in MessageTypeToString() 1176 void History::OutputRxTxEntryListFormat(const otHistoryTrackerMessageInfo &aInfo, uint32_t aEntryAg… in OutputRxTxEntryListFormat() argument 1185 …utFormat(kIndentSize, "type:%s len:%u checksum:0x%04x sec:%s prio:%s ", MessageTypeToString(aInfo), in OutputRxTxEntryListFormat() [all …]
|
D | cli_history.hpp | 100 …void OutputRxTxEntryListFormat(const otHistoryTrackerMessageInfo &aInfo, uint32_t aEntryAge, bo… 101 …void OutputRxTxEntryTableFormat(const otHistoryTrackerMessageInfo &aInfo, uint32_t aEntryAge, b… 104 static const char *RadioTypeToString(const otHistoryTrackerMessageInfo &aInfo); 105 static const char *MessageTypeToString(const otHistoryTrackerMessageInfo &aInfo);
|
/openthread-3.7.0/src/core/meshcop/ |
D | timestamp.cpp | 43 void Timestamp::ConvertTo(Info &aInfo) const in ConvertTo() 45 aInfo.mSeconds = GetSeconds(); in ConvertTo() 46 aInfo.mTicks = GetTicks(); in ConvertTo() 47 aInfo.mAuthoritative = GetAuthoritative(); in ConvertTo() 50 void Timestamp::SetFrom(const Info &aInfo) in SetFrom() argument 52 SetSeconds(aInfo.mSeconds); in SetFrom() 53 SetTicks(aInfo.mTicks); in SetFrom() 54 SetAuthoritative(aInfo.mAuthoritative); in SetFrom()
|
D | dataset_manager_ftd.cpp | 70 RequestInfo &aInfo) const in ProcessSetOrReplaceRequest() 82 aInfo.Clear(); in ProcessSetOrReplaceRequest() 110 aInfo.mAffectsConnectivity = true; in ProcessSetOrReplaceRequest() 115 aInfo.mAffectsConnectivity = true; in ProcessSetOrReplaceRequest() 121 aInfo.mAffectsConnectivity = true; in ProcessSetOrReplaceRequest() 132 aInfo.mAffectsConnectivity = true; in ProcessSetOrReplaceRequest() 133 aInfo.mAffectsNetworkKey = true; in ProcessSetOrReplaceRequest() 140 if (IsPendingDataset() && !aInfo.mAffectsNetworkKey) in ProcessSetOrReplaceRequest() 151 aInfo.mIsFromCommissioner = true; in ProcessSetOrReplaceRequest() 163 VerifyOrExit(!aInfo.mAffectsConnectivity); in ProcessSetOrReplaceRequest() [all …]
|
D | timestamp.hpp | 72 void ConvertTo(Info &aInfo) const; 80 void SetFrom(const Info &aInfo);
|
/openthread-3.7.0/src/core/instance/ |
D | instance.cpp | 469 void Instance::GetBufferInfo(BufferInfo &aInfo) in GetBufferInfo() argument 471 aInfo.Clear(); in GetBufferInfo() 473 aInfo.mTotalBuffers = Get<MessagePool>().GetTotalBufferCount(); in GetBufferInfo() 474 aInfo.mFreeBuffers = Get<MessagePool>().GetFreeBufferCount(); in GetBufferInfo() 475 aInfo.mMaxUsedBuffers = Get<MessagePool>().GetMaxUsedBufferCount(); in GetBufferInfo() 477 Get<MeshForwarder>().GetSendQueue().GetInfo(aInfo.m6loSendQueue); in GetBufferInfo() 478 Get<MeshForwarder>().GetReassemblyQueue().GetInfo(aInfo.m6loReassemblyQueue); in GetBufferInfo() 479 Get<Ip6::Ip6>().GetSendQueue().GetInfo(aInfo.mIp6Queue); in GetBufferInfo() 482 Get<Ip6::Mpl>().GetBufferedMessageSet().GetInfo(aInfo.mMplQueue); in GetBufferInfo() 485 Get<Mle::MleRouter>().GetMessageQueue().GetInfo(aInfo.mMleQueue); in GetBufferInfo() [all …]
|
/openthread-3.7.0/src/core/api/ |
D | mdns_api.cpp | 239 otMdnsCacheInfo *aInfo) in otMdnsGetNextBrowser() argument 243 AssertPointerIsNotNull(aInfo); in otMdnsGetNextBrowser() 245 …rn AsCoreType(aInstance).Get<Dns::Multicast::Core>().GetNextBrowser(*aIterator, *aBrowser, *aInfo); in otMdnsGetNextBrowser() 251 otMdnsCacheInfo *aInfo) in otMdnsGetNextSrvResolver() argument 255 AssertPointerIsNotNull(aInfo); in otMdnsGetNextSrvResolver() 257 …CoreType(aInstance).Get<Dns::Multicast::Core>().GetNextSrvResolver(*aIterator, *aResolver, *aInfo); in otMdnsGetNextSrvResolver() 263 otMdnsCacheInfo *aInfo) in otMdnsGetNextTxtResolver() argument 267 AssertPointerIsNotNull(aInfo); in otMdnsGetNextTxtResolver() 269 …CoreType(aInstance).Get<Dns::Multicast::Core>().GetNextTxtResolver(*aIterator, *aResolver, *aInfo); in otMdnsGetNextTxtResolver() 275 otMdnsCacheInfo *aInfo) in otMdnsGetNextIp6AddressResolver() argument [all …]
|
/openthread-3.7.0/src/core/radio/ |
D | trel_interface.cpp | 175 …"C" void otPlatTrelHandleDiscoveredPeerInfo(otInstance *aInstance, const otPlatTrelPeerInfo *aInfo) in otPlatTrelHandleDiscoveredPeerInfo() argument 180 …ance.Get<Interface>().HandleDiscoveredPeerInfo(*static_cast<const Interface::Peer::Info *>(aInfo)); in otPlatTrelHandleDiscoveredPeerInfo() 186 void Interface::HandleDiscoveredPeerInfo(const Peer::Info &aInfo) in HandleDiscoveredPeerInfo() argument 195 SuccessOrExit(ParsePeerInfoTxtData(aInfo, extAddress, extPanId)); in HandleDiscoveredPeerInfo() 199 if (aInfo.IsRemoved()) in HandleDiscoveredPeerInfo() 213 entry = mPeerTable.FindMatching(aInfo.GetSockAddr()); in HandleDiscoveredPeerInfo() 237 … VerifyOrExit((entry->GetExtPanId() != extPanId) || (entry->GetSockAddr() != aInfo.GetSockAddr())); in HandleDiscoveredPeerInfo() 241 entry->SetSockAddr(aInfo.GetSockAddr()); in HandleDiscoveredPeerInfo() 249 Error Interface::ParsePeerInfoTxtData(const Peer::Info &aInfo, in ParsePeerInfoTxtData() argument 261 iterator.Init(aInfo.GetTxtData(), aInfo.GetTxtLength()); in ParsePeerInfoTxtData()
|
D | trel_interface.hpp | 60 …C" void otPlatTrelHandleDiscoveredPeerInfo(otInstance *aInstance, const otPlatTrelPeerInfo *aInfo); 76 …nd void otPlatTrelHandleDiscoveredPeerInfo(otInstance *aInstance, const otPlatTrelPeerInfo *aInfo); 86 …nd void otPlatTrelHandleDiscoveredPeerInfo(otInstance *aInstance, const otPlatTrelPeerInfo *aInfo); 281 void HandleDiscoveredPeerInfo(const Peer::Info &aInfo); 284 Error ParsePeerInfoTxtData(const Peer::Info &aInfo,
|
/openthread-3.7.0/src/core/net/ |
D | srp_client.cpp | 1002 Error Client::AppendServiceInstructions(Message &aMessage, Info &aInfo) in AppendServiceInstructions() argument 1074 SuccessOrExit(error = AppendServiceInstruction(service, aMessage, aInfo)); in AppendServiceInstructions() 1097 SuccessOrExit(error = AppendServiceInstruction(service, aMessage, aInfo)); in AppendServiceInstructions() 1161 Error Client::AppendServiceInstruction(Service &aService, Message &aMessage, Info &aInfo) in AppendServiceInstruction() argument 1181 SuccessOrExit(error = Dns::Name::AppendPointerLabel(aInfo.mDomainNameOffset, aMessage)); in AppendServiceInstruction() 1197 aInfo.mRecordCount++; in AppendServiceInstruction() 1227 aInfo.mRecordCount++; in AppendServiceInstruction() 1238 aInfo.mRecordCount++; in AppendServiceInstruction() 1252 SuccessOrExit(error = AppendHostName(aMessage, aInfo)); in AppendServiceInstruction() 1254 aInfo.mRecordCount++; in AppendServiceInstruction() [all …]
|
D | dns_client.cpp | 975 Error Client::StartQuery(QueryInfo &aInfo, const char *aLabel, const char *aName, QueryType aSecond… in StartQuery() argument 987 if (aInfo.mQueryType == kIp4AddressQuery) in StartQuery() 991 … VerifyOrExit(aInfo.mConfig.GetNat64Mode() == QueryConfig::kNat64Allow, error = kErrorInvalidArgs); in StartQuery() 997 SuccessOrExit(error = AllocateQuery(aInfo, aLabel, aName, query)); in StartQuery() 1001 error = SendQuery(*query, aInfo, /* aUpdateTimer */ true); in StartQuery() 1008 aInfo.mQueryType = aSecondType; in StartQuery() 1009 aInfo.mMessageId = 0; in StartQuery() 1010 aInfo.mTransmissionCount = 0; in StartQuery() 1011 aInfo.mMainQuery = query; in StartQuery() 1016 SuccessOrExit(AllocateQuery(aInfo, aLabel, aName, secondQuery)); in StartQuery() [all …]
|
D | mdns.hpp | 664 Error GetNextBrowser(Iterator &aIterator, Browser &aBrowser, CacheInfo &aInfo) const; 681 Error GetNextSrvResolver(Iterator &aIterator, SrvResolver &aResolver, CacheInfo &aInfo) const; 698 Error GetNextTxtResolver(Iterator &aIterator, TxtResolver &aResolver, CacheInfo &aInfo) const; 716 …GetNextIp6AddressResolver(Iterator &aIterator, AddressResolver &aResolver, CacheInfo &aInfo) const; 734 …GetNextIp4AddressResolver(Iterator &aIterator, AddressResolver &aResolver, CacheInfo &aInfo) const; 913 void ScheduleAnswer(const AnswerInfo &aInfo); 1017 void AnswerProbe(const AnswerInfo &aInfo, RecordAndType *aRecords, uint16_t aRecordsLength); 1018 … void AnswerNonProbe(const AnswerInfo &aInfo, RecordAndType *aRecords, uint16_t aRecordsLength); 1019 void ScheduleNsecAnswer(const AnswerInfo &aInfo); 1066 void AnswerQuestion(const AnswerInfo &aInfo); [all …]
|
D | srp_client.hpp | 1021 Error AppendServiceInstructions(Message &aMessage, Info &aInfo); 1023 Error AppendServiceInstruction(Service &aService, Message &aMessage, Info &aInfo); 1024 Error AppendHostDescriptionInstruction(Message &aMessage, Info &aInfo); 1025 Error AppendKeyRecord(Message &aMessage, Info &aInfo) const; 1027 Error AppendHostName(Message &aMessage, Info &aInfo, bool aDoNotCompress = false) const; 1028 … Error AppendAaaaRecord(const Ip6::Address &aAddress, Message &aMessage, Info &aInfo) const; 1030 Error AppendSignature(Message &aMessage, Info &aInfo); 1048 Error SelectUnicastEntry(DnsSrpUnicast::Origin aOrigin, DnsSrpUnicast::Info &aInfo) const;
|
D | mdns.cpp | 225 Error Core::GetNextBrowser(Iterator &aIterator, Browser &aBrowser, CacheInfo &aInfo) const in GetNextBrowser() 227 return static_cast<EntryIterator &>(aIterator).GetNextBrowser(aBrowser, aInfo); in GetNextBrowser() 230 Error Core::GetNextSrvResolver(Iterator &aIterator, SrvResolver &aResolver, CacheInfo &aInfo) const in GetNextSrvResolver() 232 return static_cast<EntryIterator &>(aIterator).GetNextSrvResolver(aResolver, aInfo); in GetNextSrvResolver() 235 Error Core::GetNextTxtResolver(Iterator &aIterator, TxtResolver &aResolver, CacheInfo &aInfo) const in GetNextTxtResolver() 237 return static_cast<EntryIterator &>(aIterator).GetNextTxtResolver(aResolver, aInfo); in GetNextTxtResolver() 240 …:GetNextIp6AddressResolver(Iterator &aIterator, AddressResolver &aResolver, CacheInfo &aInfo) const in GetNextIp6AddressResolver() 242 return static_cast<EntryIterator &>(aIterator).GetNextIp6AddressResolver(aResolver, aInfo); in GetNextIp6AddressResolver() 245 …:GetNextIp4AddressResolver(Iterator &aIterator, AddressResolver &aResolver, CacheInfo &aInfo) const in GetNextIp4AddressResolver() 247 return static_cast<EntryIterator &>(aIterator).GetNextIp4AddressResolver(aResolver, aInfo); in GetNextIp4AddressResolver() [all …]
|
/openthread-3.7.0/src/core/utils/ |
D | history_tracker.cpp | 189 …oryTracker::RecordNeighborEvent(NeighborTable::Event aEvent, const NeighborTable::EntryInfo &aInfo) in RecordNeighborEvent() argument 200 entry->mExtAddress = aInfo.mInfo.mChild.mExtAddress; in RecordNeighborEvent() 201 entry->mRloc16 = aInfo.mInfo.mChild.mRloc16; in RecordNeighborEvent() 202 entry->mAverageRssi = aInfo.mInfo.mChild.mAverageRssi; in RecordNeighborEvent() 203 entry->mRxOnWhenIdle = aInfo.mInfo.mChild.mRxOnWhenIdle; in RecordNeighborEvent() 204 entry->mFullThreadDevice = aInfo.mInfo.mChild.mFullThreadDevice; in RecordNeighborEvent() 205 entry->mFullNetworkData = aInfo.mInfo.mChild.mFullNetworkData; in RecordNeighborEvent() 211 entry->mExtAddress = aInfo.mInfo.mRouter.mExtAddress; in RecordNeighborEvent() 212 entry->mRloc16 = aInfo.mInfo.mRouter.mRloc16; in RecordNeighborEvent() 213 entry->mAverageRssi = aInfo.mInfo.mRouter.mAverageRssi; in RecordNeighborEvent() [all …]
|
/openthread-3.7.0/include/openthread/ |
D | mdns.h | 882 otMdnsCacheInfo *aInfo); 907 otMdnsCacheInfo *aInfo); 932 otMdnsCacheInfo *aInfo); 957 otMdnsCacheInfo *aInfo); 982 otMdnsCacheInfo *aInfo);
|
/openthread-3.7.0/src/core/crypto/ |
D | hkdf_sha256.cpp | 60 void HkdfSha256::Expand(const uint8_t *aInfo, uint16_t aInfoLength, uint8_t *aOutputKey, uint16_t a… in Expand() argument 62 …SuccessOrAssert(otPlatCryptoHkdfExpand(&mContext, aInfo, aInfoLength, aOutputKey, aOutputKeyLength… in Expand()
|
/openthread-3.7.0/tests/unit/ |
D | test_network_data.cpp | 644 bool Matches(Service::DnsSrpAnycast::Info aInfo) const in TestNetworkDataDsnSrpServices() 646 VerifyOrQuit(aInfo.mAnycastAddress.GetIid().IsAnycastServiceLocator()); in TestNetworkDataDsnSrpServices() 648 return (aInfo.mAnycastAddress.GetIid().GetLocator() == mAloc16) && in TestNetworkDataDsnSrpServices() 649 (aInfo.mSequenceNumber == mSequenceNumber); in TestNetworkDataDsnSrpServices() 660 bool Matches(Service::DnsSrpUnicast::Info aInfo) const in TestNetworkDataDsnSrpServices() 667 … return (aInfo.mSockAddr == sockAddr) && (aInfo.mOrigin == mOrigin) && (aInfo.mRloc16 == mRloc16); in TestNetworkDataDsnSrpServices()
|