SDK  23.9.2
For IoT System Software Development
Classes | Enumerations | Functions | Variables
IPv6

Internet Protocol Version 6 Suite. More...

Classes

class  IPv6
 Internet Protocol Version 6 Stack. More...
 
class  IPv6Interface
 IPv6 Network Interface. More...
 
class  IPv6LoRaWAN
 IPv6 over LoRaWAN. More...
 
class  IPv6LoRaWAN_IP_UDP_Compressor
 IPv6 and UDP header compressor for IPv6 over LoRaWAN. More...
 
class  IPv6LoWPAN
 IPv6 over Low-power WPAN (6LoWPAN) More...
 
class  IPv6PPPoS
 IPv6 PPP over SerialPort. More...
 

Enumerations

enum  { MAX_PING_REQUESTS = 10 }
 

Functions

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...
 

Variables

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
 

Detailed Description

Internet Protocol Version 6 Suite.

Function Documentation

◆ 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]infIPv6 interface where link-local scope requests to be sent. If the dst has a global scope, it is ignored.
[in]srcSource address. If it is NULL, most preferred source address is selected.
[in]dstDestination address
[in]sizePayload size overloaded to the ICMPv6 message
[in]cntRequests count
[in]on_repliedCallback 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.