feat(icmp): Support IPv6 ping and add icmp example

This commit is contained in:
yuanjm
2020-11-02 14:04:09 +08:00
parent dda5062c80
commit 370ac3e48a
12 changed files with 553 additions and 37 deletions

View File

@@ -71,6 +71,7 @@ typedef struct {
ip_addr_t target_addr; /*!< Target IP address, either IPv4 or IPv6 */
uint32_t task_stack_size; /*!< Stack size of internal ping task */
uint32_t task_prio; /*!< Priority of internal ping task */
uint32_t interface; /*!< Netif index, interface=0 means NETIF_NO_INDEX*/
} esp_ping_config_t;
/**
@@ -92,6 +93,7 @@ typedef struct {
.target_addr = PING_TARGET_ADDR, \
.task_stack_size = 2048, \
.task_prio = 2, \
.interface = 0,\
}
#define ESP_PING_COUNT_INFINITE (0) /*!< Set ping count to zero will ping target infinitely */