_mdns_get_esp_netif() function
Gets the actual esp_netif pointer from the internal network interface list The supplied ordinal number could - point to a predef netif -> "STA", "AP", "ETH" - if no entry in the list (NULL) -> check if the system added this netif - point to a custom netif -> just return the entry in the list - users is responsible for the lifetime of this netif (to be valid between mdns-init -> deinit)
Arguments
tcpip_if
Ordinal number of the interface
Return value
Pointer ot the esp_netif object if the interface is available, NULL otherwise
_mdns_get_esp_netif() is called by 18 functions and calls 1 function:
![]()
_mdns_get_esp_netif()
_mdns_get_esp_netif() reads 4 variables and writes 1 variable:
![]()
_mdns_get_esp_netif()