esp_netif: Add CONFIG_PPP_SUPPORT and CONFIG_LWIP_SLIP_SUPPORT to sperate the code

This commit is contained in:
yuanjm
2021-06-23 10:20:08 +08:00
parent 3844f6bb84
commit 00d84a3bb2
6 changed files with 75 additions and 79 deletions

View File

@@ -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