mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-18 04:52:18 +02:00
esp-netif: support for ipv6 addr types and indices
* Original commit: espressif/esp-idf@56725fa678
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
ef9a758662
commit
9d9aac1569
@ -73,6 +73,8 @@ static void on_got_ipv6(void *arg, esp_event_base_t event_base,
|
||||
ESP_LOGI(TAG, "Got IPv6 event!");
|
||||
memcpy(&s_ipv6_addr, &event->ip6_info.ip, sizeof(s_ipv6_addr));
|
||||
xEventGroupSetBits(s_connect_event_group, GOT_IPV6_BIT);
|
||||
ESP_LOGI(TAG, "IPv6 address: " IPV6STR ", index: %d, type: %d", IPV62STR(s_ipv6_addr), event->ip_index, esp_ip6_get_addr_type(&s_ipv6_addr));
|
||||
|
||||
}
|
||||
|
||||
#endif // CONFIG_EXAMPLE_CONNECT_IPV6
|
||||
|
Reference in New Issue
Block a user