Skip to content

Commit 36fc6ed

Browse files
authored
Merge pull request #179 from C5Lab/development
MITM
2 parents 16c8879 + d31726e commit 36fc6ed

9 files changed

Lines changed: 7013 additions & 31 deletions

File tree

ESP32C5/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
1414

1515
project(projectZero)
1616

17+
# ===== MITM: allow lwIP to forward packets back out the same WiFi interface =====
18+
idf_component_get_property(lwip_lib lwip COMPONENT_LIB)
19+
target_compile_definitions(${lwip_lib} PRIVATE IP_FORWARD_ALLOW_TX_ON_RX_NETIF=1)
20+
1721
# ===== POST-BUILD: copy binaries to binaries-esp32c5 =====
1822
set(EXPORT_DIR "${CMAKE_SOURCE_DIR}/binaries-esp32c5")
1923
file(MAKE_DIRECTORY "${EXPORT_DIR}")

0 commit comments

Comments
 (0)