mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
lwip/linux: Add lwip support for networking component under linux
linux/lwip: Wrap some IO posix functions * to workaourd the FreeRTOS EINTR issue (when building without lwip) * to correctly choose the sub-system based on fd (when building with lwip) -- passing control to either linux/system or to lwip This commit also addapts tapio-if to provide DHCP client by default and configurable settings for static IP
This commit is contained in:

committed by
David Čermák

parent
0bfffa0160
commit
b2af4d9689
@@ -3,11 +3,11 @@
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef LWIP_HDR_LINUX_SYS_SOCKETS_H
|
||||
#define LWIP_HDR_LINUX_SYS_SOCKETS_H
|
||||
#pragma once
|
||||
#ifdef LWIP_HDR_LINUX_SYS_SOCKETS_H
|
||||
/* only if we prefer linux system sockets, include from system paths */
|
||||
#include_next <sys/socket.h>
|
||||
#else
|
||||
/* Include lwip sockets by default */
|
||||
#include "lwip/sockets.h"
|
||||
#else
|
||||
/* Otherwise use system sockets if LWIP_HDR_LINUX_SYS_SOCKETS_H already defined */
|
||||
#include_next <sys/socket.h>
|
||||
#endif /* LWIP_HDR_LINUX_SYS_SOCKETS_H */
|
||||
|
Reference in New Issue
Block a user