components/esp_netif/lwip/esp_netif_lwip.c
/**
 * @brief This function sets default netif no matter which implementation used
 *
 * @param esp_netif handle to network interface
 *
 * @note: This function must be called from lwip thread
 */
@brief This function sets default netif no matter which implementation used
@param esp_netif handle to network interface

@note: This function must be called from lwip thread
@brief This function sets default netif no matter which implementation used @param esp_netif handle to network interface @note : This function must be called from lwip thread
static void esp_netif_set_default_netif(esp_netif_t *esp_netif)
{
    if (_IS_NETIF_POINT2POINT_TYPE(esp_netif, PPP_LWIP_NETIF)) {
#if CONFIG_PPP_SUPPORT
        esp_netif_ppp_set_default_netif(esp_netif->netif_handle);
#endif
    } else {
        netif_set_default(esp_netif->lwip_netif);
    }
}
static void esp_netif_set_default_netif ( esp_netif_t * esp_netif ) { if ( _IS_NETIF_POINT2POINT_TYPE ( esp_netif , PPP_LWIP_NETIF ) ) { #if CONFIG_PPP_SUPPORT esp_netif_ppp_set_default_netif ( esp_netif -> netif_handle ) ; #endif } else { netif_set_default ( esp_netif -> lwip_netif ) ; } }
@brief This function sets default netif no matter which implementation used
 @param esp_netif handle to network interface
@brief This function sets default netif no matter which implementation used @param esp_netif handle to network interface