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:
David Cermak
2023-01-31 08:29:00 +01:00
parent 332e4902b4
commit 854e16feb3
12 changed files with 593 additions and 0 deletions

View File

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

View File

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