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.
This patch set fixes DHCPv6 to reacquire and address after a resume and fixes the issue reported in #963.
The third patch in the series fixes handling of a received Router Advertisment by updating the DHCPv6 client if the client was doing an Information Request, and starts the client DHCPv6 address acquisition procedure if a link->dhcp6_client already existed. In order not to restart the DHCPv6 client all the time, patch 1/4 prevents a running client from re-starting by returning -EALREADY in situations where it is already running. This makes subsequent Router Advertisment handling much easier.
Since patch 1/4 checks the client status before allowing it to start, other similar checks were implemented at the same time for settings that should not be changed run-time. Patch 2/4 updates the test case to account for these changes.
As an added bonus, the fourth patch updates link configuration to wait for DHCPv6 to acquire an address before declaring that the link is configured.