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

Use IPADDR6_INIT() macro to set connecting IPv6 address #20

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

mathieucarbou
Copy link
Owner

@mathieucarbou mathieucarbou commented Sep 2, 2024

If LwIP is built with LWIP_IPV6_SCOPES, there is a 'zone' member in struct ip6_addr which was not being initialized correctly, leading to routing failures.

The tcp_connect() call would return ERR_RTE and we would completely fail to report that error. All the user would see is 'Connecting to MQTT...' over and over again.

If LwIP is built with LWIP_IPV6_SCOPES, there is a 'zone' member in
struct ip6_addr which was not being initialized correctly, leading to
routing failures.

The tcp_connect() call would return ERR_RTE and we would completely fail
to report that error. All the user would see is 'Connecting to MQTT...'
over and over again.
@mathieucarbou
Copy link
Owner Author

mathieucarbou commented Sep 2, 2024

Original PR esphome#14 from @dwmw2

@mathieucarbou mathieucarbou merged commit 7edeaf8 into main Sep 2, 2024
24 checks passed
@mathieucarbou mathieucarbou deleted the v6zone branch October 2, 2024 21:09
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