45 using ot::Encoding::BigEndian::HostSwap16;
147 uint16_t
GetId(
void)
const {
return HostSwap16(
mData.m16[0]); }
208 mReceiveCallback = aCallback;
215 mReceiveCallback(mContext, &aMessage, &aMessageInfo, &aIcmp6Header);
244 Message *NewMessage(uint16_t aReserved);
309 otError UpdateChecksum(
Message &aMessage, uint16_t aPseudoHeaderChecksum);
333 uint16_t mEchoSequence;
345 #endif // NET_ICMP6_HPP_ Echo Request.
Definition: icmp6.h:62
This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
This file includes definitions for locator class for OpenThread objects.
bool IsEchoEnabled(void)
This method indicates whether or not ICMPv6 Echo processing is enabled.
Definition: icmp6.hpp:318
This class implements ICMPv6.
Definition: icmp6.hpp:225
This class implements message information for an IPv6 message.
Definition: socket.hpp:57
void SetEchoEnabled(bool aEnabled)
This method sets whether or not ICMPv6 Echo processing is enabled.
Definition: icmp6.hpp:326
This file defines the top-level icmp6 functions for the OpenThread library.
This class represents a message.
Definition: message.hpp:195
This class implements ICMPv6 message handlers.
Definition: icmp6.hpp:195
This class implements locator for otInstance object.
Definition: locator.hpp:63
This file includes definitions for byte-ordering encoding.
This structure implements ICMPv6 message handler.
Definition: icmp6.h:119
Destination Unreachable No Route.
Definition: icmp6.h:72
Destination Unreachable.
Definition: icmp6.h:61
Echo Reply.
Definition: icmp6.h:63
IcmpHandler(otIcmp6ReceiveCallback aCallback, void *aContext)
This constructor creates an ICMPv6 message handler.
Definition: icmp6.hpp:207
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
This file includes compile-time configuration constants for OpenThread.
void(* otIcmp6ReceiveCallback)(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo, const otIcmp6Header *aIcmpHeader)
This callback allows OpenThread to inform the application of a received ICMPv6 message.
Definition: icmp6.h:112