]>
git.ipfire.org Git - people/ms/u-boot.git/blob - net/sntp.h
2 * (C) Masami Komiya <mkomiya@sonare.it> 2005
4 * SPDX-License-Identifier: GPL-2.0+
10 #define NTP_SERVICE_PORT 123
11 #define SNTP_PACKET_LEN 48
15 #define NTP_LI_NOLEAP 0x0
16 #define NTP_LI_61SECS 0x1
17 #define NTP_LI_59SECS 0x2
18 #define NTP_LI_ALARM 0x3
25 #define NTP_MODE_RESERVED 0
26 #define NTP_MODE_SYMACTIVE 1 /* Symmetric Active */
27 #define NTP_MODE_SYMPASSIVE 2 /* Symmetric Passive */
28 #define NTP_MODE_CLIENT 3
29 #define NTP_MODE_SERVER 4
30 #define NTP_MODE_BROADCAST 5
31 #define NTP_MODE_NTPCTRL 6 /* Reserved for NTP control message */
32 #define NTP_MODE_PRIVATE 7 /* Reserved for private use */
50 unsigned long long reference_timestamp
;
51 unsigned long long originate_timestamp
;
52 unsigned long long receive_timestamp
;
53 unsigned long long transmit_timestamp
;
56 void sntp_start(void); /* Begin SNTP */
58 #endif /* __SNTP_H__ */