networkd-dhcp6: Assign DHCPv6 addresses and prefix lengths

System Internals / systemd - Patrik Flykt [linux.intel.com] - 27 January 2015 01:35 UTC

Once IPv6 addresses have been acquired, assign these to the interface with the prefix lengths taken from the ICMPv6 Router Advertisement handling code. The preferred and valid IPv6 address lifetimes are handed to the kernel which will clean up them if not renewed in time.

When a prefix announced via Router Advertisements expires, find all addresses that match that prefix and update the address to have a prefix length of 128 causing the prefix to be off-link.

c62c462 networkd-dhcp6: Assign DHCPv6 addresses and prefix lengths
src/network/networkd-dhcp6.c | 165 ++++++++++++++++++++++++++++++++++++++++--
1 file changed, 159 insertions(+), 6 deletions(-)

Upstream: github.com


  • Share