network: honor M or O flag in RA even if IPv6AcceptRA.DHCPv6Cleint=always v246.8
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Nov 2020 07:25:43 +0000 (16:25 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 16 Dec 2020 13:34:54 +0000 (14:34 +0100)
commite39f0fa5c3da64181981ee9dc373b400e6453b19
tree4ae1c9979c365148767d019748eb0b6afa0a05a2
parent83c47527396842302154203fbb5ada66747d0175
network: honor M or O flag in RA even if IPv6AcceptRA.DHCPv6Cleint=always

Follow-up for ac24e418d9bc988ecf114c464701b35934948178.

The original motivation of the commit and RFE #15339 is to start dhcpv6
client in managed mode when neither M nor O flag is set in the RA.
But, previously, if the setting is set to "always", then the DHCPv6
client is always started in managed mode even if O flag is set in the
RA. Such the behavior breaks RFC 7084.

(cherry picked from commit 0e686feaff71465e3220f234871f66a39f0f57ad)
man/systemd.network.xml
src/network/networkd-ndisc.c