mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-19 14:46:58 +08:00
sntp: obey KoD when using multiple servers
See bug #55253 (SNTP retry next server instantly result as a flood of NTP request). Added 'sntp_getkodreceived()' to check the status.
This commit is contained in:
@@ -57,6 +57,7 @@ u8_t sntp_enabled(void);
|
||||
|
||||
void sntp_setserver(u8_t idx, const ip_addr_t *addr);
|
||||
const ip_addr_t* sntp_getserver(u8_t idx);
|
||||
u8_t sntp_getkodreceived(u8_t idx);
|
||||
|
||||
#if SNTP_MONITOR_SERVER_REACHABILITY
|
||||
u8_t sntp_getreachability(u8_t idx);
|
||||
|
||||
Reference in New Issue
Block a user