mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
lwip:add feature for ipv6 ping
This commit is contained in:
@@ -54,7 +54,8 @@ typedef enum {
|
||||
PING_TARGET_RES_FN = 55, /**< ping result callback function */
|
||||
PING_TARGET_RES_RESET = 56, /**< ping result statistic reset */
|
||||
PING_TARGET_DATA_LEN = 57, /**< ping data length*/
|
||||
PING_TARGET_IP_TOS = 58 /**< ping QOS*/
|
||||
PING_TARGET_IP_TOS = 58, /**< ping QOS*/
|
||||
PING_TARGET_IF_INDEX = 59 /**< ping if index*/
|
||||
} ping_target_id_t;
|
||||
|
||||
typedef enum {
|
||||
|
@@ -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;
|
||||
|
||||
/**
|
||||
@@ -87,6 +88,7 @@ typedef struct {
|
||||
.target_addr = ip_addr_any_type, \
|
||||
.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