esp-netif/lwip: Introduce TCP/IP stack has BSD API

* This variable is automatically selected when lwip stack is chosen
* This commit also fixes lwip loopback configuration
This commit is contained in:
David Cermak
2022-09-23 08:59:37 +02:00
committed by David Čermák
parent fab39d2c4b
commit 678d7aadd9
10 changed files with 30 additions and 33 deletions

View File

@@ -10,7 +10,9 @@
#include "lwip/netif.h"
#include "esp_netif_ppp.h"
#if defined(CONFIG_ESP_NETIF_TCPIP_LWIP)
#ifdef __cplusplus
extern "C" {
#endif
typedef err_t (*init_fn_t)(struct netif*);
typedef void (*input_fn_t)(void *netif, void *buffer, size_t len, void *eb);
@@ -72,4 +74,6 @@ err_t wlanif_init_sta(struct netif *netif);
*/
void wlanif_input(void *h, void *buffer, size_t len, void* l2_buff);
#endif // CONFIG_ESP_NETIF_TCPIP_LWIP
#ifdef __cplusplus
}
#endif