/openthread-3.7.0/src/core/api/ |
D | message_api.cpp | 43 void otMessageFree(otMessage *aMessage) { AsCoreType(aMessage).Free(); } in otMessageFree() argument 45 uint16_t otMessageGetLength(const otMessage *aMessage) { return AsCoreType(aMessage).GetLength(); } in otMessageGetLength() argument 47 otError otMessageSetLength(otMessage *aMessage, uint16_t aLength) { return AsCoreType(aMessage).Set… in otMessageSetLength() argument 49 uint16_t otMessageGetOffset(const otMessage *aMessage) { return AsCoreType(aMessage).GetOffset(); } in otMessageGetOffset() argument 51 void otMessageSetOffset(otMessage *aMessage, uint16_t aOffset) { AsCoreType(aMessage).SetOffset(aOf… in otMessageSetOffset() argument 53 bool otMessageIsLinkSecurityEnabled(const otMessage *aMessage) { return AsCoreType(aMessage).IsLink… in otMessageIsLinkSecurityEnabled() argument 55 bool otMessageIsLoopbackToHostAllowed(const otMessage *aMessage) in otMessageIsLoopbackToHostAllowed() argument 57 return AsCoreType(aMessage).IsLoopbackToHostAllowed(); in otMessageIsLoopbackToHostAllowed() 60 void otMessageSetLoopbackToHostAllowed(otMessage *aMessage, bool aAllowLoopbackToHost) in otMessageSetLoopbackToHostAllowed() argument 62 return AsCoreType(aMessage).SetLoopbackToHostAllowed(aAllowLoopbackToHost); in otMessageSetLoopbackToHostAllowed() [all …]
|
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() 67 otError otCoapMessageSetToken(otMessage *aMessage, const uint8_t *aToken, uint8_t aTokenLength) in otCoapMessageSetToken() argument 69 return AsCoapMessage(aMessage).SetToken(aToken, aTokenLength); in otCoapMessageSetToken() 72 void otCoapMessageGenerateToken(otMessage *aMessage, uint8_t aTokenLength) in otCoapMessageGenerateToken() argument 74 IgnoreError(AsCoapMessage(aMessage).GenerateRandomToken(aTokenLength)); in otCoapMessageGenerateToken() 77 otError otCoapMessageAppendContentFormatOption(otMessage *aMessage, otCoapOptionContentFormat aCont… in otCoapMessageAppendContentFormatOption() argument 79 return AsCoapMessage(aMessage).AppendContentFormatOption(aContentFormat); in otCoapMessageAppendContentFormatOption() 82 otError otCoapMessageAppendOption(otMessage *aMessage, uint16_t aNumber, uint16_t aLength, const vo… in otCoapMessageAppendOption() argument 84 return AsCoapMessage(aMessage).AppendOption(aNumber, aLength, aValue); in otCoapMessageAppendOption() [all …]
|
/openthread-3.7.0/src/core/coap/ |
D | coap.cpp | 149 Message *CoapBase::InitMessage(Message *aMessage, Type aType, Uri aUri) in InitMessage() argument 153 VerifyOrExit(aMessage != nullptr); in InitMessage() 155 SuccessOrExit(error = aMessage->Init(aType, kCodePost, aUri)); in InitMessage() 156 SuccessOrExit(error = aMessage->SetPayloadMarker()); in InitMessage() 159 FreeAndNullMessageOnError(aMessage, error); in InitMessage() 160 return aMessage; in InitMessage() 163 Message *CoapBase::InitResponse(Message *aMessage, const Message &aResponse) in InitResponse() argument 167 VerifyOrExit(aMessage != nullptr); in InitResponse() 169 SuccessOrExit(error = aMessage->SetDefaultResponseHeader(aResponse)); in InitResponse() 170 SuccessOrExit(error = aMessage->SetPayloadMarker()); in InitResponse() [all …]
|
D | coap.hpp | 178 void HandleRequest(Message &aMessage, const Ip6::MessageInfo &aMessageInfo) const in HandleRequest() argument 180 mHandler(mContext, &aMessage, &aMessageInfo); in HandleRequest() 272 void HandleRequest(Message &aMessage, const Ip6::MessageInfo &aMessageInfo) const in HandleRequest() argument 274 mHandler(mContext, &aMessage, &aMessageInfo); in HandleRequest() 307 …void EnqueueResponse(Message &aMessage, const Ip6::MessageInfo &aMessageInfo, const TxParameters &… 342 Error AppendTo(Message &aMessage) const { return aMessage.Append(*this); } in AppendTo() 343 void ReadFrom(const Message &aMessage); 350 void DequeueResponse(Message &aMessage); 385 …typedef Error (*Interceptor)(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *… 579 Error SendMessage(Message &aMessage, [all …]
|
/openthread-3.7.0/src/core/common/ |
D | tlvs.cpp | 57 Error Tlv::AppendTo(Message &aMessage) const { return aMessage.AppendBytes(this, static_cast<uint16… in AppendTo() 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() 78 aMessage.ReadBytes(info.mOffset, &aTlv, aMaxSize); 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() 98 Error Tlv::FindTlvValueStartEndOffsets(const Message &aMessage, in FindTlvValueStartEndOffsets() argument 106 SuccessOrExit(error = info.FindIn(aMessage, aType)); in FindTlvValueStartEndOffsets() [all …]
|
D | tlvs.hpp | 174 Error AppendTo(Message &aMessage) const; 261 …static Error ReadTlvValue(const Message &aMessage, uint16_t aOffset, void *aValue, uint8_t aMinLen… 277 …static Error Read(const Message &aMessage, uint16_t aOffset, typename SimpleTlvType::ValueType &aV… in Read() argument 279 return ReadTlvValue(aMessage, aOffset, &aValue, sizeof(aValue)); in Read() 296 …static Error Read(const Message &aMessage, uint16_t aOffset, typename UintTlvType::UintValueType &… in Read() argument 298 return ReadUintTlv(aMessage, aOffset, aValue); in Read() 315 …static Error Read(const Message &aMessage, uint16_t aOffset, typename StringTlvType::StringType &a… in Read() argument 317 return ReadStringTlv(aMessage, aOffset, StringTlvType::kMaxStringLength, aValue); in Read() 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_… [all …]
|
D | message.cpp | 106 void MessagePool::Free(Message *aMessage) in Free() argument 108 OT_ASSERT(aMessage->Next() == nullptr && aMessage->Prev() == nullptr); in Free() 110 FreeBuffers(static_cast<Buffer *>(aMessage)); in Free() 415 Error Message::AppendBytesFromMessage(const Message &aMessage, uint16_t aOffset, uint16_t aLength) in AppendBytesFromMessage() argument 421 VerifyOrExit(aMessage.GetLength() >= aOffset + aLength, error = kErrorParse); in AppendBytesFromMessage() 424 aMessage.GetFirstChunk(aOffset, aLength, chunk); in AppendBytesFromMessage() 430 aMessage.GetNextChunk(aLength, chunk); in AppendBytesFromMessage() 718 const Message &aMessage, in WriteBytesFromMessage() argument 722 if ((&aMessage != this) || (aReadOffset >= aWriteOffset)) in WriteBytesFromMessage() 726 aMessage.GetFirstChunk(aReadOffset, aLength, chunk); in WriteBytesFromMessage() [all …]
|
/openthread-3.7.0/include/openthread/ |
D | message.h | 128 void otMessageFree(otMessage *aMessage); 147 uint16_t otMessageGetLength(const otMessage *aMessage); 167 otError otMessageSetLength(otMessage *aMessage, uint16_t aLength); 185 uint16_t otMessageGetOffset(const otMessage *aMessage); 202 void otMessageSetOffset(otMessage *aMessage, uint16_t aOffset); 213 bool otMessageIsLinkSecurityEnabled(const otMessage *aMessage); 224 bool otMessageIsLoopbackToHostAllowed(const otMessage *aMessage); 233 void otMessageSetLoopbackToHostAllowed(otMessage *aMessage, bool aAllowLoopbackToHost); 246 bool otMessageIsMulticastLoopEnabled(otMessage *aMessage); 255 void otMessageSetMulticastLoopEnabled(otMessage *aMessage, bool aEnabled); [all …]
|
D | coap.h | 345 otMessage *aMessage, 357 typedef void (*otCoapRequestHandler)(void *aContext, otMessage *aMessage, const otMessageInfo *aMes… 493 void otCoapMessageInit(otMessage *aMessage, otCoapType aType, otCoapCode aCode); 522 otError otCoapMessageSetToken(otMessage *aMessage, const uint8_t *aToken, uint8_t aTokenLength); 531 void otCoapMessageGenerateToken(otMessage *aMessage, uint8_t aTokenLength); 552 otError otCoapMessageAppendContentFormatOption(otMessage *aMessage, otCoapOptionContentFormat aCont… 567 otError otCoapMessageAppendOption(otMessage *aMessage, uint16_t aNumber, uint16_t aLength, const vo… 583 otError otCoapMessageAppendUintOption(otMessage *aMessage, uint16_t aNumber, uint32_t aValue); 596 otError otCoapMessageAppendObserveOption(otMessage *aMessage, uint32_t aObserve); 609 otError otCoapMessageAppendUriPathOptions(otMessage *aMessage, const char *aUriPath); [all …]
|
/openthread-3.7.0/src/core/net/ |
D | checksum.cpp | 83 void Checksum::WriteToMessage(uint16_t aOffset, Message &aMessage) const in WriteToMessage() 94 aMessage.Write(aOffset, checksum); in WriteToMessage() 100 const Message &aMessage) in Calculate() argument 103 uint16_t length = aMessage.GetLength() - aMessage.GetOffset(); in Calculate() 114 aMessage.GetFirstChunk(aMessage.GetOffset(), length, chunk); in Calculate() 119 aMessage.GetNextChunk(length, chunk); in Calculate() 126 const Message &aMessage) in Calculate() argument 129 uint16_t length = aMessage.GetLength() - aMessage.GetOffset(); in Calculate() 143 aMessage.GetFirstChunk(aMessage.GetOffset(), length, chunk); in Calculate() 148 aMessage.GetNextChunk(length, chunk); in Calculate() [all …]
|
D | dhcp6_server.cpp | 179 void Server::HandleUdpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInf… in HandleUdpReceive() argument 181 … static_cast<Server *>(aContext)->HandleUdpReceive(AsCoreType(aMessage), AsCoreType(aMessageInfo)); in HandleUdpReceive() 184 void Server::HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleUdpReceive() argument 188 SuccessOrExit(aMessage.Read(aMessage.GetOffset(), header)); in HandleUdpReceive() 189 aMessage.MoveOffset(sizeof(header)); in HandleUdpReceive() 194 ProcessSolicit(aMessage, aMessageInfo.GetPeerAddr(), header.GetTransactionId()); in HandleUdpReceive() 200 void Server::ProcessSolicit(Message &aMessage, const Ip6::Address &aDst, const TransactionId &aTran… in ProcessSolicit() argument 205 uint16_t offset = aMessage.GetOffset(); in ProcessSolicit() 206 uint16_t length = aMessage.GetLength() - aMessage.GetOffset(); in ProcessSolicit() 209 … VerifyOrExit((optionOffset = FindOption(aMessage, offset, length, kOptionClientIdentifier)) > 0); in ProcessSolicit() [all …]
|
D | dhcp6_client.cpp | 295 Error Client::AppendHeader(Message &aMessage) in AppendHeader() argument 302 return aMessage.Append(header); in AppendHeader() 305 Error Client::AppendElapsedTime(Message &aMessage) in AppendElapsedTime() argument 311 return aMessage.Append(option); in AppendElapsedTime() 314 Error Client::AppendClientIdentifier(Message &aMessage) in AppendClientIdentifier() argument 326 return aMessage.Append(option); in AppendClientIdentifier() 329 Error Client::AppendIaNa(Message &aMessage, uint16_t aRloc16) in AppendIaNa() argument 359 SuccessOrExit(error = aMessage.Append(option)); in AppendIaNa() 365 Error Client::AppendIaAddress(Message &aMessage, uint16_t aRloc16) in AppendIaAddress() argument 382 SuccessOrExit(error = aMessage.Append(option)); in AppendIaAddress() [all …]
|
D | dhcp6_client.hpp | 122 Error AppendHeader(Message &aMessage); 123 Error AppendClientIdentifier(Message &aMessage); 124 Error AppendIaNa(Message &aMessage, uint16_t aRloc16); 125 Error AppendIaAddress(Message &aMessage, uint16_t aRloc16); 126 Error AppendElapsedTime(Message &aMessage); 127 Error AppendRapidCommit(Message &aMessage); 129 …static void HandleUdpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInf… 130 void HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 132 void ProcessReply(Message &aMessage); 133 uint16_t FindOption(Message &aMessage, uint16_t aOffset, uint16_t aLength, Code aCode); [all …]
|
D | dhcp6_server.hpp | 185 Error AppendHeader(Message &aMessage, const TransactionId &aTransactionId); 186 Error AppendClientIdentifier(Message &aMessage, ClientIdentifier &aClientId); 187 Error AppendServerIdentifier(Message &aMessage); 188 Error AppendIaNa(Message &aMessage, IaNa &aIaNa); 189 Error AppendStatusCode(Message &aMessage, Status aStatusCode); 190 Error AppendIaAddress(Message &aMessage, ClientIdentifier &aClientId); 191 Error AppendRapidCommit(Message &aMessage); 192 Error AppendVendorSpecificInformation(Message &aMessage); 194 Error AddIaAddress(Message &aMessage, const Ip6::Address &aPrefix, ClientIdentifier &aClientId); 196 …static void HandleUdpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInf… [all …]
|
D | dns_types.cpp | 167 Error Name::AppendTo(Message &aMessage) const in AppendTo() 173 error = AppendTerminator(aMessage); in AppendTo() 177 error = AppendName(GetAsCString(), aMessage); in AppendTo() 193 SuccessOrExit(error = iterator.AppendLabel(aMessage)); in AppendTo() 198 error = AppendTerminator(aMessage); in AppendTo() 212 Error Name::AppendLabel(const char *aLabel, Message &aMessage) in AppendLabel() argument 214 return AppendLabel(aLabel, static_cast<uint8_t>(StringLength(aLabel, kMaxLabelSize)), aMessage); in AppendLabel() 217 Error Name::AppendLabel(const char *aLabel, uint8_t aLength, Message &aMessage) in AppendLabel() argument 223 SuccessOrExit(error = aMessage.Append(aLength)); in AppendLabel() 224 error = aMessage.AppendBytes(aLabel, aLength); in AppendLabel() [all …]
|
D | srp_client.cpp | 888 Error Client::PrepareUpdateMessage(Message &aMessage) in PrepareUpdateMessage() argument 925 SuccessOrExit(error = aMessage.Append(header)); in PrepareUpdateMessage() 929 info.mDomainNameOffset = aMessage.GetLength(); in PrepareUpdateMessage() 930 SuccessOrExit(error = Dns::Name::AppendName(mDomainName, aMessage)); in PrepareUpdateMessage() 931 SuccessOrExit(error = aMessage.Append(Dns::Zone())); in PrepareUpdateMessage() 935 SuccessOrExit(error = AppendServiceInstructions(aMessage, info)); in PrepareUpdateMessage() 936 SuccessOrExit(error = AppendHostDescriptionInstruction(aMessage, info)); in PrepareUpdateMessage() 939 aMessage.Write(kHeaderOffset, header); in PrepareUpdateMessage() 943 SuccessOrExit(error = AppendUpdateLeaseOptRecord(aMessage)); in PrepareUpdateMessage() 944 SuccessOrExit(error = AppendSignature(aMessage, info)); in PrepareUpdateMessage() [all …]
|
D | ip6.cpp | 180 Error Ip6::AddMplOption(Message &aMessage, Header &aHeader) in AddMplOption() argument 194 SuccessOrExit(error = aMessage.PrependBytes(&padOption, padOption.GetSize())); in AddMplOption() 197 SuccessOrExit(error = aMessage.PrependBytes(&mplOption, mplOption.GetSize())); in AddMplOption() 198 SuccessOrExit(error = aMessage.Prepend(hbhHeader)); in AddMplOption() 206 Error Ip6::PrepareMulticastToLargerThanRealmLocal(Message &aMessage, const Header &aHeader) in PrepareMulticastToLargerThanRealmLocal() argument 216 Message *messageCopy = aMessage.Clone(); in PrepareMulticastToLargerThanRealmLocal() 241 SuccessOrExit(error = AddMplOption(aMessage, tunnelHeader)); in PrepareMulticastToLargerThanRealmLocal() 242 SuccessOrExit(error = aMessage.Prepend(tunnelHeader)); in PrepareMulticastToLargerThanRealmLocal() 248 Error Ip6::InsertMplOption(Message &aMessage, Header &aHeader) in InsertMplOption() argument 257 aMessage.RemoveHeader(sizeof(aHeader)); in InsertMplOption() [all …]
|
/openthread-3.7.0/src/core/thread/ |
D | mesh_forwarder.cpp | 205 void MeshForwarder::EvictMessage(Message &aMessage) in EvictMessage() argument 207 PriorityQueue *queue = aMessage.GetPriorityQueue(); in EvictMessage() 216 IgnoreError(mIndirectSender.RemoveMessageFromSleepyChild(aMessage, child)); in EvictMessage() 220 FinalizeMessageDirectTx(aMessage, kErrorNoBufs); in EvictMessage() 222 if (mSendMessage == &aMessage) in EvictMessage() 228 LogMessage(kMessageEvict, aMessage, kErrorNoBufs); in EvictMessage() 229 queue->DequeueAndFree(aMessage); in EvictMessage() 252 Error MeshForwarder::UpdateEcnOrDrop(Message &aMessage, bool aPreparingToSend) in UpdateEcnOrDrop() argument 266 uint32_t timeInQueue = TimerMilli::GetNow() - aMessage.GetTimestamp(); in UpdateEcnOrDrop() 270 VerifyOrExit(aMessage.IsDirectTransmission() && (aMessage.GetOffset() == 0)); in UpdateEcnOrDrop() [all …]
|
D | network_diagnostic.cpp | 128 Error Server::AppendIp6AddressList(Message &aMessage) in AppendIp6AddressList() argument 145 SuccessOrExit(error = aMessage.Append(tlv)); in AppendIp6AddressList() 153 SuccessOrExit(error = aMessage.Append(extTlv)); in AppendIp6AddressList() 158 SuccessOrExit(error = aMessage.Append(addr.GetAddress())); in AppendIp6AddressList() 166 Error Server::AppendChildTable(Message &aMessage) in AppendChildTable() argument 181 SuccessOrExit(error = aMessage.Append(tlv)); in AppendChildTable() 189 SuccessOrExit(error = aMessage.Append(extTlv)); in AppendChildTable() 210 SuccessOrExit(error = aMessage.Append(entry)); in AppendChildTable() 218 Error Server::AppendMacCounters(Message &aMessage) in AppendMacCounters() argument 237 return tlv.AppendTo(aMessage); in AppendMacCounters() [all …]
|
D | lowpan.cpp | 212 Error Lowpan::Compress(Message &aMessage, const Mac::Addresses &aMacAddrs, FrameBuilder &aFrameBuil… in Compress() argument 221 error = Compress(aMessage, aMacAddrs, aFrameBuilder, headerDepth); in Compress() 236 Error Lowpan::Compress(Message &aMessage, in Compress() argument 242 uint16_t startOffset = aMessage.GetOffset(); in Compress() 254 SuccessOrExit(error = aMessage.Read(aMessage.GetOffset(), ip6Header)); in Compress() 387 aMessage.MoveOffset(sizeof(ip6Header)); in Compress() 396 SuccessOrExit(error = CompressExtensionHeader(aMessage, aFrameBuilder, nextHeader)); in Compress() 400 error = CompressUdp(aMessage, aFrameBuilder); in Compress() 407 error = Compress(aMessage, aMacAddrs, aFrameBuilder); in Compress() 427 aMessage.SetOffset(startOffset); in Compress() [all …]
|
D | mesh_forwarder.hpp | 490 void UpdateFor(const Message &aMessage); 502 void SendIcmpErrorIfDstUnreach(const Message &aMessage, const Mac::Addresses &aMacAddrs); 508 Message *&aMessage); 522 const Message *aMessage); 524 Message &aMessage, 530 …uint16_t PrepareDataFrameWithNoMeshHeader(Mac::TxFrame &aFrame, Message &aMessage, const Mac::Addr… 534 Error UpdateEcnOrDrop(Message &aMessage, bool aPreparingToSend); 539 void ApplyDirectTxQueueLimit(Message &aMessage); 541 void SendMesh(Message &aMessage, Mac::TxFrame &aFrame); 543 Error UpdateIp6Route(Message &aMessage); [all …]
|
/openthread-3.7.0/src/core/meshcop/ |
D | border_agent.cpp | 61 const Coap::Message &aMessage, in Init() argument 66 mMessageId = aMessage.GetMessageId(); in Init() 69 mType = aMessage.GetType(); in Init() 70 mTokenLength = aMessage.GetTokenLength(); in Init() 71 memcpy(mToken, aMessage.GetToken(), mTokenLength); in Init() 76 Error BorderAgent::ForwardContext::ToHeader(Coap::Message &aMessage, uint8_t aCode) const in ToHeader() argument 80 aMessage.Init(Coap::kTypeNonConfirmable, static_cast<Coap::Code>(aCode)); in ToHeader() 84 aMessage.Init(Coap::kTypeAck, static_cast<Coap::Code>(aCode)); in ToHeader() 89 aMessage.SetMessageId(mMessageId); in ToHeader() 92 return aMessage.SetToken(mToken, mTokenLength); in ToHeader() [all …]
|
/openthread-3.7.0/src/core/utils/ |
D | mesh_diag.cpp | 117 otMessage *aMessage, in HandleDiagGetResponse() argument 121 …static_cast<MeshDiag *>(aContext)->HandleDiagGetResponse(AsCoapMessagePtr(aMessage), AsCoreTypePtr… in HandleDiagGetResponse() 125 void MeshDiag::HandleDiagGetResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo,… in HandleDiagGetResponse() argument 135 VerifyOrExit(aMessage != nullptr); in HandleDiagGetResponse() 138 SuccessOrExit(routerInfo.ParseFrom(*aMessage)); in HandleDiagGetResponse() 140 if (ip6AddrIterator.InitFrom(*aMessage) == kErrorNone) in HandleDiagGetResponse() 145 if (childIterator.InitFrom(*aMessage, routerInfo.mRloc16) == kErrorNone) in HandleDiagGetResponse() 242 bool MeshDiag::HandleDiagnosticGetAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageI… in HandleDiagnosticGetAnswer() argument 249 didPorcess = ProcessChildTableAnswer(aMessage, aMessageInfo); in HandleDiagnosticGetAnswer() 253 didPorcess = ProcessChildrenIp6AddrsAnswer(aMessage, aMessageInfo); in HandleDiagnosticGetAnswer() [all …]
|
D | otns.cpp | 160 void Otns::EmitCoapSend(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in EmitCoapSend() argument 165 SuccessOrExit(error = aMessage.ReadUriPathOptions(uriPath)); in EmitCoapSend() 167 …EmitStatus("coap=send,%d,%d,%d,%s,%s,%d", aMessage.GetMessageId(), aMessage.GetType(), aMessage.Ge… in EmitCoapSend() 174 void Otns::EmitCoapReceive(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in EmitCoapReceive() argument 179 SuccessOrExit(error = aMessage.ReadUriPathOptions(uriPath)); in EmitCoapReceive() 181 …EmitStatus("coap=recv,%d,%d,%d,%s,%s,%d", aMessage.GetMessageId(), aMessage.GetType(), aMessage.Ge… in EmitCoapReceive() 187 void Otns::EmitCoapSendFailure(Error aError, Coap::Message &aMessage, const Ip6::MessageInfo &aMess… in EmitCoapSendFailure() argument 192 SuccessOrExit(error = aMessage.ReadUriPathOptions(uriPath)); in EmitCoapSendFailure() 194 …mitStatus("coap=send_error,%d,%d,%d,%s,%s,%d,%s", aMessage.GetMessageId(), aMessage.GetType(), aMe… in EmitCoapSendFailure()
|
/openthread-3.7.0/examples/platforms/simulation/ |
D | infra_if.c | 82 static uint16_t getMessageSize(const Message *aMessage) in getMessageSize() argument 84 return (uint16_t)(&aMessage->mData[aMessage->mDataLength] - (const uint8_t *)aMessage); in getMessageSize() 143 static void processMessage(otInstance *aInstance, Message *aMessage, uint16_t aLength) in processMessage() argument 148 otEXPECT(getMessageSize(aMessage) == aLength); in processMessage() 149 otEXPECT(aMessage->mDataLength > 0); in processMessage() 152 …otEXPECT(addressesMatch(&aMessage->mDst, &sIp6Address) || addressesMatch(&aMessage->mDst, &sLinkLo… in processMessage() 153 addressesMatch(&aMessage->mDst, &sLinkLocalAllRouters)); in processMessage() 155 if (aMessage->mData[0] == OT_ICMP6_TYPE_NEIGHBOR_SOLICIT) in processMessage() 158 sendNeighborAdvert(aMessage); in processMessage() 162 LOG("Received msg, len:%u", aMessage->mDataLength); in processMessage() [all …]
|