sd-dhcp6-client: do not merge NTP and SNTP options
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 Sep 2021 06:00:43 +0000 (15:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 29 Sep 2021 06:29:41 +0000 (15:29 +0900)
commite693e969614062fea1746399cf5cff4c09526c6a
tree9e9e4690343226c12ebd0b1c57180ed262bf7ba1
parent9c3d46bf8d933d6ff4da6876ebbc0f13d65bee76
sd-dhcp6-client: do not merge NTP and SNTP options

Previously, SNTP option is ignored when it appears after NTP option(s),
but merged later NTP options when it appears first.
This makes split the NTP and SNTP addresses, and use SNTP addresses only
when no NTP option is provided.
src/libsystemd-network/dhcp6-lease-internal.h
src/libsystemd-network/sd-dhcp6-client.c
src/libsystemd-network/sd-dhcp6-lease.c
src/libsystemd-network/test-dhcp6-client.c