mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-18 13:02:21 +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!");
|
ESP_LOGI(TAG, "Got IPv6 event!");
|
||||||
memcpy(&s_ipv6_addr, &event->ip6_info.ip, sizeof(s_ipv6_addr));
|
memcpy(&s_ipv6_addr, &event->ip6_info.ip, sizeof(s_ipv6_addr));
|
||||||
xEventGroupSetBits(s_connect_event_group, GOT_IPV6_BIT);
|
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
|
#endif // CONFIG_EXAMPLE_CONNECT_IPV6
|
||||||
|
Reference in New Issue
Block a user