This module includes functions that control ICMPv6 communication.
More...
This module includes functions that control ICMPv6 communication.
§ otIcmp6Code
§ otIcmp6ReceiveCallback
This callback allows OpenThread to inform the application of a received ICMPv6 message.
- Parameters
-
[in] | aContext | A pointer to arbitrary context information. |
[in] | aMessage | A pointer to the received message. |
[in] | aMessageInfo | A pointer to message information associated with aMessage . |
[in] | aIcmpHeader | A pointer to the received ICMPv6 header. |
§ otIcmp6Type
§ otIcmp6Code
ICMPv6 Message Codes.
Enumerator |
---|
OT_ICMP6_CODE_DST_UNREACH_NO_ROUTE | Destination Unreachable No Route.
|
§ otIcmp6Type
ICMPv6 Message Types.
Enumerator |
---|
OT_ICMP6_TYPE_DST_UNREACH | Destination Unreachable.
|
OT_ICMP6_TYPE_ECHO_REQUEST | Echo Request.
|
OT_ICMP6_TYPE_ECHO_REPLY | Echo Reply.
|
§ otIcmp6IsEchoEnabled()
bool otIcmp6IsEchoEnabled |
( |
otInstance * |
aInstance | ) |
|
This function indicates whether or not ICMPv6 Echo processing is enabled.
- Parameters
-
[in] | aInstance | A pointer to an OpenThread instance. |
- Return values
-
TRUE | ICMPv6 Echo processing is enabled. |
FALSE | ICMPv6 Echo processing is disabled. |
§ otIcmp6RegisterHandler()
This function registers a handler to provide received ICMPv6 messages.
- Note
- A handler structure
aHandler
has to be stored in persistent (static) memory. OpenThread does not make a copy of handler structure.
- Parameters
-
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aHandler | A pointer to a handler conitaining callback that is called when an ICMPv6 message is received. |
§ otIcmp6SendEchoRequest()
This function sends an ICMPv6 Echo Request via the Thread interface.
- Parameters
-
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aMessage | A pointer to the message buffer containing the ICMPv6 payload. |
[in] | aMessageInfo | A reference to message information associated with aMessage . |
[in] | aIdentifier | An identifier to aid in matching Echo Replies to this Echo Request. May be zero. |
§ otIcmp6SetEchoEnabled()
void otIcmp6SetEchoEnabled |
( |
otInstance * |
aInstance, |
|
|
bool |
aEnabled |
|
) |
| |
This function sets whether or not ICMPv6 Echo processing is enabled.
- Parameters
-
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aEnabled | TRUE to enable ICMPv6 Echo processing, FALSE otherwise. |