mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-12-15 01:48:20 +08:00
feat(icmp): Support IPv6 ping and add icmp example
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user