mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
0d6d8922f2
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
|
||
---|---|---|
.. | ||
ipv4 | ||
ipv6 | ||
altcp_alloc.c | ||
altcp_tcp.c | ||
altcp.c | ||
def.c | ||
dns.c | ||
inet_chksum.c | ||
init.c | ||
ip.c | ||
mem.c | ||
memp.c | ||
netif.c | ||
pbuf.c | ||
raw.c | ||
stats.c | ||
sys.c | ||
tcp_in.c | ||
tcp_out.c | ||
tcp.c | ||
timeouts.c | ||
udp.c |