mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-15 19:34:03 +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"
|
||||
|
||||
Reference in New Issue
Block a user