gnrc_dhcpv6_client / uhcp: delay router advertisements until prefix was received #16755
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
The border router does not send out router solicitations as it sends out router advertisements instead.
This delays the reception of router advertisements from upstream routers.
Instead, start with router advertisements disabled and only enable them when we received a global prefix via DHCPv6 or UHCP.
Testing procedure
Run
examples/gnrc_border_router
both withUSE_DHCPV6=1
and without.You should notice that now a configuration on the upstream interface is obtained much faster.
Issues/PRs references
alternative to #16590