1 /* $NetBSD: ntp_config.h,v 1.3 2006/06/11 19:34:09 kardel Exp $ */
4 * Configuration file name
8 # define CONFIG_FILE "/etc/ntp.conf"
10 # define CONFIG_FILE "%windir%\\system32\\drivers\\etc\\ntp.conf"
11 # define ALT_CONFIG_FILE "%windir%\\ntp.conf"
12 # define NTP_KEYSDIR "%windir%\\system32\\drivers\\etc"
13 # endif /* SYS_WINNT */
14 #endif /* not CONFIG_FILE */
17 * Types of entries we understand.
19 #define CONFIG_UNKNOWN 0
25 #define CONFIG_SERVER 2
26 #define CONFIG_AUTOMAX 3
27 #define CONFIG_DRIFTFILE 4
28 #define CONFIG_BROADCAST 5
29 #define CONFIG_BROADCASTCLIENT 6
30 #define CONFIG_AUTHENTICATE 7
32 #define CONFIG_REVOKE 9
33 #define CONFIG_CDELAY 10
34 #define CONFIG_RESTRICT 11
35 #define CONFIG_BDELAY 12
36 #define CONFIG_TRUSTEDKEY 13
37 #define CONFIG_REQUESTKEY 14
38 #define CONFIG_CONTROLKEY 15
39 #define CONFIG_TRAP 16
40 #define CONFIG_FUDGE 17
41 #define CONFIG_TINKER 18
42 #define CONFIG_STATSDIR 19
43 #define CONFIG_FILEGEN 20
44 #define CONFIG_STATISTICS 21
45 #define CONFIG_PIDFILE 22
46 #define CONFIG_SETVAR 23
47 #define CONFIG_DISCARD 24
49 #define CONFIG_MULTICASTCLIENT 26
50 #define CONFIG_ENABLE 27
51 #define CONFIG_DISABLE 28
52 #define CONFIG_PHONE 29
53 #define CONFIG_LOGFILE 30
54 #define CONFIG_LOGCONFIG 31
55 #define CONFIG_MANYCASTCLIENT 32
56 #define CONFIG_MANYCASTSERVER 33
59 #define CONFIG_INCLUDEFILE 36
60 #define CONFIG_KEYSDIR 37
63 #define CONFIG_CRYPTO 39
67 * "peer", "server", "broadcast" modifier keywords
69 #define CONF_MOD_VERSION 1
70 #define CONF_MOD_KEY 2
71 #define CONF_MOD_MINPOLL 3
72 #define CONF_MOD_MAXPOLL 4
73 #define CONF_MOD_PREFER 5
74 #define CONF_MOD_BURST 6
75 #define CONF_MOD_IBURST 7
76 #define CONF_MOD_SKEY 8
77 #define CONF_MOD_TTL 9
78 #define CONF_MOD_MODE 10
79 #define CONF_MOD_NOSELECT 11
80 #define CONF_MOD_TRUE 12
81 #define CONF_MOD_PREEMPT 13
82 #define CONF_MOD_DYNAMIC 14
85 * "restrict" modifier keywords
87 #define CONF_RES_MASK 1
88 #define CONF_RES_IGNORE 2
89 #define CONF_RES_NOSERVE 3
90 #define CONF_RES_NOTRUST 4
91 #define CONF_RES_NOQUERY 5
92 #define CONF_RES_NOMODIFY 6
93 #define CONF_RES_NOPEER 7
94 #define CONF_RES_NOTRAP 8
95 #define CONF_RES_LPTRAP 9
96 #define CONF_RES_NTPPORT 10
97 #define CONF_RES_LIMITED 11
98 #define CONF_RES_VERSION 12
99 #define CONF_RES_DEMOBILIZE 13
102 * "trap" modifier keywords
104 #define CONF_TRAP_PORT 1
105 #define CONF_TRAP_INTERFACE 2
108 * "fudge" modifier keywords
110 #define CONF_FDG_TIME1 1
111 #define CONF_FDG_TIME2 2
112 #define CONF_FDG_STRATUM 3
113 #define CONF_FDG_REFID 4
114 #define CONF_FDG_FLAG1 5
115 #define CONF_FDG_FLAG2 6
116 #define CONF_FDG_FLAG3 7
117 #define CONF_FDG_FLAG4 8
120 * "filegen" modifier keywords
122 #define CONF_FGEN_FILE 1
123 #define CONF_FGEN_TYPE 2
124 #define CONF_FGEN_FLAG_LINK 3
125 #define CONF_FGEN_FLAG_NOLINK 4
126 #define CONF_FGEN_FLAG_ENABLE 5
127 #define CONF_FGEN_FLAG_DISABLE 6
130 * "discard" modifier keywords
132 #define CONF_DISCARD_AVERAGE 1
133 #define CONF_DISCARD_MINIMUM 2
134 #define CONF_DISCARD_MONITOR 3
137 * "tinker" modifier keywords
139 #define CONF_CLOCK_MAX 1
140 #define CONF_CLOCK_PANIC 2
141 #define CONF_CLOCK_PHI 3
142 #define CONF_CLOCK_MINSTEP 4
143 #define CONF_CLOCK_ALLAN 5
144 #define CONF_CLOCK_HUFFPUFF 6
145 #define CONF_CLOCK_FREQ 7
148 * "tos" modifier keywords
150 #define CONF_TOS_MINCLOCK 1
151 #define CONF_TOS_MAXCLOCK 2
152 #define CONF_TOS_MINSANE 3
153 #define CONF_TOS_FLOOR 4
154 #define CONF_TOS_CEILING 5
155 #define CONF_TOS_COHORT 6
156 #define CONF_TOS_MINDISP 7
157 #define CONF_TOS_MAXDIST 8
158 #define CONF_TOS_MAXHOP 9
159 #define CONF_TOS_BEACON 10
160 #define CONF_TOS_ORPHAN 11
164 * "crypto" modifier keywords
166 #define CONF_CRYPTO_RSA 1
167 #define CONF_CRYPTO_SIGN 2
168 #define CONF_CRYPTO_LEAP 3
169 #define CONF_CRYPTO_CERT 4
170 #define CONF_CRYPTO_RAND 5
171 #define CONF_CRYPTO_KEYS 6
172 #define CONF_CRYPTO_IDENT 7
173 #define CONF_CRYPTO_IFFPAR 8
174 #define CONF_CRYPTO_GQPAR 9
175 #define CONF_CRYPTO_MVPAR 10
176 #define CONF_CRYPTO_PW 11
180 * Address selection, IPv4 or IPv6
182 #define CONF_ADDR_IPV4 1
183 #define CONF_ADDR_IPV6 2