From 53e2aa3241d6408b76e442cde7a16236e520d95b Mon Sep 17 00:00:00 2001 From: David Cermak Date: Fri, 28 Jun 2019 16:47:34 +0200 Subject: [PATCH] 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@ffe043b1a81a0f9e1cc2cfa8873e21318ec89143 --- components/mdns/mdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 8ee6b5d91..31d0a96ce 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -4161,7 +4161,7 @@ static void event_handler(void* arg, esp_event_base_t event_base, action->data.sys_event.event_id = event_id; if (event_base == IP_EVENT && event_id == IP_EVENT_GOT_IP6) { 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) {