chiark / gitweb /
systemd-networkd: Use IFA_F_NOPREFIXROUTE with IPv6 addresses
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 2 Feb 2015 11:13:17 +0000 (13:13 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 27 Mar 2015 11:57:13 +0000 (13:57 +0200)
commit851c9f82736c89d423b244a292e153ec7124d309
tree6f270a444a47b1d83738fa4f83d021aa89ffe0cc
parent350e7a14dd66d79cbc94f4b49b6a58ccb8a4d1c1
systemd-networkd: Use IFA_F_NOPREFIXROUTE with IPv6 addresses

The IFA_F_NOPREFIXROUTE flag prevents the kernel from creating new onlink
prefixes when a DHCPv6 IPv6 address with a prefix length is set from user
space. IPv6 routing will follow the onlink status from Router Advertisment
Prefix Information options or any manually set route, which is the correct
thing to do.

As this flag has a larger value than what fits into an unsigned char, update
the flag attribute to an uint32_t and set it with an IFA_FLAGS attribute
when writing netlink messages to the kernel.
src/network/networkd-address.c
src/network/networkd-dhcp6.c
src/network/networkd-link.c
src/network/networkd.h