Skip to content

Dhcp6 pd assignment fix - #9935

Merged
keszybz merged 4 commits into
systemd:masterfrom
pfl:dhcp6_pd_assignment_fix
Aug 27, 2018
Merged

keszybz merged 4 commits into
systemd:masterfrom
pfl:dhcp6_pd_assignment_fix

Conversation

@pfl

@pfl pfl commented Aug 24, 2018 •

Copy link
Copy Markdown
Contributor

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.

pfl added 4 commits August 24, 2018 09:53
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.
@pfl pfl added bug 🐛 Programming errors, that need preferential fixing network labels Aug 24, 2018
@pfl
pfl requested review from keszybz and poettering August 24, 2018 16:01

@keszybz keszybz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@keszybz
keszybz merged commit 649010a into systemd:master Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🐛 Programming errors, that need preferential fixing network

Development

Successfully merging this pull request may close these issues.

prefix assignment increments wrong

2 participants