/openthread-3.4.0/src/core/net/ |
D | icmp6.cpp | 50 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()
|
D | icmp6.hpp | 70 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);
|
D | ip6.hpp | 407 … 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;
|
D | nd6.cpp | 184 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()
|
D | nat64_translator.cpp | 406 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()
|
D | nd6.hpp | 696 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()
|
D | checksum.cpp | 176 headerOffset = Ip6::Icmp::Header::kChecksumFieldOffset; in UpdateMessageChecksum() 211 headerOffset = Ip4::Icmp::Header::kChecksumFieldOffset; in UpdateMessageChecksum()
|
D | ip6.cpp | 56 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()
|
D | ip4_types.hpp | 591 class Icmp class
|
/openthread-3.4.0/src/core/api/ |
D | icmp6_api.cpp | 45 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/ |
D | ping_sender.cpp | 97 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()
|
D | ping_sender.hpp | 176 const Ip6::Icmp::Header &aIcmpHeader); 185 Ip6::Icmp::Handler mIcmpHandler;
|
/openthread-3.4.0/tests/unit/ |
D | test_checksum.cpp | 240 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()
|
D | test_routing_manager.cpp | 230 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/ |
D | address_resolver.hpp | 369 const Ip6::Icmp::Header &aIcmpHeader); 385 Ip6::Icmp::Handler mIcmpHandler;
|
D | address_resolver.cpp | 63 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()
|
D | mesh_forwarder_ftd.cpp | 652 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/ |
D | infra_if.cpp | 104 VerifyOrExit(aPacket.GetLength() >= sizeof(Ip6::Icmp::Header), error = kErrorParse); in HandledReceived()
|
D | routing_manager.cpp | 383 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/ |
D | instance.hpp | 776 template <> inline Ip6::Icmp &Instance::Get(void) { return mIp6.mIcmp; } in Get()
|