Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable LwIP hooks #190

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Enable LwIP hooks #190

merged 2 commits into from
Jul 10, 2024

Conversation

miloszlagan
Copy link
Contributor

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
8 checks passed
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