mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-11 18:13:40 +08:00
sntp: fix SNTP_LI_* bits; fix todo comment
This commit is contained in:
@@ -46,7 +46,6 @@
|
|||||||
* http://support.ntp.org/bin/view/Servers/NTPPoolServers
|
* http://support.ntp.org/bin/view/Servers/NTPPoolServers
|
||||||
*
|
*
|
||||||
* @todo:
|
* @todo:
|
||||||
* - set/change servers at runtime
|
|
||||||
* - complete SNTP_CHECK_RESPONSE checks 3 and 4
|
* - complete SNTP_CHECK_RESPONSE checks 3 and 4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -90,10 +89,10 @@
|
|||||||
|
|
||||||
#define SNTP_OFFSET_LI_VN_MODE 0
|
#define SNTP_OFFSET_LI_VN_MODE 0
|
||||||
#define SNTP_LI_MASK 0xC0
|
#define SNTP_LI_MASK 0xC0
|
||||||
#define SNTP_LI_NO_WARNING 0x00
|
#define SNTP_LI_NO_WARNING (0x00 << 6)
|
||||||
#define SNTP_LI_LAST_MINUTE_61_SEC 0x01
|
#define SNTP_LI_LAST_MINUTE_61_SEC (0x01 << 6)
|
||||||
#define SNTP_LI_LAST_MINUTE_59_SEC 0x02
|
#define SNTP_LI_LAST_MINUTE_59_SEC (0x02 << 6)
|
||||||
#define SNTP_LI_ALARM_CONDITION 0x03 /* (clock not synchronized) */
|
#define SNTP_LI_ALARM_CONDITION (0x03 << 6) /* (clock not synchronized) */
|
||||||
|
|
||||||
#define SNTP_VERSION_MASK 0x38
|
#define SNTP_VERSION_MASK 0x38
|
||||||
#define SNTP_VERSION (4/* NTP Version 4*/<<3)
|
#define SNTP_VERSION (4/* NTP Version 4*/<<3)
|
||||||
|
|||||||
Reference in New Issue
Block a user