Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jul 8, 2024

Hello,

I’ve recently noticed that LwIP hooks are disabled in the ESP32 Arduino builds. After looking through the commit history support for the ip6_select_src_addr_custom hook has already been partially enabled for use in the OpenThread, only for C6 and H2 targets. Matter component requires enabling ip6_route and nd6_get_gw hooks too.

I can only speculate that those hooks will be required and enabled for other platforms too. Enabling them proactively in Kconfig would, in addition to supporting Thread and Matter, allow end users to develop, for example P2P connectivity solutions or custom VPNs not only for ESP-IDF users but also for the Arduino community as a whole.

I’ve been developing an open-source zero-conf VPN with a P2P capability. It has been designed mostly for robotic applications running ROS, but we have been looking forward to opening up for IoT and other embedded workloads too. The lack of the ip6_route hook requires us to build and distribute dedicated and custom Arduino Core for ESP32 fork which is both not optimal and not user friendly.

I’m proposing enabling all LwIP hooks as weak symbols. I don’t believe that operation would increase the complexity of any system, while enabling much grater flexibility and ease the development of Thread and Matter integrations.

@me-no-dev
Copy link
Member

Agreed

@me-no-dev me-no-dev merged commit 28f5e7e into espressif:master Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants