Internet Protocol Version 6 Suite.
More...
|
| CoAP |
| Constrained Application Protocol.
|
|
| UDP |
| UDP (User Datagram Protocol)
|
|
|
enum | { MAX_PING_REQUESTS = 10
} |
|
|
char * | ip6_ntop (const IP6_ADDRESS *src, char *dst) |
|
bool | ip6_pton (const char *src, IP6_ADDRESS *dst) |
|
bool | ping6 (IPv6Interface *inf, const IP6_ADDRESS *src, const IP6_ADDRESS *dst, uint16_t size, uint8_t cnt, void(*on_replied)(const IPv6::Header_t *ip6, uint16_t seq, uint16_t sz, const void *payload)) |
| Send ICMPv6 echo requests. (ping) More...
|
|
|
const uint8_t * | UNSPECIFIED_ADDR |
|
const uint8_t * | LOOPBACK_ADDR |
|
const uint8_t * | UNICAST_LL_PREFIX |
|
const uint8_t * | MADDR_LL_ALL_NODE |
|
const uint8_t * | MADDR_LL_ALL_ROUTER |
|
const uint8_t * | MADDR_LL_ALL_RPL_NODE |
|
const uint8_t * | MADDR_LL_SOLICITED_NODE |
|
Internet Protocol Version 6 Suite.
◆ ping6()
bool ping6 |
( |
IPv6Interface * |
inf, |
|
|
const IP6_ADDRESS * |
src, |
|
|
const IP6_ADDRESS * |
dst, |
|
|
uint16_t |
size, |
|
|
uint8_t |
cnt, |
|
|
void(*)(const IPv6::Header_t *ip6, uint16_t seq, uint16_t sz, const void *payload) |
on_replied |
|
) |
| |
Send ICMPv6 echo requests. (ping)
- Parameters
-
[in] | inf | IPv6 interface where link-local scope requests to be sent. If the dst has a global scope, it is ignored. |
[in] | src | Source address. If it is NULL, most preferred source address is selected. |
[in] | dst | Destination address |
[in] | size | Payload size overloaded to the ICMPv6 message |
[in] | cnt | Requests count |
[in] | on_replied | Callback function pointer to be called when corresponding echo replies arrive. When the function is called with NULL ip6, it means request timed out. |
- Returns
- true when sending an echo request is successful. If a number of waiting for echo replies exceeds MAX_PING_REQUESTS, or the kernel scheduler denies, it returns false.