pkg/lwip: fix dependencies when LWIP IPv4 and LWIP_DHCP is used#21869
Merged
mguetschow merged 1 commit intoRIOT-OS:masterfrom Nov 14, 2025
Merged
Conversation
mguetschow
reviewed
Nov 11, 2025
Contributor
mguetschow
left a comment
There was a problem hiding this comment.
Thanks for looking into this! To be honest, I'm not a big fan of this hack, as it seems to only provide a superficial fix at the cost of modeling a wrong netdev during dependency resolution.
While trying to figure out the root cause, I found
RIOT/pkg/lwip/include/lwipopts.h
Lines 35 to 39 in 989b85b
which was added with #17174
It seems to me that the issue #17162 mentioned there is closer to the root cause.
I still think we should merge this now as it improves things, but I'd ask you to add a TODO note to the comment pointing to the issue above and stating that this should be fixed more fundamentally.
fcbd17e to
b2fdbc3
Compare
b2fdbc3 to
6be2534
Compare
mguetschow
approved these changes
Nov 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
When LWIP IPv4 and LWIP DHCP is used, in file
build/pkg/lwip/src/include/lwip/acd.h(Address Conflict Detection)definition of
struct etharp_hdris needed. This definition is available in the modulenetdev_eth.In link @mguetschow reported that previous solution from PR #21342 did not work for
nrf52840dk.This PR is some "dirty-hack" to solve this problem.
TODO:
Find the root cause of the problem. PR #17174 and PR #17162 could be a good starting point.
Testing procedure
Without this PR on current master
LWIP_IPV4=1 make -C examples/networking/coap/gcoap_dtls BOARD=nrf52840dkends with error:With this PR, everything works well.
I tested this for
nrf52840dk(lack of Ethernet interface but radio interface),nucleo-f439zi(with Ethernet interface),native(lack of any network interface).Issues/PRs references
Fixes PR #21342