Summary: sntp: Allow both IPv4 and IPv6 NTP servers to be
configured simultaneously via DHCP
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: davefiddes
Submitted on: Sun 29 Sep 2019 05:00:29 PM UTC
Priority: 3 - Low
Assigned to: None
Discussion Lock: Any
Planned Release: None
Currently when a DHCP or DHCPv6 updates containing NTP
server addresses is processed all existing NTP server addresses
are wiped. This can lead to problems when there is intermittent
connectivity to an NTP server over a given IP protocol. This
changes DHCP update processing such that it only overwrites
server addresses for the same protocol. It also does the same
for IPv4 NTP server addresses when processing a DHCPv6 update.
The logging for processing DHCP and DHCPv6 updates are now
a bit more useful.
- On a network with DHCP and DHCPv6 configure differing
numbers (0-3) of NTP servers on each protocol. Ensure that
as updates are processed the list of 3 LWIP NTP servers is
updated as expected.
- On a network with intermittent IPv6 connectivity ensure that
with both IPv4 and IPv6 servers configured via DHCP that NTP
updates are requested over IPv4 even if it is not listed first.