mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-21 14:32:21 +02:00
esp_netif: Introduction of esp-netif component as a replacement of tcpip_adpter
- provides object oriented access to network intefaces - not limited to default netifs - more generic abstraction to network input output functions - event handler registration removed from component responsibility - backward compatibility layer for legacy tcpip_apapter APIs Closes IDF-39 * Original commit: espressif/esp-idf@ffe043b1a8
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
3cc64469c1
commit
53e2aa3241
@ -4161,7 +4161,7 @@ static void event_handler(void* arg, esp_event_base_t event_base,
|
|||||||
action->data.sys_event.event_id = event_id;
|
action->data.sys_event.event_id = event_id;
|
||||||
if (event_base == IP_EVENT && event_id == IP_EVENT_GOT_IP6) {
|
if (event_base == IP_EVENT && event_id == IP_EVENT_GOT_IP6) {
|
||||||
ip_event_got_ip6_t* event = (ip_event_got_ip6_t*) event_data;
|
ip_event_got_ip6_t* event = (ip_event_got_ip6_t*) event_data;
|
||||||
action->data.sys_event.interface = event->if_index;
|
action->data.sys_event.interface = tcpip_adapter_if_from_esp_netif(event->esp_netif);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xQueueSend(_mdns_server->action_queue, &action, (portTickType)0) != pdPASS) {
|
if (xQueueSend(_mdns_server->action_queue, &action, (portTickType)0) != pdPASS) {
|
||||||
|
Reference in New Issue
Block a user