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

net_lwip_webserver: allow users to enable LWIP_IP6 if desired #1153

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

majbthrd
Copy link
Collaborator

net_lwip_webserver and ./lib/networking/ code is tweaked to allow the user to enable LWIP_IP6 if desired.

To allow legacy code to compile, lwip's ip_addr_t maps into the newer ip4_addr_t type when LWIP_IP4 is enabled but LWIP_IP6 is not enabled. However, if both LWIP_IP4 and LWIP_IP6 are enabled, ip_addr_t maps to a struct with a union for both ip4_addr_t and ip6_addr_t. Since the ./lib/networking/ code was written for IPv4 only and presumes IP4-only lwip, the previous code breaks. Some tweaking was needed to use the newer ip4_addr_t in preference to the previous ip_addr_t usage.

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look great, thank you for the ipv6 update :)

@hathach hathach merged commit 5079d47 into hathach:master Oct 20, 2021
@majbthrd majbthrd deleted the ipv4 branch August 26, 2022 17:19
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