chiark / gitweb /
networkd-dhcp6: Assign DHCPv6 addresses and prefix lengths
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 20 Jan 2015 17:36:04 +0000 (19:36 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 27 Jan 2015 07:35:24 +0000 (09:35 +0200)
commitc62c4628d9dbc27effd36143c75abe528f561867
tree950b5832ce1a4376c4ccbfef05422ac2b4fae1d0
parentbd1957e906fbf92fca6c97bc6cadcf89248d2419
networkd-dhcp6: Assign DHCPv6 addresses and prefix lengths

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.
src/network/networkd-dhcp6.c