-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
lwip2 include ip4_addr.h has wrong defines? #4481
Comments
The given fix is incorrect on a couple points:
Adding these to the file |
|
or
The only "official" use of edit: fixed the second example |
Basic Infos
Platform
Settings in IDE
Problem Description
Attached reproducer using lwip2 ( both low memory and high bandwidth) will not compile.
Code compiles using lwip 1.4. IP2STR was used in some code I was re-using.
Reason seems to be wrong define of ip4_addr* in lwip2/include/ip4_addr.h.
Replacing defines with the ones from lwip 1.4 successfully compiles and works.
I am not sure if these defines in lwip2 are wrong by design or if this is a bug. As the 1.4 lwip
version seems to work I suspect the latter.
Reproducer:
ip4_addr_reproducer.ino.txt
Compile Errors:
compile_errors.txt
Fix?
Below the changed lines in lwip2/include/ip4_addr.h. Commented out the original defines that would not compile and added the same define from the lwip/include/ip4_addr.h.
The text was updated successfully, but these errors were encountered: