/openthread-3.4.0/src/core/common/ |
D | log.cpp | 102 logString.Append(" "); in LogVarArgs() 120 logString.Append("[%c] ", kLevelChars[aLogLevel]); in LogVarArgs() 124 logString.Append("%.*s%s: ", kMaxLogModuleNameLength, aModuleName, in LogVarArgs() 129 logString.Append("%s", OPENTHREAD_CONFIG_LOG_SUFFIX); in LogVarArgs() 176 string.Append("|"); in DumpLine() 182 string.Append(" %02X", aData[i]); in DumpLine() 186 string.Append(" .."); in DumpLine() 191 string.Append(" |"); in DumpLine() 195 string.Append(" "); in DumpLine() 211 string.Append("%c", c); in DumpLine() [all …]
|
D | frame_builder.cpp | 55 Error FrameBuilder::AppendUint8(uint8_t aUint8) { return Append<uint8_t>(aUint8); } in AppendUint8() 59 return Append<uint16_t>(Encoding::BigEndian::HostSwap16(aUint16)); in AppendBigEndianUint16() 64 return Append<uint32_t>(Encoding::BigEndian::HostSwap32(aUint32)); in AppendBigEndianUint32() 69 return Append<uint16_t>(Encoding::LittleEndian::HostSwap16(aUint16)); in AppendLittleEndianUint16() 74 return Append<uint32_t>(Encoding::LittleEndian::HostSwap32(aUint32)); in AppendLittleEndianUint32()
|
D | uptime.cpp | 123 aWriter.Append("%lud.", static_cast<unsigned long>(days)); in UptimeToString() 132 aWriter.Append("%02u:%02u:%02u", hours, minutes, seconds); in UptimeToString() 136 aWriter.Append(".%03u", static_cast<uint16_t>(remainder)); in UptimeToString()
|
D | tlvs.hpp | 432 …template <typename TlvType> static Error Append(Message &aMessage, const void *aValue, uint8_t aLe… in Append() function in ot::Tlv 452 static Error Append(Message &aMessage, const typename SimpleTlvType::ValueType &aValue) in Append() function in ot::Tlv 471 …template <typename UintTlvType> static Error Append(Message &aMessage, typename UintTlvType::UintV… in Append() function in ot::Tlv 495 template <typename StringTlvType> static Error Append(Message &aMessage, const char *aValue) in Append() function in ot::Tlv
|
/openthread-3.4.0/tests/unit/ |
D | test_tlv.cpp | 69 SuccessOrQuit(message->Append(tlv)); in TestTlv() 83 SuccessOrQuit(message->Append(extTlv)); in TestTlv() 97 SuccessOrQuit(message->Append(tlv)); in TestTlv() 98 SuccessOrQuit(message->Append<uint8_t>(0xff)); in TestTlv() 113 SuccessOrQuit(message->Append(extTlv)); in TestTlv() 114 SuccessOrQuit(message->Append<uint8_t>(0x12)); in TestTlv() 115 SuccessOrQuit(message->Append<uint8_t>(0x34)); in TestTlv() 133 SuccessOrQuit(message->Append(tlv)); in TestTlv() 139 SuccessOrQuit(message->Append<uint8_t>(0xaa)); in TestTlv() 154 SuccessOrQuit(message->Append(extTlv)); in TestTlv() [all …]
|
D | test_hmac_sha256.cpp | 117 SuccessOrQuit(message->Append("Hello")); in TestSha256() 120 SuccessOrQuit(message->Append("There!")); in TestSha256() 260 SuccessOrQuit(message->Append("Hello")); in TestHmacSha256() 263 SuccessOrQuit(message->Append("There")); in TestHmacSha256()
|
D | test_string.cpp | 67 str.Append("Hi"); in TestStringWriter() 72 str.Append("%s%d", "!", 12); in TestStringWriter() 77 str.Append(kLongString); in TestStringWriter() 85 str.Append("Hello"); in TestStringWriter() 94 str.Append("%d", 12); in TestStringWriter() 100 str.Append(kLongString); in TestStringWriter()
|
D | test_frame_builder.cpp | 61 SuccessOrQuit(message->Append(kData1)); in TestFrameBuilder() 62 SuccessOrQuit(message->Append(kData2)); in TestFrameBuilder() 84 SuccessOrQuit(frameBuilder.Append(kData1)); in TestFrameBuilder() 134 SuccessOrQuit(frameBuilder.Append(kData1)); in TestFrameBuilder()
|
/openthread-3.4.0/src/core/radio/ |
D | trel_packet.cpp | 85 string.Append("broadcast ch:%d", GetChannel()); in ToString() 89 string.Append("unicast ch:%d", GetChannel()); in ToString() 93 string.Append("ack"); in ToString() 97 string.Append(" panid:%04x num:%lu src:%s", GetPanId(), ToUlong(GetPacketNumber()), in ToString() 102 string.Append(" dst:%s", GetDestination().ToString().AsCString()); in ToString() 107 string.Append(GetAckMode() == kNoAck ? " no-ack" : " ack-req"); in ToString()
|
/openthread-3.4.0/src/core/mac/ |
D | channel_mask.cpp | 103 string.Append("{"); in ToString() 122 string.Append("%s%d", addComma ? ", " : " ", rangeStart); in ToString() 127 string.Append("%s%d", rangeEnd == rangeStart + 1 ? ", " : "-", rangeEnd); in ToString() 131 string.Append(" }"); in ToString()
|
D | mac_types.cpp | 103 string.Append("None"); in ToString() 107 string.Append("0x%04x", GetShort()); in ToString() 139 string.Append("{"); in ToString() 143 string.Append("%s%s", addComma ? ", " : " ", RadioTypeToString(kRadioTypeIeee802154)); in ToString() 151 string.Append("%s%s", addComma ? ", " : " ", RadioTypeToString(kRadioTypeTrel)); in ToString() 158 string.Append(" }"); in ToString()
|
/openthread-3.4.0/src/core/meshcop/ |
D | energy_scan_client.cpp | 81 …error = Tlv::Append<MeshCoP::CommissionerSessionIdTlv>(*message, Get<MeshCoP::Commissioner>().GetS… in SendQuery() 87 SuccessOrExit(error = Tlv::Append<MeshCoP::CountTlv>(*message, aCount)); in SendQuery() 88 SuccessOrExit(error = Tlv::Append<MeshCoP::PeriodTlv>(*message, aPeriod)); in SendQuery() 89 SuccessOrExit(error = Tlv::Append<MeshCoP::ScanDurationTlv>(*message, aScanDuration)); in SendQuery()
|
D | announce_begin_client.cpp | 75 …error = Tlv::Append<MeshCoP::CommissionerSessionIdTlv>(*message, Get<MeshCoP::Commissioner>().GetS… in SendRequest() 81 SuccessOrExit(error = Tlv::Append<MeshCoP::CountTlv>(*message, aCount)); in SendRequest() 82 SuccessOrExit(error = Tlv::Append<MeshCoP::PeriodTlv>(*message, aPeriod)); in SendRequest()
|
D | joiner_router.cpp | 145 SuccessOrExit(error = Tlv::Append<JoinerUdpPortTlv>(*message, aMessageInfo.GetPeerPort())); in HandleUdpReceive() 146 SuccessOrExit(error = Tlv::Append<JoinerIidTlv>(*message, aMessageInfo.GetPeerAddr().GetIid())); in HandleUdpReceive() 147 …SuccessOrExit(error = Tlv::Append<JoinerRouterLocatorTlv>(*message, Get<Mle::MleRouter>().GetRloc1… in HandleUdpReceive() 151 SuccessOrExit(error = message->Append(tlv)); in HandleUdpReceive() 302 SuccessOrExit(error = Tlv::Append<NetworkKeyTlv>(*message, networkKey)); in PrepareJoinerEntrustMessage() 303 …SuccessOrExit(error = Tlv::Append<MeshLocalPrefixTlv>(*message, Get<Mle::MleRouter>().GetMeshLocal… in PrepareJoinerEntrustMessage() 304 …SuccessOrExit(error = Tlv::Append<ExtendedPanIdTlv>(*message, Get<ExtendedPanIdManager>().GetExtPa… in PrepareJoinerEntrustMessage() 356 …SuccessOrExit(error = Tlv::Append<NetworkKeySequenceTlv>(*message, Get<KeyManager>().GetCurrentKey… in PrepareJoinerEntrustMessage()
|
D | panid_query_client.cpp | 77 …error = Tlv::Append<MeshCoP::CommissionerSessionIdTlv>(*message, Get<MeshCoP::Commissioner>().GetS… in SendQuery() 83 SuccessOrExit(error = Tlv::Append<MeshCoP::PanIdTlv>(*message, aPanId)); in SendQuery()
|
D | commissioner.cpp | 690 SuccessOrExit(error = message->Append(tlv)); in SendMgmtCommissionerGetRequest() 738 SuccessOrExit(error = Tlv::Append<BorderAgentLocatorTlv>(*message, aDataset.GetLocator())); in SendMgmtCommissionerSetRequest() 743 … SuccessOrExit(error = Tlv::Append<CommissionerSessionIdTlv>(*message, aDataset.GetSessionId())); in SendMgmtCommissionerSetRequest() 750 …SuccessOrExit(error = Tlv::Append<SteeringDataTlv>(*message, steeringData.GetData(), steeringData.… in SendMgmtCommissionerSetRequest() 755 SuccessOrExit(error = Tlv::Append<JoinerUdpPortTlv>(*message, aDataset.GetJoinerUdpPort())); in SendMgmtCommissionerSetRequest() 895 …error = Tlv::Append<StateTlv>(*message, (mState == kStateActive) ? StateTlv::kAccept : StateTlv::k… in SendKeepAlive() 897 SuccessOrExit(error = Tlv::Append<CommissionerSessionIdTlv>(*message, aSessionId)); in SendKeepAlive() 1095 SuccessOrExit(error = Tlv::Append<StateTlv>(*message, aState)); in SendJoinFinalizeResponse() 1145 SuccessOrExit(error = Tlv::Append<JoinerUdpPortTlv>(*message, mJoinerPort)); in SendRelayTransmit() 1146 SuccessOrExit(error = Tlv::Append<JoinerIidTlv>(*message, mJoinerIid)); in SendRelayTransmit() [all …]
|
D | meshcop.cpp | 172 string.Append("0x%04x", static_cast<uint16_t>(mValue)); in ToString() 176 string.Append("0x%08lx", ToUlong(static_cast<uint32_t>(mValue))); in ToString() 180 string.Append("0x%lx-%08lx", ToUlong(static_cast<uint32_t>(mValue >> 32)), in ToString() 184 string.Append("/len:%d", mLength); in ToString()
|
D | joiner.cpp | 423 SuccessOrExit(error = Tlv::Append<StateTlv>(*mFinalizeMessage, StateTlv::kAccept)); in PrepareJoinerFinalizeMessage() 425 SuccessOrExit(error = Tlv::Append<VendorNameTlv>(*mFinalizeMessage, aVendorName)); in PrepareJoinerFinalizeMessage() 426 SuccessOrExit(error = Tlv::Append<VendorModelTlv>(*mFinalizeMessage, aVendorModel)); in PrepareJoinerFinalizeMessage() 427 SuccessOrExit(error = Tlv::Append<VendorSwVersionTlv>(*mFinalizeMessage, aVendorSwVersion)); in PrepareJoinerFinalizeMessage() 438 SuccessOrExit(error = Tlv::Append<VendorDataTlv>(*mFinalizeMessage, aVendorData)); in PrepareJoinerFinalizeMessage() 443 SuccessOrExit(error = Tlv::Append<ProvisioningUrlTlv>(*mFinalizeMessage, aProvisioningUrl)); in PrepareJoinerFinalizeMessage()
|
/openthread-3.4.0/src/core/thread/ |
D | network_diagnostic.cpp | 154 SuccessOrExit(error = aMessage.Append(tlv)); in AppendIp6AddressList() 162 SuccessOrExit(error = aMessage.Append(extTlv)); in AppendIp6AddressList() 167 SuccessOrExit(error = aMessage.Append(addr.GetAddress())); in AppendIp6AddressList() 190 SuccessOrExit(error = aMessage.Append(tlv)); in AppendChildTable() 198 SuccessOrExit(error = aMessage.Append(extTlv)); in AppendChildTable() 219 SuccessOrExit(error = aMessage.Append(entry)); in AppendChildTable() 278 error = Tlv::Append<ExtMacAddressTlv>(aMessage, Get<Mac::Mac>().GetExtAddress()); in AppendDiagTlv() 282 error = Tlv::Append<Address16Tlv>(aMessage, Get<Mle::MleRouter>().GetRloc16()); in AppendDiagTlv() 286 error = Tlv::Append<ModeTlv>(aMessage, Get<Mle::MleRouter>().GetDeviceMode().Get()); in AppendDiagTlv() 290 error = Tlv::Append<VersionTlv>(aMessage, kThreadVersion); in AppendDiagTlv() [all …]
|
D | mle.cpp | 2253 SuccessOrExit(error = Tlv::Append<ActiveTimestampTlv>(*message, activeTimestamp)); in SendAnnounce() 2261 SuccessOrExit(error = Tlv::Append<PanIdTlv>(*message, Get<Mac::Mac>().GetPanId())); in SendAnnounce() 2309 SuccessOrExit(error = message->Append(tlv)); in SendLinkMetricsManagementResponse() 2310 SuccessOrExit(error = message->Append(statusSubTlv)); in SendLinkMetricsManagementResponse() 2311 SuccessOrExit(error = message->Append(aStatus)); in SendLinkMetricsManagementResponse() 2333 SuccessOrExit(error = message->Append(tlv)); in SendLinkProbe() 2334 SuccessOrExit(error = message->Append(aSeriesId)); in SendLinkProbe() 2425 SuccessOrExit(error = aMessage.Append(tag)); in ProcessMessageSecurity() 4056 rlocString.Append(",0x%04x", aRloc); in Log() 4316 SuccessOrExit(error = message->Append(tlv)); in SendLinkMetricsManagementRequest() [all …]
|
/openthread-3.4.0/src/core/backbone_router/ |
D | bbr_manager.cpp | 296 SuccessOrExit(Tlv::Append<ThreadStatusTlv>(*message, aStatus)); in SendMulticastListenerRegistrationResponse() 304 SuccessOrExit(error = message->Append(addressesTlv)); in SendMulticastListenerRegistrationResponse() 308 SuccessOrExit(error = message->Append(aFailedAddresses[i])); in SendMulticastListenerRegistrationResponse() 336 SuccessOrExit(error = message->Append(addressesTlv)); in SendBackboneMulticastListenerRegistration() 339 SuccessOrExit(error = Tlv::Append<ThreadTimeoutTlv>(*message, aTimeout)); in SendBackboneMulticastListenerRegistration() 455 SuccessOrExit(Tlv::Append<ThreadStatusTlv>(*message, aStatus)); in SendDuaRegistrationResponse() 456 SuccessOrExit(Tlv::Append<ThreadTargetTlv>(*message, aTarget)); in SendDuaRegistrationResponse() 528 SuccessOrExit(error = Tlv::Append<ThreadTargetTlv>(*message, aDua)); in SendBackboneQuery() 532 SuccessOrExit(error = Tlv::Append<ThreadRloc16Tlv>(*message, aRloc16)); in SendBackboneQuery() 658 SuccessOrExit(error = Tlv::Append<ThreadTargetTlv>(*message, aDua)); in SendBackboneAnswer() [all …]
|
/openthread-3.4.0/src/core/net/ |
D | dhcp6_server.cpp | 367 return aMessage.Append(header); in AppendHeader() 372 return aMessage.Append(aClientId); in AppendClientIdentifier() 387 SuccessOrExit(error = aMessage.Append(option)); in AppendServerIdentifier() 418 SuccessOrExit(error = aMessage.Append(aIaNa)); in AppendIaNa() 430 return aMessage.Append(option); in AppendStatusCode() 474 SuccessOrExit(error = aMessage.Append(option)); in AddIaAddress() 485 return aMessage.Append(option); in AppendRapidCommit()
|
D | dhcp6_client.cpp | 302 return aMessage.Append(header); in AppendHeader() 311 return aMessage.Append(option); in AppendElapsedTime() 326 return aMessage.Append(option); in AppendClientIdentifier() 359 SuccessOrExit(error = aMessage.Append(option)); in AppendIaNa() 382 SuccessOrExit(error = aMessage.Append(option)); in AppendIaAddress() 395 return aMessage.Append(option); in AppendRapidCommit()
|
D | socket.cpp | 57 aWriter.Append("[%s]:%u", GetAddress().ToString().AsCString(), GetPort()); in ToString()
|
/openthread-3.4.0/src/posix/platform/ |
D | power.cpp | 71 string.Append("%u,%u,%d", mChannelStart, mChannelEnd, mTargetPower); in ToString() 121 …string.Append("%u,%u,%d,%s", mChannelStart, mChannelEnd, mActualPower, mRawPowerSetting.ToString()… in ToString()
|