mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00

This adds support for RFC4075 SNTP server configuration via DHCPv6. The DHCPv6 options transmitted are now conditional on how LwIP is configured. A new SNTP application option SNTP_GET_SERVERS_FROM_DHCPV6 is used to enable. For simplicity this is configured to use the global LWIP_DHCP6_GET_NTP_SRV configuration setting. Tests: - Check the global options now control the DHCPv6 request sent in Wireshark - Check against 0, 1 and 3 SNTP servers configured on an odhcpd server configured to support RFC 4075 SNTP server lists. Verify that the SNTP server list is updated on connection establishment on an ESP8266 WeMOS D1. - Verify that SNTP packets are sent and recieved from a configured server and that system time is updated. Signed-off-by: David J. Fiddes <D.J@fiddes.net> (cherry picked from commit 8f2f43f0937dcb192351f89df78157a814f37b21)