2 * (C) Masami Komiya <mkomiya@sonare.it> 2005
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2, or (at
7 * your option) any later version.
13 #define NTP_SERVICE_PORT 123
14 #define SNTP_PACKET_LEN 48
18 #define NTP_LI_NOLEAP 0x0
19 #define NTP_LI_61SECS 0x1
20 #define NTP_LI_59SECS 0x2
21 #define NTP_LI_ALARM 0x3
28 #define NTP_MODE_RESERVED 0
29 #define NTP_MODE_SYMACTIVE 1 /* Symmetric Active */
30 #define NTP_MODE_SYMPASSIVE 2 /* Symmetric Passive */
31 #define NTP_MODE_CLIENT 3
32 #define NTP_MODE_SERVER 4
33 #define NTP_MODE_BROADCAST 5
34 #define NTP_MODE_NTPCTRL 6 /* Reserved for NTP control message */
35 #define NTP_MODE_PRIVATE 7 /* Reserved for private use */
53 unsigned long long reference_timestamp;
54 unsigned long long originate_timestamp;
55 unsigned long long receive_timestamp;
56 unsigned long long transmit_timestamp;
59 extern void SntpStart (void); /* Begin SNTP */
61 #endif /* __SNTP_H__ */