summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorChristof Efkemann <christof@efkemann.net>2020-11-15 20:08:39 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-11-16 16:09:37 +0900
commitcabe57119f07a9f86ab281f6260bbb006b89a854 (patch)
treed3e192fd7e7ce4a67b1832faa172c0a91c85d80b /.clang-format
parente2357b1c8a87b610066b8b2a59517bcfb20b832e (diff)
downloadsystemd-cabe57119f07a9f86ab281f6260bbb006b89a854.tar.gz
networkd: fix default value of DHCPv6Client
The configuration of networkd has a DHCPv6Client setting in its [IPv6AcceptRA] section, which, according to the man page, can be a boolean, or the special value "always". The man page states that "true" is the default. The default value is implemented in src/network/networkd-network.c by setting field ipv6_accept_ra_start_dhcp6_client of network to true. However, this field is not a boolean, but an enum type IPv6AcceptRAStartDHCP6Client (src/network/networkd-ndisc.h). Setting ipv6_accept_ra_start_dhcp6_client to true effectively corresponds to the enum value IPV6_ACCEPT_RA_START_DHCP6_CLIENT_ALWAYS, resulting in the DHCPv6Client setting having the default value "always". This patch changes the initialisation to the correct enum value IPV6_ACCEPT_RA_START_DHCP6_CLIENT_YES.
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions