Home
last modified time | relevance | path

Searched refs:Icmp (Results 1 – 20 of 20) sorted by relevance

/openthread-3.4.0/src/core/net/
Dicmp6.cpp50 Icmp::Icmp(Instance &aInstance) in Icmp() function in ot::Ip6::Icmp
57 Message *Icmp::NewMessage(void) { return Get<Ip6>().NewMessage(sizeof(Header)); } in NewMessage()
59 Error Icmp::RegisterHandler(Handler &aHandler) { return mHandlers.Add(aHandler); } in RegisterHandler()
61 Error Icmp::SendEchoRequest(Message &aMessage, const MessageInfo &aMessageInfo, uint16_t aIdentifie… in SendEchoRequest()
84 Error Icmp::SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, cons… in SendError()
96 Error Icmp::SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, cons… in SendError()
131 Error Icmp::HandleMessage(Message &aMessage, MessageInfo &aMessageInfo) in HandleMessage()
156 bool Icmp::ShouldHandleEchoRequest(const MessageInfo &aMessageInfo) in ShouldHandleEchoRequest()
179 Error Icmp::HandleEchoRequest(Message &aRequestMessage, const MessageInfo &aMessageInfo) in HandleEchoRequest()
Dicmp6.hpp70 class Icmp : public InstanceLocator, private NonCopyable class
210 friend class Icmp;
240 explicit Icmp(Instance &aInstance);
366 DefineCoreType(otIcmp6Header, Ip6::Icmp::Header);
367 DefineCoreType(otIcmp6Handler, Ip6::Icmp::Handler);
Dip6.hpp407 … void SendIcmpError(Message &aMessage, Icmp::Header::Type aIcmpType, Icmp::Header::Code aIcmpCode);
438 Icmp mIcmp;
598 const Icmp::Header &GetIcmpHeader(void) const { return mHeader.mIcmp; } in GetIcmpHeader()
630 Icmp::Header mIcmp;
Dnd6.cpp184 mType = Icmp::Header::kTypeRouterAdvert; in SetToDefault()
268 mHeader.SetType(Icmp::Header::kTypeRouterSolicit); in RouterSolicitMessage()
280 mType = Icmp::Header::kTypeNeighborSolicit; in NeighborSolicitMessage()
292 mType = Icmp::Header::kTypeNeighborAdvert; in NeighborAdvertMessage()
Dnat64_translator.cpp406 Ip4::Icmp::Header icmp4Header; in TranslateIcmp4()
407 Ip6::Icmp::Header icmp6Header; in TranslateIcmp4()
415 case Ip4::Icmp::Header::Type::kTypeEchoReply: in TranslateIcmp4()
420 icmp6Header.SetType(Ip6::Icmp::Header::Type::kTypeEchoReply); in TranslateIcmp4()
436 Ip4::Icmp::Header icmp4Header; in TranslateIcmp6()
437 Ip6::Icmp::Header icmp6Header; in TranslateIcmp6()
445 case Ip6::Icmp::Header::Type::kTypeEchoRequest: in TranslateIcmp6()
450 icmp4Header.SetType(Ip4::Icmp::Header::Type::kTypeEchoRequest); in TranslateIcmp6()
Dnd6.hpp696 Icmp::Header mHeader; // The common ICMPv6 header.
722 … bool IsValid(void) const { return (mType == Icmp::Header::kTypeNeighborSolicit) && (mCode == 0); } in IsValid()
787 … bool IsValid(void) const { return (mType == Icmp::Header::kTypeNeighborAdvert) && (mCode == 0); } in IsValid()
Dchecksum.cpp176 headerOffset = Ip6::Icmp::Header::kChecksumFieldOffset; in UpdateMessageChecksum()
211 headerOffset = Ip4::Icmp::Header::kChecksumFieldOffset; in UpdateMessageChecksum()
Dip6.cpp56 using IcmpType = ot::Ip6::Icmp::Header::Type;
768 … SendIcmpError(message, Icmp::Header::kTypeTimeExceeded, Icmp::Header::kCodeFragmReasTimeEx); in UpdateReassemblyList()
775 void Ip6::SendIcmpError(Message &aMessage, Icmp::Header::Type aIcmpType, Icmp::Header::Code aIcmpCo… in SendIcmpError()
998 Icmp::Header icmp; in PassToHost()
1001 VerifyOrExit(icmp.GetType() != Icmp::Header::kTypeEchoRequest, error = kErrorDrop); in PassToHost()
Dip4_types.hpp591 class Icmp class
/openthread-3.4.0/src/core/api/
Dicmp6_api.cpp45 return AsCoreType(aInstance).Get<Ip6::Icmp>().GetEchoMode(); in otIcmp6GetEchoMode()
50 AsCoreType(aInstance).Get<Ip6::Icmp>().SetEchoMode(aMode); in otIcmp6SetEchoMode()
55 return AsCoreType(aInstance).Get<Ip6::Icmp>().RegisterHandler(AsCoreType(aHandler)); in otIcmp6RegisterHandler()
63 …return AsCoreType(aInstance).Get<Ip6::Icmp>().SendEchoRequest(AsCoreType(aMessage), AsCoreType(aMe… in otIcmp6SendEchoRequest()
/openthread-3.4.0/src/core/utils/
Dping_sender.cpp97 IgnoreError(Get<Ip6::Icmp>().RegisterHandler(mIcmpHandler)); in PingSender()
138 message = Get<Ip6::Icmp>().NewMessage(); in SendPing()
148 mTargetEchoSequence = Get<Ip6::Icmp>().GetEchoSequence(); in SendPing()
149 SuccessOrExit(Get<Ip6::Icmp>().SendEchoRequest(*message, messageInfo, mIdentifier)); in SendPing()
195 const Ip6::Icmp::Header &aIcmpHeader) in HandleIcmpReceive()
201 VerifyOrExit(aIcmpHeader.GetType() == Ip6::Icmp::Header::kTypeEchoReply); in HandleIcmpReceive()
Dping_sender.hpp176 const Ip6::Icmp::Header &aIcmpHeader);
185 Ip6::Icmp::Handler mIcmpHandler;
/openthread-3.4.0/tests/unit/
Dtest_checksum.cpp240 constexpr uint16_t kMinSize = sizeof(Ip6::Icmp::Header); in TestIcmp6MessageChecksum()
252 Message *message = instance->Get<Ip6::Ip6>().NewMessage(sizeof(Ip6::Icmp::Header)); in TestIcmp6MessageChecksum()
253 Ip6::Icmp::Header icmp6Header; in TestIcmp6MessageChecksum()
433 Ip4::Icmp::Header icmpHeader; in TestIcmp4MessageChecksum()
Dtest_routing_manager.cpp230 VerifyOrQuit(aBufferLength >= sizeof(Ip6::Icmp::Header)); in otPlatInfraIfSendIcmp6Nd()
232 switch (reinterpret_cast<const Ip6::Icmp::Header *>(aBuffer)->GetType()) in otPlatInfraIfSendIcmp6Nd()
234 case Ip6::Icmp::Header::kTypeRouterSolicit: in otPlatInfraIfSendIcmp6Nd()
239 case Ip6::Icmp::Header::kTypeRouterAdvert: in otPlatInfraIfSendIcmp6Nd()
245 case Ip6::Icmp::Header::kTypeNeighborSolicit: in otPlatInfraIfSendIcmp6Nd()
/openthread-3.4.0/src/core/thread/
Daddress_resolver.hpp369 const Ip6::Icmp::Header &aIcmpHeader);
385 Ip6::Icmp::Handler mIcmpHandler;
Daddress_resolver.cpp63 IgnoreError(Get<Ip6::Icmp>().RegisterHandler(mIcmpHandler)); in AddressResolver()
1009 const Ip6::Icmp::Header &aIcmpHeader) in HandleIcmpReceive()
1015 VerifyOrExit(aIcmpHeader.GetType() == Ip6::Icmp::Header::kTypeDstUnreach); in HandleIcmpReceive()
1016 VerifyOrExit(aIcmpHeader.GetCode() == Ip6::Icmp::Header::kCodeDstUnreachNoRoute); in HandleIcmpReceive()
Dmesh_forwarder_ftd.cpp652 IgnoreError(Get<Ip6::Icmp>().SendError(Ip6::Icmp::Header::kTypeDstUnreach, in SendDestinationUnreachable()
653 … Ip6::Icmp::Header::kCodeDstUnreachNoRoute, messageInfo, aIp6Headers)); in SendDestinationUnreachable()
/openthread-3.4.0/src/core/border_router/
Dinfra_if.cpp104 VerifyOrExit(aPacket.GetLength() >= sizeof(Ip6::Icmp::Header), error = kErrorParse); in HandledReceived()
Drouting_manager.cpp383 const Ip6::Icmp::Header *icmp6Header; in HandleReceived()
387 icmp6Header = reinterpret_cast<const Ip6::Icmp::Header *>(aPacket.GetBytes()); in HandleReceived()
391 case Ip6::Icmp::Header::kTypeRouterAdvert: in HandleReceived()
394 case Ip6::Icmp::Header::kTypeRouterSolicit: in HandleReceived()
397 case Ip6::Icmp::Header::kTypeNeighborAdvert: in HandleReceived()
/openthread-3.4.0/src/core/common/
Dinstance.hpp776 template <> inline Ip6::Icmp &Instance::Get(void) { return mIp6.mIcmp; } in Get()