aboutsummaryrefslogtreecommitdiff
path: root/ntpdc/layout.std
blob: f07f79f36f16b7813ce46f6a179f8d0b9c29aeef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
sizeof(union req_data_u_tag) = 176
offsetof(u32) = 0
offsetof(data) = 0

sizeof(struct req_pkt) = 216
offsetof(rm_vn_mode) = 0
offsetof(auth_seq) = 1
offsetof(implementation) = 2
offsetof(request) = 3
offsetof(err_nitems) = 4
offsetof(mbz_itemsize) = 6
offsetof(u) = 8
offsetof(tstamp) = 184
offsetof(keyid) = 192
offsetof(mac) = 196

sizeof(struct req_pkt_tail) = 32
offsetof(tstamp) = 0
offsetof(keyid) = 8
offsetof(mac) = 12

sizeof(union resp_pkt_u_tag) = 500
offsetof(data) = 0
offsetof(u32) = 0

sizeof(struct resp_pkt) = 508
offsetof(rm_vn_mode) = 0
offsetof(auth_seq) = 1
offsetof(implementation) = 2
offsetof(request) = 3
offsetof(err_nitems) = 4
offsetof(mbz_itemsize) = 6
offsetof(u) = 8

sizeof(struct info_peer_list) = 32
offsetof(addr) = 0
offsetof(port) = 4
offsetof(hmode) = 6
offsetof(flags) = 7
offsetof(v6_flag) = 8
offsetof(unused1) = 12
offsetof(addr6) = 16

sizeof(struct info_peer_summary) = 72
offsetof(dstadr) = 0
offsetof(srcadr) = 4
offsetof(srcport) = 8
offsetof(stratum) = 10
offsetof(hpoll) = 11
offsetof(ppoll) = 12
offsetof(reach) = 13
offsetof(flags) = 14
offsetof(hmode) = 15
offsetof(delay) = 16
offsetof(offset) = 20
offsetof(dispersion) = 28
offsetof(v6_flag) = 32
offsetof(unused1) = 36
offsetof(dstadr6) = 40
offsetof(srcadr6) = 56

sizeof(struct info_peer) = 280
offsetof(dstadr) = 0
offsetof(srcadr) = 4
offsetof(srcport) = 8
offsetof(flags) = 10
offsetof(leap) = 11
offsetof(hmode) = 12
offsetof(pmode) = 13
offsetof(stratum) = 14
offsetof(ppoll) = 15
offsetof(hpoll) = 16
offsetof(precision) = 17
offsetof(version) = 18
offsetof(unused8) = 19
offsetof(reach) = 20
offsetof(unreach) = 21
offsetof(flash) = 22
offsetof(ttl) = 23
offsetof(flash2) = 24
offsetof(associd) = 26
offsetof(keyid) = 28
offsetof(pkeyid) = 32
offsetof(refid) = 36
offsetof(timer) = 40
offsetof(rootdelay) = 44
offsetof(rootdispersion) = 48
offsetof(reftime) = 52
offsetof(org) = 60
offsetof(rec) = 68
offsetof(xmt) = 76
offsetof(filtdelay) = 84
offsetof(filtoffset) = 116
offsetof(order) = 180
offsetof(delay) = 188
offsetof(dispersion) = 192
offsetof(offset) = 196
offsetof(selectdisp) = 204
offsetof(unused1) = 208
offsetof(unused2) = 212
offsetof(unused3) = 216
offsetof(unused4) = 220
offsetof(unused5) = 224
offsetof(unused6) = 228
offsetof(unused7) = 232
offsetof(estbdelay) = 236
offsetof(v6_flag) = 240
offsetof(unused9) = 244
offsetof(dstadr6) = 248
offsetof(srcadr6) = 264

sizeof(struct info_peer_stats) = 120
offsetof(dstadr) = 0
offsetof(srcadr) = 4
offsetof(srcport) = 8
offsetof(flags) = 10
offsetof(timereset) = 12
offsetof(timereceived) = 16
offsetof(timetosend) = 20
offsetof(timereachable) = 24
offsetof(sent) = 28
offsetof(unused1) = 32
offsetof(processed) = 36
offsetof(unused2) = 40
offsetof(badauth) = 44
offsetof(bogusorg) = 48
offsetof(oldpkt) = 52
offsetof(unused3) = 56
offsetof(unused4) = 60
offsetof(seldisp) = 64
offsetof(selbroken) = 68
offsetof(unused5) = 72
offsetof(candidate) = 76
offsetof(unused6) = 77
offsetof(unused7) = 78
offsetof(unused8) = 79
offsetof(v6_flag) = 80
offsetof(unused9) = 84
offsetof(dstadr6) = 88
offsetof(srcadr6) = 104

sizeof(struct info_loop) = 24
offsetof(last_offset) = 0
offsetof(drift_comp) = 8
offsetof(compliance) = 16
offsetof(watchdog_timer) = 20

sizeof(struct info_sys) = 80
offsetof(peer) = 0
offsetof(peer_mode) = 4
offsetof(leap) = 5
offsetof(stratum) = 6
offsetof(precision) = 7
offsetof(rootdelay) = 8
offsetof(rootdispersion) = 12
offsetof(refid) = 16
offsetof(reftime) = 20
offsetof(poll) = 28
offsetof(flags) = 32
offsetof(unused1) = 33
offsetof(unused2) = 34
offsetof(unused3) = 35
offsetof(bdelay) = 36
offsetof(frequency) = 40
offsetof(authdelay) = 44
offsetof(stability) = 52
offsetof(v6_flag) = 56
offsetof(unused4) = 60
offsetof(peer6) = 64

sizeof(struct info_sys_stats) = 52
offsetof(timeup) = 0
offsetof(timereset) = 4
offsetof(denied) = 8
offsetof(oldversionpkt) = 12
offsetof(newversionpkt) = 16
offsetof(unknownversion) = 20
offsetof(badlength) = 24
offsetof(processed) = 28
offsetof(badauth) = 32
offsetof(received) = 36
offsetof(limitrejected) = 40
offsetof(lamport) = 44
offsetof(tsrounding) = 48

sizeof(struct old_info_sys_stats) = 40
offsetof(timeup) = 0
offsetof(timereset) = 4
offsetof(denied) = 8
offsetof(oldversionpkt) = 12
offsetof(newversionpkt) = 16
offsetof(unknownversion) = 20
offsetof(badlength) = 24
offsetof(processed) = 28
offsetof(badauth) = 32
offsetof(wanderhold) = 36

sizeof(struct info_mem_stats) = 148
offsetof(timereset) = 0
offsetof(totalpeermem) = 4
offsetof(freepeermem) = 6
offsetof(findpeer_calls) = 8
offsetof(allocations) = 12
offsetof(demobilizations) = 16
offsetof(hashcount) = 20

sizeof(struct info_io_stats) = 40
offsetof(timereset) = 0
offsetof(totalrecvbufs) = 4
offsetof(freerecvbufs) = 6
offsetof(fullrecvbufs) = 8
offsetof(lowwater) = 10
offsetof(dropped) = 12
offsetof(ignored) = 16
offsetof(received) = 20
offsetof(sent) = 24
offsetof(notsent) = 28
offsetof(interrupts) = 32
offsetof(int_received) = 36

sizeof(struct info_timer_stats) = 16
offsetof(timereset) = 0
offsetof(alarms) = 4
offsetof(overflows) = 8
offsetof(xmtcalls) = 12

sizeof(struct old_conf_peer) = 16
offsetof(peeraddr) = 0
offsetof(hmode) = 4
offsetof(version) = 5
offsetof(minpoll) = 6
offsetof(maxpoll) = 7
offsetof(flags) = 8
offsetof(ttl) = 9
offsetof(unused) = 10
offsetof(keyid) = 12

sizeof(struct conf_peer) = 168
offsetof(peeraddr) = 0
offsetof(hmode) = 4
offsetof(version) = 5
offsetof(minpoll) = 6
offsetof(maxpoll) = 7
offsetof(flags) = 8
offsetof(ttl) = 9
offsetof(unused1) = 10
offsetof(keyid) = 12
offsetof(keystr) = 16
offsetof(v6_flag) = 144
offsetof(unused2) = 148
offsetof(peeraddr6) = 152

sizeof(struct conf_unpeer) = 24
offsetof(peeraddr) = 0
offsetof(v6_flag) = 4
offsetof(peeraddr6) = 8

sizeof(struct conf_sys_flags) = 4
offsetof(flags) = 0

sizeof(struct info_restrict) = 56
offsetof(addr) = 0
offsetof(mask) = 4
offsetof(count) = 8
offsetof(rflags) = 12
offsetof(mflags) = 14
offsetof(v6_flag) = 16
offsetof(unused1) = 20
offsetof(addr6) = 24
offsetof(mask6) = 40

sizeof(struct conf_restrict) = 52
offsetof(addr) = 0
offsetof(mask) = 4
offsetof(ippeerlimit) = 8
offsetof(flags) = 10
offsetof(mflags) = 12
offsetof(v6_flag) = 16
offsetof(addr6) = 20
offsetof(mask6) = 36

sizeof(struct info_monitor_1) = 72
offsetof(avg_int) = 0
offsetof(last_int) = 4
offsetof(restr) = 8
offsetof(count) = 12
offsetof(addr) = 16
offsetof(daddr) = 20
offsetof(flags) = 24
offsetof(port) = 28
offsetof(mode) = 30
offsetof(version) = 31
offsetof(v6_flag) = 32
offsetof(unused1) = 36
offsetof(addr6) = 40
offsetof(daddr6) = 56

sizeof(struct info_monitor) = 48
offsetof(avg_int) = 0
offsetof(last_int) = 4
offsetof(restr) = 8
offsetof(count) = 12
offsetof(addr) = 16
offsetof(port) = 20
offsetof(mode) = 22
offsetof(version) = 23
offsetof(v6_flag) = 24
offsetof(unused1) = 28
offsetof(addr6) = 32

sizeof(struct old_info_monitor) = 40
offsetof(lasttime) = 0
offsetof(firsttime) = 4
offsetof(count) = 8
offsetof(addr) = 12
offsetof(port) = 16
offsetof(mode) = 18
offsetof(version) = 19
offsetof(v6_flag) = 20
offsetof(addr6) = 24

sizeof(struct reset_flags) = 4
offsetof(flags) = 0

sizeof(struct info_auth) = 36
offsetof(timereset) = 0
offsetof(numkeys) = 4
offsetof(numfreekeys) = 8
offsetof(keylookups) = 12
offsetof(keynotfound) = 16
offsetof(encryptions) = 20
offsetof(decryptions) = 24
offsetof(expired) = 28
offsetof(keyuncached) = 32

sizeof(struct info_trap) = 64
offsetof(local_address) = 0
offsetof(trap_address) = 4
offsetof(trap_port) = 8
offsetof(sequence) = 10
offsetof(settime) = 12
offsetof(origtime) = 16
offsetof(resets) = 20
offsetof(flags) = 24
offsetof(v6_flag) = 28
offsetof(local_address6) = 32
offsetof(trap_address6) = 48

sizeof(struct conf_trap) = 48
offsetof(local_address) = 0
offsetof(trap_address) = 4
offsetof(trap_port) = 8
offsetof(unused) = 10
offsetof(v6_flag) = 12
offsetof(local_address6) = 16
offsetof(trap_address6) = 32

sizeof(struct info_control) = 60
offsetof(ctltimereset) = 0
offsetof(numctlreq) = 4
offsetof(numctlbadpkts) = 8
offsetof(numctlresponses) = 12
offsetof(numctlfrags) = 16
offsetof(numctlerrors) = 20
offsetof(numctltooshort) = 24
offsetof(numctlinputresp) = 28
offsetof(numctlinputfrag) = 32
offsetof(numctlinputerr) = 36
offsetof(numctlbadoffset) = 40
offsetof(numctlbadversion) = 44
offsetof(numctldatatooshort) = 48
offsetof(numctlbadop) = 52
offsetof(numasyncmsgs) = 56

sizeof(struct info_clock) = 52
offsetof(clockadr) = 0
offsetof(type) = 4
offsetof(flags) = 5
offsetof(lastevent) = 6
offsetof(currentstatus) = 7
offsetof(polls) = 8
offsetof(noresponse) = 12
offsetof(badformat) = 16
offsetof(baddata) = 20
offsetof(timestarted) = 24
offsetof(fudgetime1) = 28
offsetof(fudgetime2) = 36
offsetof(fudgeval1) = 44
offsetof(fudgeval2) = 48

sizeof(struct conf_fudge) = 20
offsetof(clockadr) = 0
offsetof(which) = 4
offsetof(fudgetime) = 8
offsetof(fudgeval_flags) = 16

sizeof(struct info_clkbug) = 332
offsetof(clockadr) = 0
offsetof(nvalues) = 4
offsetof(ntimes) = 5
offsetof(svalues) = 6
offsetof(stimes) = 8
offsetof(values) = 12
offsetof(times) = 76

sizeof(struct info_kernel) = 60
offsetof(offset) = 0
offsetof(freq) = 4
offsetof(maxerror) = 8
offsetof(esterror) = 12
offsetof(status) = 16
offsetof(shift) = 18
offsetof(constant) = 20
offsetof(precision) = 24
offsetof(tolerance) = 28
offsetof(ppsfreq) = 32
offsetof(jitter) = 36
offsetof(stabil) = 40
offsetof(jitcnt) = 44
offsetof(calcnt) = 48
offsetof(errcnt) = 52
offsetof(stbcnt) = 56

sizeof(struct info_if_stats) = 136
offsetof(unaddr) = 0
offsetof(unbcast) = 16
offsetof(unmask) = 32
offsetof(v6_flag) = 48
offsetof(name) = 52
offsetof(flags) = 84
offsetof(last_ttl) = 88
offsetof(num_mcast) = 92
offsetof(received) = 96
offsetof(sent) = 100
offsetof(notsent) = 104
offsetof(uptime) = 108
offsetof(scopeid) = 112
offsetof(ifindex) = 116
offsetof(ifnum) = 120
offsetof(peercnt) = 124
offsetof(family) = 128
offsetof(ignore_packets) = 130
offsetof(action) = 131
offsetof(_filler0) = 132

sizeof(struct info_dns_assoc) = 32
offsetof(peeraddr) = 0
offsetof(associd) = 4
offsetof(hostname) = 6