network: honor M or O flag in RA even if IPv6AcceptRA.DHCPv6Cleint=always
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Nov 2020 07:25:43 +0000 (16:25 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Nov 2020 09:59:24 +0000 (18:59 +0900)
commit0e686feaff71465e3220f234871f66a39f0f57ad
tree9ed5abb70e22874ea4fd2d1da4eea0a8f5cde094
parentcabe57119f07a9f86ab281f6260bbb006b89a854
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.
man/systemd.network.xml
src/network/networkd-ndisc.c