35 #ifndef OPENTHREAD_ICMP6_H_ 36 #define OPENTHREAD_ICMP6_H_ 75 #define OT_ICMP6_HEADER_DATA_SIZE 4 181 #endif // OPENTHREAD_ICMP6_H_ 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 defines the types and structures used in the OpenThread library API.
otIcmp6ReceiveCallback mReceiveCallback
The ICMPv6 received callback.
Definition: icmp6.h:121
#define OT_ICMP6_HEADER_DATA_SIZE
Size of an message specific data of ICMPv6 Header.
Definition: icmp6.h:75
This file defines the top-level OpenThread APIs related to message buffer and queues.
This type points to an OpenThread message buffer.
Definition: types.h:479
otIcmp6Code
ICMPv6 Message Codes.
Definition: icmp6.h:70
otError otIcmp6RegisterHandler(otInstance *aInstance, otIcmp6Handler *aHandler)
This function registers a handler to provide received ICMPv6 messages.
Definition: icmp6_api.cpp:52
struct otIcmp6Handler otIcmp6Handler
This structure implements ICMPv6 message handler.
struct otIcmp6Handler * mNext
A pointer to the next handler in the list.
Definition: icmp6.h:123
otIcmp6Type
ICMPv6 Message Types.
Definition: icmp6.h:59
This structure implements ICMPv6 message handler.
Definition: icmp6.h:119
bool otIcmp6IsEchoEnabled(otInstance *aInstance)
This function indicates whether or not ICMPv6 Echo processing is enabled.
Definition: icmp6_api.cpp:42
Destination Unreachable No Route.
Definition: icmp6.h:72
This structure represents the local and peer IPv6 socket addresses.
Definition: types.h:436
otError otIcmp6SendEchoRequest(otInstance *aInstance, otMessage *aMessage, const otMessageInfo *aMessageInfo, uint16_t aIdentifier)
This function sends an ICMPv6 Echo Request via the Thread interface.
Definition: icmp6_api.cpp:57
Destination Unreachable.
Definition: icmp6.h:61
Echo Reply.
Definition: icmp6.h:63
void * mContext
A pointer to arbitrary context information.
Definition: icmp6.h:122
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
void otIcmp6SetEchoEnabled(otInstance *aInstance, bool aEnabled)
This function sets whether or not ICMPv6 Echo processing is enabled.
Definition: icmp6_api.cpp:47
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