network: also save NTP servers and friends obtained by other protocols
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 8 Oct 2023 04:06:25 +0000 (13:06 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 8 Oct 2023 04:06:28 +0000 (13:06 +0900)
commit86a66e9b95048b1a3a4e297ba2884afcedd1585e
tree8527e1840ebe0b084544d89bca18dde630f93456
parentc51ecf31171d7c79b15d68ecc05b74f788d8b886
network: also save NTP servers and friends obtained by other protocols

Previously, only servers that statically configursd or obtained by
DHCPv4 protocol are saved in the manager state file.

NTP servers obtained by DHCPv6 could not be used by timesyncd.

Fixes #29148.
src/network/networkd-state-file.c