Home
last modified time | relevance | path

Searched refs:aMessageInfo (Results 1 – 25 of 104) sorted by relevance

12345

/openthread-3.5.0/src/core/coap/
Dcoap.hpp178 void HandleRequest(Message &aMessage, const Ip6::MessageInfo &aMessageInfo) const in HandleRequest()
180 mHandler(mContext, &aMessage, &aMessageInfo); in HandleRequest()
272 void HandleRequest(Message &aMessage, const Ip6::MessageInfo &aMessageInfo) const in HandleRequest()
274 mHandler(mContext, &aMessage, &aMessageInfo); in HandleRequest()
307 …void EnqueueResponse(Message &aMessage, const Ip6::MessageInfo &aMessageInfo, const TxParameters &…
327 …Error GetMatchedResponseCopy(const Message &aRequest, const Ip6::MessageInfo &aMessageInfo, Messag…
349 … Message *FindMatchedResponse(const Message &aRequest, const Ip6::MessageInfo &aMessageInfo) const;
385 …typedef Error (*Interceptor)(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *…
580 const Ip6::MessageInfo &aMessageInfo,
606 const Ip6::MessageInfo &aMessageInfo,
[all …]
Dcoap.cpp177 Error CoapBase::Send(ot::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in Send() argument
182 Get<Utils::Otns>().EmitCoapSend(AsCoapMessage(&aMessage), aMessageInfo); in Send()
185 error = mSender(*this, aMessage, aMessageInfo); in Send()
190 Get<Utils::Otns>().EmitCoapSendFailure(error, AsCoapMessage(&aMessage), aMessageInfo); in Send()
198 const Ip6::MessageInfo &aMessageInfo, in SendMessage() argument
206 const Ip6::MessageInfo &aMessageInfo, in SendMessage()
240 mResponsesQueue.EnqueueResponse(aMessage, aMessageInfo, aTxParameters); in SendMessage()
311 Message *origRequest = FindRelatedRequest(aMessage, aMessageInfo, handlerMetadata); in SendMessage()
320 metadata.mSourceAddress = aMessageInfo.GetSockAddr(); in SendMessage()
321 metadata.mDestinationPort = aMessageInfo.GetPeerPort(); in SendMessage()
[all …]
Dcoap_secure.hpp329 const Ip6::MessageInfo &aMessageInfo,
371 const Ip6::MessageInfo &aMessageInfo,
383 void HandleUdpReceive(ot::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleUdpReceive() argument
385 return mDtls.HandleUdpReceive(aMessage, aMessageInfo); in HandleUdpReceive()
397 …static Error Send(CoapBase &aCoapBase, ot::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in Send() argument
399 return static_cast<CoapSecure &>(aCoapBase).Send(aMessage, aMessageInfo); in Send()
401 Error Send(ot::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
/openthread-3.5.0/src/core/net/
Dicmp6.cpp61 Error Icmp::SendEchoRequest(Message &aMessage, const MessageInfo &aMessageInfo, uint16_t aIdentifie… in SendEchoRequest() argument
67 messageInfoLocal = aMessageInfo; in SendEchoRequest()
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
109 messageInfoLocal = aMessageInfo; in SendError()
131 Error Icmp::HandleMessage(Message &aMessage, MessageInfo &aMessageInfo) in HandleMessage() argument
138 SuccessOrExit(error = Checksum::VerifyMessageChecksum(aMessage, aMessageInfo, kProtoIcmp6)); in HandleMessage()
142 SuccessOrExit(error = HandleEchoRequest(aMessage, aMessageInfo)); in HandleMessage()
149 handler.HandleReceiveMessage(aMessage, aMessageInfo, icmp6Header); in HandleMessage()
[all …]
Dudp6.cpp50 bool Udp::SocketHandle::Matches(const MessageInfo &aMessageInfo) const in Matches()
54 VerifyOrExit(GetSockName().mPort == aMessageInfo.GetSockPort()); in Matches()
56 …VerifyOrExit(aMessageInfo.GetSockAddr().IsMulticast() || GetSockName().GetAddress().IsUnspecified(… in Matches()
57 GetSockName().GetAddress() == aMessageInfo.GetSockAddr()); in Matches()
62 VerifyOrExit(GetPeerName().mPort == aMessageInfo.GetPeerPort()); in Matches()
65 GetPeerName().GetAddress() == aMessageInfo.GetPeerAddr()); in Matches()
109 Error Udp::Socket::SendTo(Message &aMessage, const MessageInfo &aMessageInfo) in SendTo() argument
111 return Get<Udp>().SendTo(*this, aMessage, aMessageInfo); in SendTo()
315 Error Udp::SendTo(SocketHandle &aSocket, Message &aMessage, const MessageInfo &aMessageInfo) in SendTo() argument
320 …VerifyOrExit((aMessageInfo.GetSockPort() == 0) || (aSocket.GetSockName().mPort == aMessageInfo.Get… in SendTo()
[all …]
Dicmp6.hpp228 …void HandleReceiveMessage(Message &aMessage, const MessageInfo &aMessageInfo, const Header &aIcmp6… in HandleReceiveMessage() argument
230 mReceiveCallback(mContext, &aMessage, &aMessageInfo, &aIcmp6Header); in HandleReceiveMessage()
273 Error SendEchoRequest(Message &aMessage, const MessageInfo &aMessageInfo, uint16_t aIdentifier);
287 …Error SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, const Mes…
301 …Error SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, const Hea…
314 Error HandleMessage(Message &aMessage, MessageInfo &aMessageInfo);
340 bool ShouldHandleEchoRequest(const MessageInfo &aMessageInfo);
351 Error HandleEchoRequest(Message &aRequestMessage, const MessageInfo &aMessageInfo);
Dudp6.hpp139 bool Matches(const MessageInfo &aMessageInfo) const;
141 void HandleUdpReceive(Message &aMessage, const MessageInfo &aMessageInfo) in HandleUdpReceive() argument
143 mHandler(mContext, &aMessage, &aMessageInfo); in HandleUdpReceive()
298 Error SendTo(Message &aMessage, const MessageInfo &aMessageInfo);
351 bool HandleMessage(Message &aMessage, const MessageInfo &aMessageInfo) in HandleMessage() argument
353 return mHandler(mContext, &aMessage, &aMessageInfo); in HandleMessage()
544 Error SendTo(SocketHandle &aSocket, Message &aMessage, const MessageInfo &aMessageInfo);
594 Error SendDatagram(Message &aMessage, MessageInfo &aMessageInfo, uint8_t aIpProto);
606 Error HandleMessage(Message &aMessage, MessageInfo &aMessageInfo);
615 void HandlePayload(Message &aMessage, MessageInfo &aMessageInfo);
/openthread-3.5.0/src/core/backbone_router/
Dbackbone_tmf.cpp68 const Ip6::MessageInfo &aMessageInfo) in HandleResource() argument
70 …return static_cast<BackboneTmfAgent &>(aCoapBase).HandleResource(aUriPath, aMessage, aMessageInfo); in HandleResource()
75 const Ip6::MessageInfo &aMessageInfo) in HandleResource() argument
78 OT_UNUSED_VARIABLE(aMessageInfo); in HandleResource()
85 Get<Type>().HandleTmf<kUri>(aMessage, aMessageInfo); \ in HandleResource()
105 …nt::Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *aContext) in Filter() argument
109 …return static_cast<BackboneTmfAgent *>(aContext)->IsBackboneTmfMessage(aMessageInfo) ? kErrorNone … in Filter()
112 bool BackboneTmfAgent::IsBackboneTmfMessage(const Ip6::MessageInfo &aMessageInfo) const in IsBackboneTmfMessage()
114 const Ip6::Address &dst = aMessageInfo.GetSockAddr(); in IsBackboneTmfMessage()
115 const Ip6::Address &src = aMessageInfo.GetPeerAddr(); in IsBackboneTmfMessage()
Dbackbone_tmf.hpp80 bool IsBackboneTmfMessage(const Ip6::MessageInfo &aMessageInfo) const;
102 const Ip6::MessageInfo &aMessageInfo);
103 …eResource(const char *aUriPath, ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
105 …static Error Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void …
/openthread-3.5.0/src/core/thread/
Dtmf.cpp90 …late <> void Agent::HandleTmf<kUriRelayRx>(Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleTmf() argument
93 OT_UNUSED_VARIABLE(aMessageInfo); in HandleTmf()
96 Get<MeshCoP::Commissioner>().HandleTmf<kUriRelayRx>(aMessage, aMessageInfo); in HandleTmf()
99 Get<MeshCoP::BorderAgent>().HandleTmf<kUriRelayRx>(aMessage, aMessageInfo); in HandleTmf()
106 const Ip6::MessageInfo &aMessageInfo) in HandleResource() argument
108 return static_cast<Agent &>(aCoapBase).HandleResource(aUriPath, aMessage, aMessageInfo); in HandleResource()
111 …gent::HandleResource(const char *aUriPath, Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleResource() argument
118 Get<Type>().HandleTmf<kUri>(aMessage, aMessageInfo); \ in HandleResource()
195 Error Agent::Filter(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *aContext) in Filter() argument
199 …return static_cast<Agent *>(aContext)->IsTmfMessage(aMessageInfo.GetPeerAddr(), aMessageInfo.GetSo… in Filter()
[all …]
Dtmf.hpp58 …plate <> void Type::HandleTmf<kUri>(Coap::Message & aMessage, const Ip6::MessageInfo &aMessageInfo)
206 template <Uri kUri> void HandleTmf(Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
211 const Ip6::MessageInfo &aMessageInfo);
212 … HandleResource(const char *aUriPath, Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
214 …static Error Filter(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *aContext);
238 const Ip6::MessageInfo &aMessageInfo);
239 … HandleResource(const char *aUriPath, Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
Danycast_locator.cpp83 const otMessageInfo *aMessageInfo, in HandleResponse() argument
86 …nycastLocator *>(aContext)->HandleResponse(AsCoapMessagePtr(aMessage), AsCoreTypePtr(aMessageInfo), in HandleResponse()
90 void AnycastLocator::HandleResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, … in HandleResponse() argument
92 OT_UNUSED_VARIABLE(aMessageInfo); in HandleResponse()
124 …ocator::HandleTmf<kUriAnycastLocate>(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleTmf() argument
136 SuccessOrExit(Get<Tmf::Agent>().SendMessage(*message, aMessageInfo)); in HandleTmf()
/openthread-3.5.0/src/core/meshcop/
Djoiner_router.hpp102 …atic void HandleUdpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo);
103 void HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
105 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
109 const otMessageInfo *aMessageInfo,
111 …void HandleJoinerEntrustResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Er…
116 void DelaySendingJoinerEntrust(const Ip6::MessageInfo &aMessageInfo, const Kek &aKek);
118 Error SendJoinerEntrust(const Ip6::MessageInfo &aMessageInfo);
Dborder_agent.cpp161 const otMessageInfo *aMessageInfo, in HandleCoapResponse() argument
164 OT_UNUSED_VARIABLE(aMessageInfo); in HandleCoapResponse()
297 … BorderAgent::HandleTmf<kUriProxyTx>(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleTmf() argument
299 OT_UNUSED_VARIABLE(aMessageInfo); in HandleTmf()
337 bool BorderAgent::HandleUdpReceive(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleUdpReceive() argument
342 if (aMessageInfo.GetSockAddr() != mCommissionerAloc.GetAddress()) in HandleUdpReceive()
345 aMessageInfo.GetSockAddr().ToString().AsCString(), in HandleUdpReceive()
364 udpEncapHeader.SetSourcePort(aMessageInfo.GetPeerPort()); in HandleUdpReceive()
365 udpEncapHeader.SetDestinationPort(aMessageInfo.GetSockPort()); in HandleUdpReceive()
370 SuccessOrExit(error = Tlv::Append<Ip6AddressTlv>(*message, aMessageInfo.GetPeerAddr())); in HandleUdpReceive()
[all …]
Dmeshcop_leader.cpp66 …eader::HandleTmf<kUriLeaderPetition>(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleTmf() argument
68 OT_UNUSED_VARIABLE(aMessageInfo); in HandleTmf()
76 VerifyOrExit(Get<Mle::MleRouter>().IsRoutingLocator(aMessageInfo.GetPeerAddr())); in HandleTmf()
89 … data.mBorderAgentLocator.SetBorderAgentLocator(aMessageInfo.GetPeerAddr().GetIid().GetLocator()); in HandleTmf()
112 SendPetitionResponse(aMessage, aMessageInfo, state); in HandleTmf()
116 const Ip6::MessageInfo &aMessageInfo, in SendPetitionResponse() argument
137 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, aMessageInfo)); in SendPetitionResponse()
146 …ader::HandleTmf<kUriLeaderKeepAlive>(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleTmf() argument
173 uint16_t rloc = aMessageInfo.GetPeerAddr().GetIid().GetLocator(); in HandleTmf()
185 SendKeepAliveResponse(aMessage, aMessageInfo, responseState); in HandleTmf()
[all …]
Djoiner_router.cpp125 …nerRouter::HandleUdpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo) in HandleUdpReceive() argument
127 …c_cast<JoinerRouter *>(aContext)->HandleUdpReceive(AsCoreType(aMessage), AsCoreType(aMessageInfo)); in HandleUdpReceive()
130 void JoinerRouter::HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleUdpReceive() argument
145 SuccessOrExit(error = Tlv::Append<JoinerUdpPortTlv>(*message, aMessageInfo.GetPeerPort())); in HandleUdpReceive()
146 SuccessOrExit(error = Tlv::Append<JoinerIidTlv>(*message, aMessageInfo.GetPeerAddr().GetIid())); in HandleUdpReceive()
164 …JoinerRouter::HandleTmf<kUriRelayTx>(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in HandleTmf() argument
166 OT_UNUSED_VARIABLE(aMessageInfo); in HandleTmf()
207 void JoinerRouter::DelaySendingJoinerEntrust(const Ip6::MessageInfo &aMessageInfo, const Kek &aKek) in DelaySendingJoinerEntrust() argument
215 metadata.mMessageInfo = aMessageInfo; in DelaySendingJoinerEntrust()
266 Error JoinerRouter::SendJoinerEntrust(const Ip6::MessageInfo &aMessageInfo) in SendJoinerEntrust() argument
[all …]
Dcommissioner.hpp554 const otMessageInfo *aMessageInfo,
557 const Ip6::MessageInfo *aMessageInfo,
561 const otMessageInfo *aMessageInfo,
564 const Ip6::MessageInfo *aMessageInfo,
568 const otMessageInfo *aMessageInfo,
570 …void HandleLeaderPetitionResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, E…
573 const otMessageInfo *aMessageInfo,
575 …derKeepAliveResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult);
580 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
582 void HandleRelayReceive(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
[all …]
Dmeshcop_leader.hpp118 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
121 const Ip6::MessageInfo &aMessageInfo,
125 const Ip6::MessageInfo &aMessageInfo,
128 …atic void HandleUdpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo);
Ddataset_manager.hpp300 void HandleGet(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) const;
328 Error HandleSet(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
338 const otMessageInfo *aMessageInfo,
340 …void HandleMgmtSetResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, E…
349 const Ip6::MessageInfo &aMessageInfo,
354 …void SendSetResponse(const Coap::Message &aRequest, const Ip6::MessageInfo &aMessageInfo, StateTlv…
497 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
613 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
/openthread-3.5.0/include/openthread/
Dcoap.h346 const otMessageInfo *aMessageInfo,
357 …id (*otCoapRequestHandler)(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo);
888 const otMessageInfo *aMessageInfo,
918 const otMessageInfo *aMessageInfo,
949 const otMessageInfo *aMessageInfo, in otCoapSendRequestBlockWise() argument
956 …return otCoapSendRequestBlockWiseWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aCont… in otCoapSendRequestBlockWise()
978 const otMessageInfo *aMessageInfo, in otCoapSendRequest() argument
983 …return otCoapSendRequestWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aContext, NULL… in otCoapSendRequest()
1068 const otMessageInfo *aMessageInfo,
1090 const otMessageInfo *aMessageInfo,
[all …]
/openthread-3.5.0/src/cli/
Dcli_coap_secure.hpp112 … static void HandleRequest(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo);
113 void HandleRequest(otMessage *aMessage, const otMessageInfo *aMessageInfo);
115 …dleResponse(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo, otError aError…
116 …void HandleResponse(otMessage *aMessage, const otMessageInfo *aMessageInfo, otError aError);
140 …static void DefaultHandler(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo);
141 void DefaultHandler(otMessage *aMessage, const otMessageInfo *aMessageInfo);
Dcli_coap.hpp111 … static void HandleRequest(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo);
112 void HandleRequest(otMessage *aMessage, const otMessageInfo *aMessageInfo);
117 const otMessageInfo *aMessageInfo,
119 …void HandleNotificationResponse(otMessage *aMessage, const otMessageInfo *aMessageInfo, otE…
122 …dleResponse(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo, otError aError…
123 …void HandleResponse(otMessage *aMessage, const otMessageInfo *aMessageInfo, otError aError);
/openthread-3.5.0/src/posix/platform/
Dudp.cpp76 …ror transmitPacket(int aFd, uint8_t *aPayload, uint16_t aLength, const otMessageInfo &aMessageInfo) in transmitPacket() argument
94 peerAddr.sin6_port = htons(aMessageInfo.mPeerPort); in transmitPacket()
96 memcpy(&peerAddr.sin6_addr, &aMessageInfo.mPeerAddr, sizeof(peerAddr.sin6_addr)); in transmitPacket()
98 if (IsLinkLocal(peerAddr.sin6_addr) && !aMessageInfo.mIsHostInterface) in transmitPacket()
118 …int hopLimit = (aMessageInfo.mHopLimit ? aMessageInfo.mHopLimit : OPENTHREAD_CONFIG_IP6_HOP_LIMIT_… in transmitPacket()
130 if (!IsMulticast(aMessageInfo.mSockAddr) && in transmitPacket()
131 memcmp(&aMessageInfo.mSockAddr, &in6addr_any, sizeof(aMessageInfo.mSockAddr))) in transmitPacket()
140 pktinfo.ipi6_ifindex = aMessageInfo.mIsHostInterface ? 0 : gNetifIndex; in transmitPacket()
142 memcpy(&pktinfo.ipi6_addr, &aMessageInfo.mSockAddr, sizeof(pktinfo.ipi6_addr)); in transmitPacket()
168 otError receivePacket(int aFd, uint8_t *aPayload, uint16_t &aLength, otMessageInfo &aMessageInfo) in receivePacket() argument
[all …]
/openthread-3.5.0/src/core/utils/
Dotns.cpp160 void Otns::EmitCoapSend(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in EmitCoapSend() argument
168 aMessageInfo.GetPeerAddr().ToString().AsCString(), aMessageInfo.GetPeerPort()); in EmitCoapSend()
176 void Otns::EmitCoapReceive(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in EmitCoapReceive() argument
184 aMessageInfo.GetPeerAddr().ToString().AsCString(), aMessageInfo.GetPeerPort()); in EmitCoapReceive()
192 …s::EmitCoapSendFailure(Error aError, Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in EmitCoapSendFailure() argument
200 … uriPath, aMessageInfo.GetPeerAddr().ToString().AsCString(), aMessageInfo.GetPeerPort(), in EmitCoapSendFailure()
Dmesh_diag.hpp298 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 …l ProcessRouterNeighborTableAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
304 …void HandleDiagGetResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aR…
308 const otMessageInfo *aMessageInfo,

12345