/openthread-3.7.0/src/core/thread/ |
D | network_diagnostic.hpp | 189 Coap::Message *mFirstAnswer; 207 Error AllocateAnswer(Coap::Message *&aAnswer, AnswerInfo &aInfo); 208 Error CheckAnswerLength(Coap::Message *&aAnswer, AnswerInfo &aInfo); 209 bool IsLastAnswer(const Coap::Message &aAnswer) const; 210 void FreeAllRelatedAnswers(Coap::Message &aFirstAnswer); 212 void SendNextAnswer(Coap::Message &aAnswer, const Ip6::Address &aDestination); 214 Error AppendChildTableAsChildTlvs(Coap::Message *&aAnswer, AnswerInfo &aInfo); 215 Error AppendRouterNeighborTlvs(Coap::Message *&aAnswer, AnswerInfo &aInfo); 216 Error AppendChildTableIp6AddressList(Coap::Message *&aAnswer, AnswerInfo &aInfo); 217 Error AppendChildIp6AddressListTlv(Coap::Message &aAnswer, const Child &aChild); [all …]
|
D | tmf.hpp | 58 …template <> void Type::HandleTmf<kUri>(Coap::Message & aMessage, const Ip6::MessageInfo &aMessageI… 62 typedef Coap::Message Message; ///< A TMF message. 146 class Agent : public Coap::Coap 223 class SecureAgent : public Coap::CoapSecure
|
D | network_diagnostic.cpp | 412 void Server::HandleTmf<kUriDiagnosticGetQuery>(Coap::Message &aMessage, const Ip6::MessageInfo &aMe… in HandleTmf() 440 Coap::Message *answer = nullptr; in SendAnswer() 472 Error Server::AllocateAnswer(Coap::Message *&aAnswer, AnswerInfo &aInfo) in AllocateAnswer() 500 bool Server::IsLastAnswer(const Coap::Message &aAnswer) const in IsLastAnswer() 517 void Server::FreeAllRelatedAnswers(Coap::Message &aFirstAnswer) in FreeAllRelatedAnswers() 523 Coap::Message *answer = &aFirstAnswer; in FreeAllRelatedAnswers() 527 Coap::Message *next = IsLastAnswer(*answer) ? nullptr : answer->GetNextCoapMessage(); in FreeAllRelatedAnswers() 536 Coap::Message *answer; in PrepareAndSendAnswers() 593 Error Server::CheckAnswerLength(Coap::Message *&aAnswer, AnswerInfo &aInfo) in CheckAnswerLength() 615 void Server::SendNextAnswer(Coap::Message &aAnswer, const Ip6::Address &aDestination) in SendNextAnswer() [all …]
|
D | anycast_locator.cpp | 56 Coap::Message *message = nullptr; in Locate() 90 void AnycastLocator::HandleResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, … in HandleResponse() 118 void AnycastLocator::HandleTmf<kUriAnycastLocate>(Coap::Message &aMessage, const Ip6::MessageInfo &… in HandleTmf() 120 Coap::Message *message = nullptr; in HandleTmf()
|
/openthread-3.7.0/src/cli/ |
D | cli_coap.cpp | 47 Coap::Coap(otInstance *aInstance, OutputImplementer &aOutputImplementer) in Coap() function in ot::Cli::Coap 75 otError Coap::CancelResourceSubscription(void) in CancelResourceSubscription() 95 …SuccessOrExit(error = otCoapSendRequest(GetInstancePtr(), message, &messageInfo, &Coap::HandleResp… in CancelResourceSubscription() 111 void Coap::CancelSubscriber(void) in CancelSubscriber() 118 void Coap::PrintPayload(otMessage *aMessage) in PrintPayload() 156 template <> otError Coap::Process<Cmd("cancel")>(Arg aArgs[]) in Process() 181 template <> otError Coap::Process<Cmd("resource")>(Arg aArgs[]) in Process() 191 mResource.mHandler = &Coap::HandleRequest; in Process() 194 mResource.mReceiveHook = &Coap::BlockwiseReceiveHook; in Process() 195 mResource.mTransmitHook = &Coap::BlockwiseTransmitHook; in Process() [all …]
|
/openthread-3.7.0/src/core/meshcop/ |
D | border_agent.cpp | 61 const Coap::Message &aMessage, in Init() 76 Error BorderAgent::ForwardContext::ToHeader(Coap::Message &aMessage, uint8_t aCode) const in ToHeader() 78 if ((mType == Coap::kTypeNonConfirmable) || mSeparate) in ToHeader() 80 aMessage.Init(Coap::kTypeNonConfirmable, static_cast<Coap::Code>(aCode)); in ToHeader() 84 aMessage.Init(Coap::kTypeAck, static_cast<Coap::Code>(aCode)); in ToHeader() 98 Coap::Message::Code BorderAgent::CoapCodeFromError(Error aError) in CoapCodeFromError() 100 Coap::Message::Code code; in CoapCodeFromError() 105 code = Coap::kCodeChanged; in CoapCodeFromError() 109 code = Coap::kCodeBadRequest; in CoapCodeFromError() 113 code = Coap::kCodeInternalError; in CoapCodeFromError() [all …]
|
D | border_agent.hpp | 262 … Error Init(Instance &aInstance, const Coap::Message &aMessage, bool aPetition, bool aSeparate); 265 Error ToHeader(Coap::Message &aMessage, uint8_t aCode) const; 273 uint8_t mToken[Coap::Message::kMaxTokenLength]; // The CoAP Token of the original request. 281 Coap::Message::Code CoapCodeFromError(Error aError); 282 Error SendMessage(Coap::Message &aMessage); 284 … void SendErrorMessage(const Coap::Message &aRequest, bool aSeparate, Error aError); 289 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 305 …void HandleCoapResponse(const ForwardContext &aForwardContext, const Coap::Message *aResponse, Er… 306 …Error ForwardToLeader(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, Uri aUr… 307 Error ForwardToCommissioner(Coap::Message &aForwardMessage, const Message &aMessage);
|
D | dataset_manager.hpp | 290 void HandleGet(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) const; 297 void SendGetResponse(const Coap::Message &aRequest, 300 …void HandleMgmtSetResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error a… 314 …Error HandleSetOrReplace(MgmtCommand aCommand, const Coap::Message &aMessage, const Ip6::MessageIn… 315 …Error ProcessSetOrReplaceRequest(MgmtCommand aCommand, const Coap::Message &aMessage, RequestInfo … 316 void SendSetOrReplaceResponse(const Coap::Message &aRequest, 409 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 457 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
|
D | joiner.hpp | 209 …void HandleJoinerFinalizeResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, E… 211 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 230 …void SendJoinerEntrustResponse(const Coap::Message &aRequest, const Ip6::MessageInfo &aRequestInf… 233 void LogCertMessage(const char *aText, const Coap::Message &aMessage) const; 248 Coap::Message *mFinalizeMessage;
|
D | meshcop_leader.cpp | 66 template <> void Leader::HandleTmf<kUriLeaderPetition>(Coap::Message &aMessage, const Ip6::MessageI… in HandleTmf() 100 void Leader::SendPetitionResponse(const Coap::Message &aRequest, in SendPetitionResponse() 105 Coap::Message *message; in SendPetitionResponse() 131 template <> void Leader::HandleTmf<kUriLeaderKeepAlive>(Coap::Message &aMessage, const Ip6::Message… in HandleTmf() 177 void Leader::SendKeepAliveResponse(const Coap::Message &aRequest, in SendKeepAliveResponse() 182 Coap::Message *message; in SendKeepAliveResponse() 202 Coap::Message *message; in SendDatasetChanged()
|
D | commissioner.hpp | 422 void HandleMgmtCommissionerSetResponse(Coap::Message *aMessage, 429 void HandleMgmtCommissionerGetResponse(Coap::Message *aMessage, 436 …void HandleLeaderPetitionResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, E… 441 …void HandleLeaderKeepAliveResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, … 446 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 448 void HandleRelayReceive(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 452 void SendJoinFinalizeResponse(const Coap::Message &aRequest, StateTlv::State aState);
|
D | meshcop_leader.hpp | 124 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 126 void SendPetitionResponse(const Coap::Message &aRequest, 130 void SendKeepAliveResponse(const Coap::Message &aRequest,
|
D | joiner_router.hpp | 106 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 112 …void HandleJoinerEntrustResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Er… 120 Coap::Message *PrepareJoinerEntrustMessage(void);
|
D | commissioner.cpp | 627 Coap::Message *message; in SendMgmtCommissionerGetRequest() 662 void Commissioner::HandleMgmtCommissionerGetResponse(Coap::Message *aMessage, in HandleMgmtCommissionerGetResponse() 668 VerifyOrExit(aResult == kErrorNone && aMessage->GetCode() == Coap::kCodeChanged); in HandleMgmtCommissionerGetResponse() 680 Coap::Message *message; in SendMgmtCommissionerSetRequest() 733 void Commissioner::HandleMgmtCommissionerSetResponse(Coap::Message *aMessage, in HandleMgmtCommissionerSetResponse() 743 …VerifyOrExit(aMessage->GetCode() == Coap::kCodeChanged && Tlv::Find<StateTlv>(*aMessage, state) ==… in HandleMgmtCommissionerSetResponse() 756 Coap::Message *message = nullptr; in SendPetition() 786 void Commissioner::HandleLeaderPetitionResponse(Coap::Message *aMessage, in HandleLeaderPetitionResponse() 796 VerifyOrExit(aResult == kErrorNone && aMessage->GetCode() == Coap::kCodeChanged, in HandleLeaderPetitionResponse() 842 Coap::Message *message = nullptr; in SendKeepAlive() [all …]
|
D | joiner_router.cpp | 137 Coap::Message *message = nullptr; in HandleUdpReceive() 168 template <> void JoinerRouter::HandleTmf<kUriRelayTx>(Coap::Message &aMessage, const Ip6::MessageIn… in HandleTmf() 273 Coap::Message *message; in SendJoinerEntrust() 291 Coap::Message *JoinerRouter::PrepareJoinerEntrustMessage(void) in PrepareJoinerEntrustMessage() 299 Coap::Message *message = nullptr; in PrepareJoinerEntrustMessage() 333 void JoinerRouter::HandleJoinerEntrustResponse(Coap::Message *aMessage, in HandleJoinerEntrustResponse() 343 VerifyOrExit(aMessage->GetCode() == Coap::kCodeChanged); in HandleJoinerEntrustResponse()
|
D | dataset_manager_ftd.cpp | 69 const Coap::Message &aMessage, in ProcessSetOrReplaceRequest() 210 const Coap::Message &aMessage, in HandleSetOrReplace() 254 void DatasetManager::SendSetOrReplaceResponse(const Coap::Message &aRequest, in SendSetOrReplaceResponse() 259 Coap::Message *message; in SendSetOrReplaceResponse() 382 void ActiveDatasetManager::HandleTmf<kUriActiveSet>(Coap::Message &aMessage, const Ip6::MessageInfo… in HandleTmf() 392 void ActiveDatasetManager::HandleTmf<kUriActiveReplace>(Coap::Message &aMessage, const Ip6::Message… in HandleTmf() 407 void PendingDatasetManager::HandleTmf<kUriPendingSet>(Coap::Message &aMessage, const Ip6::MessageIn… in HandleTmf()
|
/openthread-3.7.0/src/core/backbone_router/ |
D | backbone_tmf.hpp | 53 class BackboneTmfAgent : public Coap::Coap 101 ot::Coap::Message &aMessage, 103 …bool HandleResource(const char *aUriPath, ot::Coap::Message &aMessage, const Ip6::MessageIn… 105 …static Error Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void …
|
D | backbone_tmf.cpp | 47 : Coap::Coap(aInstance) in BackboneTmfAgent() 57 SuccessOrExit(error = Coap::Start(kBackboneUdpPort, Ip6::kNetifBackbone)); in Start() 67 ot::Coap::Message &aMessage, in HandleResource() 74 ot::Coap::Message &aMessage, in HandleResource() 105 Error BackboneTmfAgent::Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageI… in Filter()
|
D | bbr_manager.cpp | 136 template <> void Manager::HandleTmf<kUriMlr>(Coap::Message &aMessage, const Ip6::MessageInfo &aMess… in HandleTmf() 145 void Manager::HandleMulticastListenerRegistration(const Coap::Message &aMessage, const Ip6::Message… in HandleMulticastListenerRegistration() 284 void Manager::SendMulticastListenerRegistrationResponse(const Coap::Message &aMessage, in SendMulticastListenerRegistrationResponse() 291 Coap::Message *message; in SendMulticastListenerRegistrationResponse() 324 Coap::Message *message = nullptr; in SendBackboneMulticastListenerRegistration() 358 void Manager::HandleTmf<kUriDuaRegistrationRequest>(Coap::Message &aMessage, const Ip6::MessageInfo… in HandleTmf() 367 void Manager::HandleDuaRegistration(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessage… in HandleDuaRegistration() 377 Coap::Code duaRespCoapCode = Coap::kCodeEmpty; in HandleDuaRegistration() 390 if (mDuaResponseStatus >= Coap::kCodeResponseMin) in HandleDuaRegistration() 392 duaRespCoapCode = static_cast<Coap::Code>(mDuaResponseStatus); in HandleDuaRegistration() [all …]
|
D | bbr_manager.hpp | 178 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 181 …void HandleMulticastListenerRegistration(const Coap::Message &aMessage, const Ip6::MessageInfo &aM… 183 void SendMulticastListenerRegistrationResponse(const Coap::Message &aMessage, 194 … void HandleDuaRegistration(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 212 void SendDuaRegistrationResponse(const Coap::Message &aMessage,
|
/openthread-3.7.0/src/core/api/ |
D | coap_api.cpp | 58 Coap::Message &response = AsCoapMessage(aResponse); in otCoapMessageInitResponse() 59 const Coap::Message &request = AsCoapMessage(aRequest); in otCoapMessageInitResponse() 104 return static_cast<uint16_t>(1 << (static_cast<uint8_t>(aSize) + Coap::Message::kBlockSzxBase)); in otCoapBlockSizeFromExponent() 109 … return AsCoapMessage(aMessage).AppendBlockOption(Coap::Message::kBlockType2, aNum, aMore, aSize); in otCoapMessageAppendBlock2Option() 114 … return AsCoapMessage(aMessage).AppendBlockOption(Coap::Message::kBlockType1, aNum, aMore, aSize); in otCoapMessageAppendBlock1Option() 161 Coap::Option::Iterator &iterator = AsCoreType(aIterator); in otCoapOptionIteratorGetFirstOptionMatching() 169 Coap::Option::Iterator &iterator = AsCoreType(aIterator); in otCoapOptionIteratorGetFirstOption() 177 Coap::Option::Iterator &iterator = AsCoreType(aIterator); in otCoapOptionIteratorGetNextOptionMatching() 185 Coap::Option::Iterator &iterator = AsCoreType(aIterator); in otCoapOptionIteratorGetNextOption() 212 const Coap::TxParameters &txParameters = Coap::TxParameters::From(aTxParameters); in otCoapSendRequestBlockWiseWithParameters() [all …]
|
/openthread-3.7.0/src/core/coap/ |
D | coap_message.hpp | 60 namespace Coap { namespace 175 typedef ot::Coap::Type Type; ///< CoAP Type. 176 typedef ot::Coap::Code Code; ///< CoAP Code. 1258 DefineCoreType(otCoapOption, Coap::Option); 1259 DefineCoreType(otCoapOptionIterator, Coap::Option::Iterator); 1260 DefineMapEnum(otCoapType, Coap::Type); 1261 DefineMapEnum(otCoapCode, Coap::Code); 1271 inline Coap::Message &AsCoapMessage(otMessage *aMessage) { return *static_cast<Coap::Message *>(aMe… in AsCoapMessage() 1281 inline Coap::Message *AsCoapMessagePtr(otMessage *aMessage) { return static_cast<Coap::Message *>(a… in AsCoapMessagePtr() 1291 inline const Coap::Message &AsCoapMessage(const otMessage *aMessage) in AsCoapMessage() [all …]
|
/openthread-3.7.0/src/core/utils/ |
D | mesh_diag.hpp | 298 bool HandleDiagnosticGetAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 299 …Error ProcessMessage(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, uint16_t aSend… 300 bool ProcessChildTableAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 301 …bool ProcessChildrenIp6AddrsAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 302 …bool ProcessRouterNeighborTableAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageIn… 304 …void HandleDiagGetResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aR…
|
D | otns.cpp | 160 void Otns::EmitCoapSend(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in EmitCoapSend() 162 char uriPath[Coap::Message::kMaxReceivedUriPath + 1]; in EmitCoapSend() 174 void Otns::EmitCoapReceive(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in EmitCoapReceive() 176 char uriPath[Coap::Message::kMaxReceivedUriPath + 1]; in EmitCoapReceive() 187 void Otns::EmitCoapSendFailure(Error aError, Coap::Message &aMessage, const Ip6::MessageInfo &aMess… in EmitCoapSendFailure() 189 char uriPath[Coap::Message::kMaxReceivedUriPath + 1]; in EmitCoapSendFailure()
|
D | otns.hpp | 154 static void EmitCoapSend(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo); 164 …static void EmitCoapSendFailure(Error aError, Coap::Message &aMessage, const Ip6::MessageInfo &aMe… 173 … static void EmitCoapReceive(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
|