summaryrefslogtreecommitdiff
path: root/src/shared/generator.h
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2015-04-10 14:03:18 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2015-05-04 09:42:37 +0300
commitbe3a09b7ffe62b52658e77ae4d6638d1b0dae654 (patch)
treeba98350ead4b1b638cc2dba86640db2ffc7d70da /src/shared/generator.h
parent336b5c615e9c101476784b32df1b86aaeac96431 (diff)
network: Implement fallback DHCPv6 prefix handling for older kernels
When setting IPv6 addresses acquired by DHCPv6, systemd-networkd sets the IFA_F_NOPREFIXROUTE flag in the IFA_FLAGS netlink attribute. As the flag and the attribute are present starting with Linux 3.14, older kernels will need systemd-network to manage prefix route expiry. By default, DHCPv6 addresses are first assigned setting the IFA_F_NOPREFIXROUTE flag in the IFA_FLAGS netlink attribute. Should the address assignment fail, the same assignment is tried without the IFA_FLAGS attribute. Should also the second attempt fail, an error is printed and address assignment ends with failure. As successful use of the IFA_FLAGS netlink attribute is recorded in the Link structure, the DHCPv6 code will know if the kernel or systemd-network fallback code handles expiring prefixes. The prefix expiration and IPv6 address updating fallback code is resurrected from the parts deleted with commit 47d45d3cde45d6545367570264e4e3636bc9e345. This patch can be removed once the minimum kernel requirements are greater than or equal to 3.14.
Diffstat (limited to 'src/shared/generator.h')
0 files changed, 0 insertions, 0 deletions