mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-23 18:53:28 +00:00
esp_netif: Add CONFIG_PPP_SUPPORT and CONFIG_LWIP_SLIP_SUPPORT to sperate the code
This commit is contained in:
@@ -70,7 +70,11 @@ typedef struct esp_netif_ip_lost_timer_s {
|
||||
/**
|
||||
* @brief Check the netif if of a specific P2P type
|
||||
*/
|
||||
#if CONFIG_PPP_SUPPORT || CONFIG_LWIP_SLIP_SUPPORT
|
||||
#define _IS_NETIF_POINT2POINT_TYPE(netif, type) (netif->related_data && netif->related_data->is_point2point && netif->related_data->netif_type == type)
|
||||
#else
|
||||
#define _IS_NETIF_POINT2POINT_TYPE(netif, type) false
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Additional netif types when related data are needed
|
||||
|
Reference in New Issue
Block a user