mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-23 01:05:14 +00:00
examples: Add common linux component tapif_io
That can be used with linux target on lwip to pass packets from lwip to linux host networking stack, e.g. routing the trafic to internet.
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
if(${target} STREQUAL "linux")
|
||||
# Header only library for linux
|
||||
|
||||
idf_component_register(INCLUDE_DIRS include
|
||||
PRIV_REQUIRES tapif_io)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(srcs "stdin_out.c"
|
||||
"addr_from_stdin.c"
|
||||
"connect.c"
|
||||
|
@@ -4,6 +4,7 @@ menu "Example Connection Configuration"
|
||||
|
||||
config EXAMPLE_CONNECT_WIFI
|
||||
bool "connect using WiFi interface"
|
||||
depends on !IDF_TARGET_LINUX
|
||||
default y
|
||||
help
|
||||
Protocol examples can use Wi-Fi and/or Ethernet to connect to the network.
|
||||
@@ -117,6 +118,7 @@ menu "Example Connection Configuration"
|
||||
|
||||
config EXAMPLE_CONNECT_ETHERNET
|
||||
bool "connect using Ethernet interface"
|
||||
depends on !IDF_TARGET_LINUX
|
||||
default n
|
||||
help
|
||||
Protocol examples can use Wi-Fi and/or Ethernet to connect to the network.
|
||||
|
Reference in New Issue
Block a user