Repository navigation
Dhcp6 pd assignment fix - #9935
Merged
Merged
Conversation
Log a warning message in case the network prefix delegated is shorter than /48.
When computing the next network prefix to assign, compute the next prefix to allocate based on the intended /64 assignment, not the given prefix length for the whole prefix, e.g. /48, given to systemd-networkd. Fixes systemd#9626.
Pretty-print log messages with DHCPv6 prefixes after the prefixes have been set instead of some random unassigned stack values.
Print out prefixes assigned to links in addition to the DHCPv6 prefix it was delegated from.
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.
This patch set fixes the issue seen with wrongly computed prefixes. Turns out that the code used the prefix length assigned by the upstream DHCPv6 server instead of the /64 intended for the link when computing the subnet addresses.
Also some pretty-printing fixups discovered while creating a test case for all this; said test case is a matter for another patch set.
Fixes #9626.