mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 04:25:32 +00:00
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:

committed by
David Čermák

parent
fab39d2c4b
commit
678d7aadd9
@@ -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
|
||||
|
Reference in New Issue
Block a user