mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
sntp: fix SNTP_LI_* bits; fix todo comment
This commit is contained in:
parent
84461e90e2
commit
554f5d7f9e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user