ICMPv6 echo request and reply.
More...
ICMPv6 echo request and reply.
|
file | echo.h |
| ICMPv6 echo message definitions.
|
|
◆ gnrc_icmpv6_echo_build()
gnrc_pktsnip_t* gnrc_icmpv6_echo_build |
( |
uint8_t |
type, |
|
|
uint16_t |
id, |
|
|
uint16_t |
seq, |
|
|
uint8_t * |
data, |
|
|
size_t |
data_len |
|
) |
| |
Builds an ICMPv6 echo message of type type
for sending.
- Parameters
-
[in] | type | Type of the echo message. Expected to be either ICMPV6_ECHO_REQ or ICMPV6_ECHO_REP. |
[in] | id | ID for the echo message in host byte-order |
[in] | seq | Sequence number for the echo message in host byte-order |
[in] | data | Payload for the echo message |
[in] | data_len | Length of data |
- Returns
- The echo message on success
-
NULL, on failure
◆ gnrc_icmpv6_echo_req_handle()
ICMPv6 echo request handler.
- Parameters
-
[in] | netif | The interface the echo request was received on. |
[in] | ipv6_hdr | The IPv6 header of the echo request. |
[in] | echo | The Echo Request message. |
[in] | len | Length of the echo request message (ipv6_hdr_t::len of ipv6_hdr minus length of extension headers). |