xref: /freebsd/usr.sbin/ntp/ntpdc/nl.c (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
1   printf("sizeof(union req_data_u_tag) = %d\n",
2 	 (int) sizeof(union req_data_u_tag));
3   printf("offsetof(u32) = %d\n",
4 	 (int) offsetof(union req_data_u_tag, u32));
5   printf("offsetof(data) = %d\n",
6 	 (int) offsetof(union req_data_u_tag, data));
7   printf("\n");
8 
9   printf("sizeof(struct req_pkt) = %d\n",
10 	 (int) sizeof(struct req_pkt));
11   printf("offsetof(rm_vn_mode) = %d\n",
12 	 (int) offsetof(struct req_pkt, rm_vn_mode));
13   printf("offsetof(auth_seq) = %d\n",
14 	 (int) offsetof(struct req_pkt, auth_seq));
15   printf("offsetof(implementation) = %d\n",
16 	 (int) offsetof(struct req_pkt, implementation));
17   printf("offsetof(request) = %d\n",
18 	 (int) offsetof(struct req_pkt, request));
19   printf("offsetof(err_nitems) = %d\n",
20 	 (int) offsetof(struct req_pkt, err_nitems));
21   printf("offsetof(mbz_itemsize) = %d\n",
22 	 (int) offsetof(struct req_pkt, mbz_itemsize));
23   printf("offsetof(u) = %d\n",
24 	 (int) offsetof(struct req_pkt, u));
25   printf("offsetof(tstamp) = %d\n",
26 	 (int) offsetof(struct req_pkt, tstamp));
27   printf("offsetof(keyid) = %d\n",
28 	 (int) offsetof(struct req_pkt, keyid));
29   printf("offsetof(mac) = %d\n",
30 	 (int) offsetof(struct req_pkt, mac));
31   printf("\n");
32 
33   printf("sizeof(struct req_pkt_tail) = %d\n",
34 	 (int) sizeof(struct req_pkt_tail));
35   printf("offsetof(tstamp) = %d\n",
36 	 (int) offsetof(struct req_pkt_tail, tstamp));
37   printf("offsetof(keyid) = %d\n",
38 	 (int) offsetof(struct req_pkt_tail, keyid));
39   printf("offsetof(mac) = %d\n",
40 	 (int) offsetof(struct req_pkt_tail, mac));
41   printf("\n");
42 
43   printf("sizeof(union resp_pkt_u_tag) = %d\n",
44 	 (int) sizeof(union resp_pkt_u_tag));
45   printf("offsetof(data) = %d\n",
46 	 (int) offsetof(union resp_pkt_u_tag, data));
47   printf("offsetof(u32) = %d\n",
48 	 (int) offsetof(union resp_pkt_u_tag, u32));
49   printf("\n");
50 
51   printf("sizeof(struct resp_pkt) = %d\n",
52 	 (int) sizeof(struct resp_pkt));
53   printf("offsetof(rm_vn_mode) = %d\n",
54 	 (int) offsetof(struct resp_pkt, rm_vn_mode));
55   printf("offsetof(auth_seq) = %d\n",
56 	 (int) offsetof(struct resp_pkt, auth_seq));
57   printf("offsetof(implementation) = %d\n",
58 	 (int) offsetof(struct resp_pkt, implementation));
59   printf("offsetof(request) = %d\n",
60 	 (int) offsetof(struct resp_pkt, request));
61   printf("offsetof(err_nitems) = %d\n",
62 	 (int) offsetof(struct resp_pkt, err_nitems));
63   printf("offsetof(mbz_itemsize) = %d\n",
64 	 (int) offsetof(struct resp_pkt, mbz_itemsize));
65   printf("offsetof(u) = %d\n",
66 	 (int) offsetof(struct resp_pkt, u));
67   printf("\n");
68 
69   printf("sizeof(struct info_peer_list) = %d\n",
70 	 (int) sizeof(struct info_peer_list));
71   printf("offsetof(addr) = %d\n",
72 	 (int) offsetof(struct info_peer_list, addr));
73   printf("offsetof(port) = %d\n",
74 	 (int) offsetof(struct info_peer_list, port));
75   printf("offsetof(hmode) = %d\n",
76 	 (int) offsetof(struct info_peer_list, hmode));
77   printf("offsetof(flags) = %d\n",
78 	 (int) offsetof(struct info_peer_list, flags));
79   printf("offsetof(v6_flag) = %d\n",
80 	 (int) offsetof(struct info_peer_list, v6_flag));
81   printf("offsetof(unused1) = %d\n",
82 	 (int) offsetof(struct info_peer_list, unused1));
83   printf("offsetof(addr6) = %d\n",
84 	 (int) offsetof(struct info_peer_list, addr6));
85   printf("\n");
86 
87   printf("sizeof(struct info_peer_summary) = %d\n",
88 	 (int) sizeof(struct info_peer_summary));
89   printf("offsetof(dstadr) = %d\n",
90 	 (int) offsetof(struct info_peer_summary, dstadr));
91   printf("offsetof(srcadr) = %d\n",
92 	 (int) offsetof(struct info_peer_summary, srcadr));
93   printf("offsetof(srcport) = %d\n",
94 	 (int) offsetof(struct info_peer_summary, srcport));
95   printf("offsetof(stratum) = %d\n",
96 	 (int) offsetof(struct info_peer_summary, stratum));
97   printf("offsetof(hpoll) = %d\n",
98 	 (int) offsetof(struct info_peer_summary, hpoll));
99   printf("offsetof(ppoll) = %d\n",
100 	 (int) offsetof(struct info_peer_summary, ppoll));
101   printf("offsetof(reach) = %d\n",
102 	 (int) offsetof(struct info_peer_summary, reach));
103   printf("offsetof(flags) = %d\n",
104 	 (int) offsetof(struct info_peer_summary, flags));
105   printf("offsetof(hmode) = %d\n",
106 	 (int) offsetof(struct info_peer_summary, hmode));
107   printf("offsetof(delay) = %d\n",
108 	 (int) offsetof(struct info_peer_summary, delay));
109   printf("offsetof(offset) = %d\n",
110 	 (int) offsetof(struct info_peer_summary, offset));
111   printf("offsetof(dispersion) = %d\n",
112 	 (int) offsetof(struct info_peer_summary, dispersion));
113   printf("offsetof(v6_flag) = %d\n",
114 	 (int) offsetof(struct info_peer_summary, v6_flag));
115   printf("offsetof(unused1) = %d\n",
116 	 (int) offsetof(struct info_peer_summary, unused1));
117   printf("offsetof(dstadr6) = %d\n",
118 	 (int) offsetof(struct info_peer_summary, dstadr6));
119   printf("offsetof(srcadr6) = %d\n",
120 	 (int) offsetof(struct info_peer_summary, srcadr6));
121   printf("\n");
122 
123   printf("sizeof(struct info_peer) = %d\n",
124 	 (int) sizeof(struct info_peer));
125   printf("offsetof(dstadr) = %d\n",
126 	 (int) offsetof(struct info_peer, dstadr));
127   printf("offsetof(srcadr) = %d\n",
128 	 (int) offsetof(struct info_peer, srcadr));
129   printf("offsetof(srcport) = %d\n",
130 	 (int) offsetof(struct info_peer, srcport));
131   printf("offsetof(flags) = %d\n",
132 	 (int) offsetof(struct info_peer, flags));
133   printf("offsetof(leap) = %d\n",
134 	 (int) offsetof(struct info_peer, leap));
135   printf("offsetof(hmode) = %d\n",
136 	 (int) offsetof(struct info_peer, hmode));
137   printf("offsetof(pmode) = %d\n",
138 	 (int) offsetof(struct info_peer, pmode));
139   printf("offsetof(stratum) = %d\n",
140 	 (int) offsetof(struct info_peer, stratum));
141   printf("offsetof(ppoll) = %d\n",
142 	 (int) offsetof(struct info_peer, ppoll));
143   printf("offsetof(hpoll) = %d\n",
144 	 (int) offsetof(struct info_peer, hpoll));
145   printf("offsetof(precision) = %d\n",
146 	 (int) offsetof(struct info_peer, precision));
147   printf("offsetof(version) = %d\n",
148 	 (int) offsetof(struct info_peer, version));
149   printf("offsetof(unused8) = %d\n",
150 	 (int) offsetof(struct info_peer, unused8));
151   printf("offsetof(reach) = %d\n",
152 	 (int) offsetof(struct info_peer, reach));
153   printf("offsetof(unreach) = %d\n",
154 	 (int) offsetof(struct info_peer, unreach));
155   printf("offsetof(flash) = %d\n",
156 	 (int) offsetof(struct info_peer, flash));
157   printf("offsetof(ttl) = %d\n",
158 	 (int) offsetof(struct info_peer, ttl));
159   printf("offsetof(flash2) = %d\n",
160 	 (int) offsetof(struct info_peer, flash2));
161   printf("offsetof(associd) = %d\n",
162 	 (int) offsetof(struct info_peer, associd));
163   printf("offsetof(keyid) = %d\n",
164 	 (int) offsetof(struct info_peer, keyid));
165   printf("offsetof(pkeyid) = %d\n",
166 	 (int) offsetof(struct info_peer, pkeyid));
167   printf("offsetof(refid) = %d\n",
168 	 (int) offsetof(struct info_peer, refid));
169   printf("offsetof(timer) = %d\n",
170 	 (int) offsetof(struct info_peer, timer));
171   printf("offsetof(rootdelay) = %d\n",
172 	 (int) offsetof(struct info_peer, rootdelay));
173   printf("offsetof(rootdispersion) = %d\n",
174 	 (int) offsetof(struct info_peer, rootdispersion));
175   printf("offsetof(reftime) = %d\n",
176 	 (int) offsetof(struct info_peer, reftime));
177   printf("offsetof(org) = %d\n",
178 	 (int) offsetof(struct info_peer, org));
179   printf("offsetof(rec) = %d\n",
180 	 (int) offsetof(struct info_peer, rec));
181   printf("offsetof(xmt) = %d\n",
182 	 (int) offsetof(struct info_peer, xmt));
183   printf("offsetof(filtdelay) = %d\n",
184 	 (int) offsetof(struct info_peer, filtdelay));
185   printf("offsetof(filtoffset) = %d\n",
186 	 (int) offsetof(struct info_peer, filtoffset));
187   printf("offsetof(order) = %d\n",
188 	 (int) offsetof(struct info_peer, order));
189   printf("offsetof(delay) = %d\n",
190 	 (int) offsetof(struct info_peer, delay));
191   printf("offsetof(dispersion) = %d\n",
192 	 (int) offsetof(struct info_peer, dispersion));
193   printf("offsetof(offset) = %d\n",
194 	 (int) offsetof(struct info_peer, offset));
195   printf("offsetof(selectdisp) = %d\n",
196 	 (int) offsetof(struct info_peer, selectdisp));
197   printf("offsetof(unused1) = %d\n",
198 	 (int) offsetof(struct info_peer, unused1));
199   printf("offsetof(unused2) = %d\n",
200 	 (int) offsetof(struct info_peer, unused2));
201   printf("offsetof(unused3) = %d\n",
202 	 (int) offsetof(struct info_peer, unused3));
203   printf("offsetof(unused4) = %d\n",
204 	 (int) offsetof(struct info_peer, unused4));
205   printf("offsetof(unused5) = %d\n",
206 	 (int) offsetof(struct info_peer, unused5));
207   printf("offsetof(unused6) = %d\n",
208 	 (int) offsetof(struct info_peer, unused6));
209   printf("offsetof(unused7) = %d\n",
210 	 (int) offsetof(struct info_peer, unused7));
211   printf("offsetof(estbdelay) = %d\n",
212 	 (int) offsetof(struct info_peer, estbdelay));
213   printf("offsetof(v6_flag) = %d\n",
214 	 (int) offsetof(struct info_peer, v6_flag));
215   printf("offsetof(unused9) = %d\n",
216 	 (int) offsetof(struct info_peer, unused9));
217   printf("offsetof(dstadr6) = %d\n",
218 	 (int) offsetof(struct info_peer, dstadr6));
219   printf("offsetof(srcadr6) = %d\n",
220 	 (int) offsetof(struct info_peer, srcadr6));
221   printf("\n");
222 
223   printf("sizeof(struct info_peer_stats) = %d\n",
224 	 (int) sizeof(struct info_peer_stats));
225   printf("offsetof(dstadr) = %d\n",
226 	 (int) offsetof(struct info_peer_stats, dstadr));
227   printf("offsetof(srcadr) = %d\n",
228 	 (int) offsetof(struct info_peer_stats, srcadr));
229   printf("offsetof(srcport) = %d\n",
230 	 (int) offsetof(struct info_peer_stats, srcport));
231   printf("offsetof(flags) = %d\n",
232 	 (int) offsetof(struct info_peer_stats, flags));
233   printf("offsetof(timereset) = %d\n",
234 	 (int) offsetof(struct info_peer_stats, timereset));
235   printf("offsetof(timereceived) = %d\n",
236 	 (int) offsetof(struct info_peer_stats, timereceived));
237   printf("offsetof(timetosend) = %d\n",
238 	 (int) offsetof(struct info_peer_stats, timetosend));
239   printf("offsetof(timereachable) = %d\n",
240 	 (int) offsetof(struct info_peer_stats, timereachable));
241   printf("offsetof(sent) = %d\n",
242 	 (int) offsetof(struct info_peer_stats, sent));
243   printf("offsetof(unused1) = %d\n",
244 	 (int) offsetof(struct info_peer_stats, unused1));
245   printf("offsetof(processed) = %d\n",
246 	 (int) offsetof(struct info_peer_stats, processed));
247   printf("offsetof(unused2) = %d\n",
248 	 (int) offsetof(struct info_peer_stats, unused2));
249   printf("offsetof(badauth) = %d\n",
250 	 (int) offsetof(struct info_peer_stats, badauth));
251   printf("offsetof(bogusorg) = %d\n",
252 	 (int) offsetof(struct info_peer_stats, bogusorg));
253   printf("offsetof(oldpkt) = %d\n",
254 	 (int) offsetof(struct info_peer_stats, oldpkt));
255   printf("offsetof(unused3) = %d\n",
256 	 (int) offsetof(struct info_peer_stats, unused3));
257   printf("offsetof(unused4) = %d\n",
258 	 (int) offsetof(struct info_peer_stats, unused4));
259   printf("offsetof(seldisp) = %d\n",
260 	 (int) offsetof(struct info_peer_stats, seldisp));
261   printf("offsetof(selbroken) = %d\n",
262 	 (int) offsetof(struct info_peer_stats, selbroken));
263   printf("offsetof(unused5) = %d\n",
264 	 (int) offsetof(struct info_peer_stats, unused5));
265   printf("offsetof(candidate) = %d\n",
266 	 (int) offsetof(struct info_peer_stats, candidate));
267   printf("offsetof(unused6) = %d\n",
268 	 (int) offsetof(struct info_peer_stats, unused6));
269   printf("offsetof(unused7) = %d\n",
270 	 (int) offsetof(struct info_peer_stats, unused7));
271   printf("offsetof(unused8) = %d\n",
272 	 (int) offsetof(struct info_peer_stats, unused8));
273   printf("offsetof(v6_flag) = %d\n",
274 	 (int) offsetof(struct info_peer_stats, v6_flag));
275   printf("offsetof(unused9) = %d\n",
276 	 (int) offsetof(struct info_peer_stats, unused9));
277   printf("offsetof(dstadr6) = %d\n",
278 	 (int) offsetof(struct info_peer_stats, dstadr6));
279   printf("offsetof(srcadr6) = %d\n",
280 	 (int) offsetof(struct info_peer_stats, srcadr6));
281   printf("\n");
282 
283   printf("sizeof(struct info_loop) = %d\n",
284 	 (int) sizeof(struct info_loop));
285   printf("offsetof(last_offset) = %d\n",
286 	 (int) offsetof(struct info_loop, last_offset));
287   printf("offsetof(drift_comp) = %d\n",
288 	 (int) offsetof(struct info_loop, drift_comp));
289   printf("offsetof(compliance) = %d\n",
290 	 (int) offsetof(struct info_loop, compliance));
291   printf("offsetof(watchdog_timer) = %d\n",
292 	 (int) offsetof(struct info_loop, watchdog_timer));
293   printf("\n");
294 
295   printf("sizeof(struct info_sys) = %d\n",
296 	 (int) sizeof(struct info_sys));
297   printf("offsetof(peer) = %d\n",
298 	 (int) offsetof(struct info_sys, peer));
299   printf("offsetof(peer_mode) = %d\n",
300 	 (int) offsetof(struct info_sys, peer_mode));
301   printf("offsetof(leap) = %d\n",
302 	 (int) offsetof(struct info_sys, leap));
303   printf("offsetof(stratum) = %d\n",
304 	 (int) offsetof(struct info_sys, stratum));
305   printf("offsetof(precision) = %d\n",
306 	 (int) offsetof(struct info_sys, precision));
307   printf("offsetof(rootdelay) = %d\n",
308 	 (int) offsetof(struct info_sys, rootdelay));
309   printf("offsetof(rootdispersion) = %d\n",
310 	 (int) offsetof(struct info_sys, rootdispersion));
311   printf("offsetof(refid) = %d\n",
312 	 (int) offsetof(struct info_sys, refid));
313   printf("offsetof(reftime) = %d\n",
314 	 (int) offsetof(struct info_sys, reftime));
315   printf("offsetof(poll) = %d\n",
316 	 (int) offsetof(struct info_sys, poll));
317   printf("offsetof(flags) = %d\n",
318 	 (int) offsetof(struct info_sys, flags));
319   printf("offsetof(unused1) = %d\n",
320 	 (int) offsetof(struct info_sys, unused1));
321   printf("offsetof(unused2) = %d\n",
322 	 (int) offsetof(struct info_sys, unused2));
323   printf("offsetof(unused3) = %d\n",
324 	 (int) offsetof(struct info_sys, unused3));
325   printf("offsetof(bdelay) = %d\n",
326 	 (int) offsetof(struct info_sys, bdelay));
327   printf("offsetof(frequency) = %d\n",
328 	 (int) offsetof(struct info_sys, frequency));
329   printf("offsetof(authdelay) = %d\n",
330 	 (int) offsetof(struct info_sys, authdelay));
331   printf("offsetof(stability) = %d\n",
332 	 (int) offsetof(struct info_sys, stability));
333   printf("offsetof(v6_flag) = %d\n",
334 	 (int) offsetof(struct info_sys, v6_flag));
335   printf("offsetof(unused4) = %d\n",
336 	 (int) offsetof(struct info_sys, unused4));
337   printf("offsetof(peer6) = %d\n",
338 	 (int) offsetof(struct info_sys, peer6));
339   printf("\n");
340 
341   printf("sizeof(struct info_sys_stats) = %d\n",
342 	 (int) sizeof(struct info_sys_stats));
343   printf("offsetof(timeup) = %d\n",
344 	 (int) offsetof(struct info_sys_stats, timeup));
345   printf("offsetof(timereset) = %d\n",
346 	 (int) offsetof(struct info_sys_stats, timereset));
347   printf("offsetof(denied) = %d\n",
348 	 (int) offsetof(struct info_sys_stats, denied));
349   printf("offsetof(oldversionpkt) = %d\n",
350 	 (int) offsetof(struct info_sys_stats, oldversionpkt));
351   printf("offsetof(newversionpkt) = %d\n",
352 	 (int) offsetof(struct info_sys_stats, newversionpkt));
353   printf("offsetof(unknownversion) = %d\n",
354 	 (int) offsetof(struct info_sys_stats, unknownversion));
355   printf("offsetof(badlength) = %d\n",
356 	 (int) offsetof(struct info_sys_stats, badlength));
357   printf("offsetof(processed) = %d\n",
358 	 (int) offsetof(struct info_sys_stats, processed));
359   printf("offsetof(badauth) = %d\n",
360 	 (int) offsetof(struct info_sys_stats, badauth));
361   printf("offsetof(received) = %d\n",
362 	 (int) offsetof(struct info_sys_stats, received));
363   printf("offsetof(limitrejected) = %d\n",
364 	 (int) offsetof(struct info_sys_stats, limitrejected));
365   printf("\n");
366 
367   printf("sizeof(struct old_info_sys_stats) = %d\n",
368 	 (int) sizeof(struct old_info_sys_stats));
369   printf("offsetof(timeup) = %d\n",
370 	 (int) offsetof(struct old_info_sys_stats, timeup));
371   printf("offsetof(timereset) = %d\n",
372 	 (int) offsetof(struct old_info_sys_stats, timereset));
373   printf("offsetof(denied) = %d\n",
374 	 (int) offsetof(struct old_info_sys_stats, denied));
375   printf("offsetof(oldversionpkt) = %d\n",
376 	 (int) offsetof(struct old_info_sys_stats, oldversionpkt));
377   printf("offsetof(newversionpkt) = %d\n",
378 	 (int) offsetof(struct old_info_sys_stats, newversionpkt));
379   printf("offsetof(unknownversion) = %d\n",
380 	 (int) offsetof(struct old_info_sys_stats, unknownversion));
381   printf("offsetof(badlength) = %d\n",
382 	 (int) offsetof(struct old_info_sys_stats, badlength));
383   printf("offsetof(processed) = %d\n",
384 	 (int) offsetof(struct old_info_sys_stats, processed));
385   printf("offsetof(badauth) = %d\n",
386 	 (int) offsetof(struct old_info_sys_stats, badauth));
387   printf("offsetof(wanderhold) = %d\n",
388 	 (int) offsetof(struct old_info_sys_stats, wanderhold));
389   printf("\n");
390 
391   printf("sizeof(struct info_mem_stats) = %d\n",
392 	 (int) sizeof(struct info_mem_stats));
393   printf("offsetof(timereset) = %d\n",
394 	 (int) offsetof(struct info_mem_stats, timereset));
395   printf("offsetof(totalpeermem) = %d\n",
396 	 (int) offsetof(struct info_mem_stats, totalpeermem));
397   printf("offsetof(freepeermem) = %d\n",
398 	 (int) offsetof(struct info_mem_stats, freepeermem));
399   printf("offsetof(findpeer_calls) = %d\n",
400 	 (int) offsetof(struct info_mem_stats, findpeer_calls));
401   printf("offsetof(allocations) = %d\n",
402 	 (int) offsetof(struct info_mem_stats, allocations));
403   printf("offsetof(demobilizations) = %d\n",
404 	 (int) offsetof(struct info_mem_stats, demobilizations));
405   printf("offsetof(hashcount) = %d\n",
406 	 (int) offsetof(struct info_mem_stats, hashcount));
407   printf("\n");
408 
409   printf("sizeof(struct info_io_stats) = %d\n",
410 	 (int) sizeof(struct info_io_stats));
411   printf("offsetof(timereset) = %d\n",
412 	 (int) offsetof(struct info_io_stats, timereset));
413   printf("offsetof(totalrecvbufs) = %d\n",
414 	 (int) offsetof(struct info_io_stats, totalrecvbufs));
415   printf("offsetof(freerecvbufs) = %d\n",
416 	 (int) offsetof(struct info_io_stats, freerecvbufs));
417   printf("offsetof(fullrecvbufs) = %d\n",
418 	 (int) offsetof(struct info_io_stats, fullrecvbufs));
419   printf("offsetof(lowwater) = %d\n",
420 	 (int) offsetof(struct info_io_stats, lowwater));
421   printf("offsetof(dropped) = %d\n",
422 	 (int) offsetof(struct info_io_stats, dropped));
423   printf("offsetof(ignored) = %d\n",
424 	 (int) offsetof(struct info_io_stats, ignored));
425   printf("offsetof(received) = %d\n",
426 	 (int) offsetof(struct info_io_stats, received));
427   printf("offsetof(sent) = %d\n",
428 	 (int) offsetof(struct info_io_stats, sent));
429   printf("offsetof(notsent) = %d\n",
430 	 (int) offsetof(struct info_io_stats, notsent));
431   printf("offsetof(interrupts) = %d\n",
432 	 (int) offsetof(struct info_io_stats, interrupts));
433   printf("offsetof(int_received) = %d\n",
434 	 (int) offsetof(struct info_io_stats, int_received));
435   printf("\n");
436 
437   printf("sizeof(struct info_timer_stats) = %d\n",
438 	 (int) sizeof(struct info_timer_stats));
439   printf("offsetof(timereset) = %d\n",
440 	 (int) offsetof(struct info_timer_stats, timereset));
441   printf("offsetof(alarms) = %d\n",
442 	 (int) offsetof(struct info_timer_stats, alarms));
443   printf("offsetof(overflows) = %d\n",
444 	 (int) offsetof(struct info_timer_stats, overflows));
445   printf("offsetof(xmtcalls) = %d\n",
446 	 (int) offsetof(struct info_timer_stats, xmtcalls));
447   printf("\n");
448 
449   printf("sizeof(struct old_conf_peer) = %d\n",
450 	 (int) sizeof(struct old_conf_peer));
451   printf("offsetof(peeraddr) = %d\n",
452 	 (int) offsetof(struct old_conf_peer, peeraddr));
453   printf("offsetof(hmode) = %d\n",
454 	 (int) offsetof(struct old_conf_peer, hmode));
455   printf("offsetof(version) = %d\n",
456 	 (int) offsetof(struct old_conf_peer, version));
457   printf("offsetof(minpoll) = %d\n",
458 	 (int) offsetof(struct old_conf_peer, minpoll));
459   printf("offsetof(maxpoll) = %d\n",
460 	 (int) offsetof(struct old_conf_peer, maxpoll));
461   printf("offsetof(flags) = %d\n",
462 	 (int) offsetof(struct old_conf_peer, flags));
463   printf("offsetof(ttl) = %d\n",
464 	 (int) offsetof(struct old_conf_peer, ttl));
465   printf("offsetof(unused) = %d\n",
466 	 (int) offsetof(struct old_conf_peer, unused));
467   printf("offsetof(keyid) = %d\n",
468 	 (int) offsetof(struct old_conf_peer, keyid));
469   printf("\n");
470 
471   printf("sizeof(struct conf_peer) = %d\n",
472 	 (int) sizeof(struct conf_peer));
473   printf("offsetof(peeraddr) = %d\n",
474 	 (int) offsetof(struct conf_peer, peeraddr));
475   printf("offsetof(hmode) = %d\n",
476 	 (int) offsetof(struct conf_peer, hmode));
477   printf("offsetof(version) = %d\n",
478 	 (int) offsetof(struct conf_peer, version));
479   printf("offsetof(minpoll) = %d\n",
480 	 (int) offsetof(struct conf_peer, minpoll));
481   printf("offsetof(maxpoll) = %d\n",
482 	 (int) offsetof(struct conf_peer, maxpoll));
483   printf("offsetof(flags) = %d\n",
484 	 (int) offsetof(struct conf_peer, flags));
485   printf("offsetof(ttl) = %d\n",
486 	 (int) offsetof(struct conf_peer, ttl));
487   printf("offsetof(unused1) = %d\n",
488 	 (int) offsetof(struct conf_peer, unused1));
489   printf("offsetof(keyid) = %d\n",
490 	 (int) offsetof(struct conf_peer, keyid));
491   printf("offsetof(keystr) = %d\n",
492 	 (int) offsetof(struct conf_peer, keystr));
493   printf("offsetof(v6_flag) = %d\n",
494 	 (int) offsetof(struct conf_peer, v6_flag));
495   printf("offsetof(unused2) = %d\n",
496 	 (int) offsetof(struct conf_peer, unused2));
497   printf("offsetof(peeraddr6) = %d\n",
498 	 (int) offsetof(struct conf_peer, peeraddr6));
499   printf("\n");
500 
501   printf("sizeof(struct conf_unpeer) = %d\n",
502 	 (int) sizeof(struct conf_unpeer));
503   printf("offsetof(peeraddr) = %d\n",
504 	 (int) offsetof(struct conf_unpeer, peeraddr));
505   printf("offsetof(v6_flag) = %d\n",
506 	 (int) offsetof(struct conf_unpeer, v6_flag));
507   printf("offsetof(peeraddr6) = %d\n",
508 	 (int) offsetof(struct conf_unpeer, peeraddr6));
509   printf("\n");
510 
511   printf("sizeof(struct conf_sys_flags) = %d\n",
512 	 (int) sizeof(struct conf_sys_flags));
513   printf("offsetof(flags) = %d\n",
514 	 (int) offsetof(struct conf_sys_flags, flags));
515   printf("\n");
516 
517   printf("sizeof(struct info_restrict) = %d\n",
518 	 (int) sizeof(struct info_restrict));
519   printf("offsetof(addr) = %d\n",
520 	 (int) offsetof(struct info_restrict, addr));
521   printf("offsetof(mask) = %d\n",
522 	 (int) offsetof(struct info_restrict, mask));
523   printf("offsetof(count) = %d\n",
524 	 (int) offsetof(struct info_restrict, count));
525   printf("offsetof(flags) = %d\n",
526 	 (int) offsetof(struct info_restrict, flags));
527   printf("offsetof(mflags) = %d\n",
528 	 (int) offsetof(struct info_restrict, mflags));
529   printf("offsetof(v6_flag) = %d\n",
530 	 (int) offsetof(struct info_restrict, v6_flag));
531   printf("offsetof(unused1) = %d\n",
532 	 (int) offsetof(struct info_restrict, unused1));
533   printf("offsetof(addr6) = %d\n",
534 	 (int) offsetof(struct info_restrict, addr6));
535   printf("offsetof(mask6) = %d\n",
536 	 (int) offsetof(struct info_restrict, mask6));
537   printf("\n");
538 
539   printf("sizeof(struct conf_restrict) = %d\n",
540 	 (int) sizeof(struct conf_restrict));
541   printf("offsetof(addr) = %d\n",
542 	 (int) offsetof(struct conf_restrict, addr));
543   printf("offsetof(mask) = %d\n",
544 	 (int) offsetof(struct conf_restrict, mask));
545   printf("offsetof(flags) = %d\n",
546 	 (int) offsetof(struct conf_restrict, flags));
547   printf("offsetof(mflags) = %d\n",
548 	 (int) offsetof(struct conf_restrict, mflags));
549   printf("offsetof(v6_flag) = %d\n",
550 	 (int) offsetof(struct conf_restrict, v6_flag));
551   printf("offsetof(addr6) = %d\n",
552 	 (int) offsetof(struct conf_restrict, addr6));
553   printf("offsetof(mask6) = %d\n",
554 	 (int) offsetof(struct conf_restrict, mask6));
555   printf("\n");
556 
557   printf("sizeof(struct info_monitor_1) = %d\n",
558 	 (int) sizeof(struct info_monitor_1));
559   printf("offsetof(avg_int) = %d\n",
560 	 (int) offsetof(struct info_monitor_1, avg_int));
561   printf("offsetof(last_int) = %d\n",
562 	 (int) offsetof(struct info_monitor_1, last_int));
563   printf("offsetof(restr) = %d\n",
564 	 (int) offsetof(struct info_monitor_1, restr));
565   printf("offsetof(count) = %d\n",
566 	 (int) offsetof(struct info_monitor_1, count));
567   printf("offsetof(addr) = %d\n",
568 	 (int) offsetof(struct info_monitor_1, addr));
569   printf("offsetof(daddr) = %d\n",
570 	 (int) offsetof(struct info_monitor_1, daddr));
571   printf("offsetof(flags) = %d\n",
572 	 (int) offsetof(struct info_monitor_1, flags));
573   printf("offsetof(port) = %d\n",
574 	 (int) offsetof(struct info_monitor_1, port));
575   printf("offsetof(mode) = %d\n",
576 	 (int) offsetof(struct info_monitor_1, mode));
577   printf("offsetof(version) = %d\n",
578 	 (int) offsetof(struct info_monitor_1, version));
579   printf("offsetof(v6_flag) = %d\n",
580 	 (int) offsetof(struct info_monitor_1, v6_flag));
581   printf("offsetof(unused1) = %d\n",
582 	 (int) offsetof(struct info_monitor_1, unused1));
583   printf("offsetof(addr6) = %d\n",
584 	 (int) offsetof(struct info_monitor_1, addr6));
585   printf("offsetof(daddr6) = %d\n",
586 	 (int) offsetof(struct info_monitor_1, daddr6));
587   printf("\n");
588 
589   printf("sizeof(struct info_monitor) = %d\n",
590 	 (int) sizeof(struct info_monitor));
591   printf("offsetof(avg_int) = %d\n",
592 	 (int) offsetof(struct info_monitor, avg_int));
593   printf("offsetof(last_int) = %d\n",
594 	 (int) offsetof(struct info_monitor, last_int));
595   printf("offsetof(restr) = %d\n",
596 	 (int) offsetof(struct info_monitor, restr));
597   printf("offsetof(count) = %d\n",
598 	 (int) offsetof(struct info_monitor, count));
599   printf("offsetof(addr) = %d\n",
600 	 (int) offsetof(struct info_monitor, addr));
601   printf("offsetof(port) = %d\n",
602 	 (int) offsetof(struct info_monitor, port));
603   printf("offsetof(mode) = %d\n",
604 	 (int) offsetof(struct info_monitor, mode));
605   printf("offsetof(version) = %d\n",
606 	 (int) offsetof(struct info_monitor, version));
607   printf("offsetof(v6_flag) = %d\n",
608 	 (int) offsetof(struct info_monitor, v6_flag));
609   printf("offsetof(unused1) = %d\n",
610 	 (int) offsetof(struct info_monitor, unused1));
611   printf("offsetof(addr6) = %d\n",
612 	 (int) offsetof(struct info_monitor, addr6));
613   printf("\n");
614 
615   printf("sizeof(struct old_info_monitor) = %d\n",
616 	 (int) sizeof(struct old_info_monitor));
617   printf("offsetof(lasttime) = %d\n",
618 	 (int) offsetof(struct old_info_monitor, lasttime));
619   printf("offsetof(firsttime) = %d\n",
620 	 (int) offsetof(struct old_info_monitor, firsttime));
621   printf("offsetof(count) = %d\n",
622 	 (int) offsetof(struct old_info_monitor, count));
623   printf("offsetof(addr) = %d\n",
624 	 (int) offsetof(struct old_info_monitor, addr));
625   printf("offsetof(port) = %d\n",
626 	 (int) offsetof(struct old_info_monitor, port));
627   printf("offsetof(mode) = %d\n",
628 	 (int) offsetof(struct old_info_monitor, mode));
629   printf("offsetof(version) = %d\n",
630 	 (int) offsetof(struct old_info_monitor, version));
631   printf("offsetof(v6_flag) = %d\n",
632 	 (int) offsetof(struct old_info_monitor, v6_flag));
633   printf("offsetof(addr6) = %d\n",
634 	 (int) offsetof(struct old_info_monitor, addr6));
635   printf("\n");
636 
637   printf("sizeof(struct reset_flags) = %d\n",
638 	 (int) sizeof(struct reset_flags));
639   printf("offsetof(flags) = %d\n",
640 	 (int) offsetof(struct reset_flags, flags));
641   printf("\n");
642 
643   printf("sizeof(struct info_auth) = %d\n",
644 	 (int) sizeof(struct info_auth));
645   printf("offsetof(timereset) = %d\n",
646 	 (int) offsetof(struct info_auth, timereset));
647   printf("offsetof(numkeys) = %d\n",
648 	 (int) offsetof(struct info_auth, numkeys));
649   printf("offsetof(numfreekeys) = %d\n",
650 	 (int) offsetof(struct info_auth, numfreekeys));
651   printf("offsetof(keylookups) = %d\n",
652 	 (int) offsetof(struct info_auth, keylookups));
653   printf("offsetof(keynotfound) = %d\n",
654 	 (int) offsetof(struct info_auth, keynotfound));
655   printf("offsetof(encryptions) = %d\n",
656 	 (int) offsetof(struct info_auth, encryptions));
657   printf("offsetof(decryptions) = %d\n",
658 	 (int) offsetof(struct info_auth, decryptions));
659   printf("offsetof(expired) = %d\n",
660 	 (int) offsetof(struct info_auth, expired));
661   printf("offsetof(keyuncached) = %d\n",
662 	 (int) offsetof(struct info_auth, keyuncached));
663   printf("\n");
664 
665   printf("sizeof(struct info_trap) = %d\n",
666 	 (int) sizeof(struct info_trap));
667   printf("offsetof(local_address) = %d\n",
668 	 (int) offsetof(struct info_trap, local_address));
669   printf("offsetof(trap_address) = %d\n",
670 	 (int) offsetof(struct info_trap, trap_address));
671   printf("offsetof(trap_port) = %d\n",
672 	 (int) offsetof(struct info_trap, trap_port));
673   printf("offsetof(sequence) = %d\n",
674 	 (int) offsetof(struct info_trap, sequence));
675   printf("offsetof(settime) = %d\n",
676 	 (int) offsetof(struct info_trap, settime));
677   printf("offsetof(origtime) = %d\n",
678 	 (int) offsetof(struct info_trap, origtime));
679   printf("offsetof(resets) = %d\n",
680 	 (int) offsetof(struct info_trap, resets));
681   printf("offsetof(flags) = %d\n",
682 	 (int) offsetof(struct info_trap, flags));
683   printf("offsetof(v6_flag) = %d\n",
684 	 (int) offsetof(struct info_trap, v6_flag));
685   printf("offsetof(local_address6) = %d\n",
686 	 (int) offsetof(struct info_trap, local_address6));
687   printf("offsetof(trap_address6) = %d\n",
688 	 (int) offsetof(struct info_trap, trap_address6));
689   printf("\n");
690 
691   printf("sizeof(struct conf_trap) = %d\n",
692 	 (int) sizeof(struct conf_trap));
693   printf("offsetof(local_address) = %d\n",
694 	 (int) offsetof(struct conf_trap, local_address));
695   printf("offsetof(trap_address) = %d\n",
696 	 (int) offsetof(struct conf_trap, trap_address));
697   printf("offsetof(trap_port) = %d\n",
698 	 (int) offsetof(struct conf_trap, trap_port));
699   printf("offsetof(unused) = %d\n",
700 	 (int) offsetof(struct conf_trap, unused));
701   printf("offsetof(v6_flag) = %d\n",
702 	 (int) offsetof(struct conf_trap, v6_flag));
703   printf("offsetof(local_address6) = %d\n",
704 	 (int) offsetof(struct conf_trap, local_address6));
705   printf("offsetof(trap_address6) = %d\n",
706 	 (int) offsetof(struct conf_trap, trap_address6));
707   printf("\n");
708 
709   printf("sizeof(struct info_control) = %d\n",
710 	 (int) sizeof(struct info_control));
711   printf("offsetof(ctltimereset) = %d\n",
712 	 (int) offsetof(struct info_control, ctltimereset));
713   printf("offsetof(numctlreq) = %d\n",
714 	 (int) offsetof(struct info_control, numctlreq));
715   printf("offsetof(numctlbadpkts) = %d\n",
716 	 (int) offsetof(struct info_control, numctlbadpkts));
717   printf("offsetof(numctlresponses) = %d\n",
718 	 (int) offsetof(struct info_control, numctlresponses));
719   printf("offsetof(numctlfrags) = %d\n",
720 	 (int) offsetof(struct info_control, numctlfrags));
721   printf("offsetof(numctlerrors) = %d\n",
722 	 (int) offsetof(struct info_control, numctlerrors));
723   printf("offsetof(numctltooshort) = %d\n",
724 	 (int) offsetof(struct info_control, numctltooshort));
725   printf("offsetof(numctlinputresp) = %d\n",
726 	 (int) offsetof(struct info_control, numctlinputresp));
727   printf("offsetof(numctlinputfrag) = %d\n",
728 	 (int) offsetof(struct info_control, numctlinputfrag));
729   printf("offsetof(numctlinputerr) = %d\n",
730 	 (int) offsetof(struct info_control, numctlinputerr));
731   printf("offsetof(numctlbadoffset) = %d\n",
732 	 (int) offsetof(struct info_control, numctlbadoffset));
733   printf("offsetof(numctlbadversion) = %d\n",
734 	 (int) offsetof(struct info_control, numctlbadversion));
735   printf("offsetof(numctldatatooshort) = %d\n",
736 	 (int) offsetof(struct info_control, numctldatatooshort));
737   printf("offsetof(numctlbadop) = %d\n",
738 	 (int) offsetof(struct info_control, numctlbadop));
739   printf("offsetof(numasyncmsgs) = %d\n",
740 	 (int) offsetof(struct info_control, numasyncmsgs));
741   printf("\n");
742 
743   printf("sizeof(struct info_clock) = %d\n",
744 	 (int) sizeof(struct info_clock));
745   printf("offsetof(clockadr) = %d\n",
746 	 (int) offsetof(struct info_clock, clockadr));
747   printf("offsetof(type) = %d\n",
748 	 (int) offsetof(struct info_clock, type));
749   printf("offsetof(flags) = %d\n",
750 	 (int) offsetof(struct info_clock, flags));
751   printf("offsetof(lastevent) = %d\n",
752 	 (int) offsetof(struct info_clock, lastevent));
753   printf("offsetof(currentstatus) = %d\n",
754 	 (int) offsetof(struct info_clock, currentstatus));
755   printf("offsetof(polls) = %d\n",
756 	 (int) offsetof(struct info_clock, polls));
757   printf("offsetof(noresponse) = %d\n",
758 	 (int) offsetof(struct info_clock, noresponse));
759   printf("offsetof(badformat) = %d\n",
760 	 (int) offsetof(struct info_clock, badformat));
761   printf("offsetof(baddata) = %d\n",
762 	 (int) offsetof(struct info_clock, baddata));
763   printf("offsetof(timestarted) = %d\n",
764 	 (int) offsetof(struct info_clock, timestarted));
765   printf("offsetof(fudgetime1) = %d\n",
766 	 (int) offsetof(struct info_clock, fudgetime1));
767   printf("offsetof(fudgetime2) = %d\n",
768 	 (int) offsetof(struct info_clock, fudgetime2));
769   printf("offsetof(fudgeval1) = %d\n",
770 	 (int) offsetof(struct info_clock, fudgeval1));
771   printf("offsetof(fudgeval2) = %d\n",
772 	 (int) offsetof(struct info_clock, fudgeval2));
773   printf("\n");
774 
775   printf("sizeof(struct conf_fudge) = %d\n",
776 	 (int) sizeof(struct conf_fudge));
777   printf("offsetof(clockadr) = %d\n",
778 	 (int) offsetof(struct conf_fudge, clockadr));
779   printf("offsetof(which) = %d\n",
780 	 (int) offsetof(struct conf_fudge, which));
781   printf("offsetof(fudgetime) = %d\n",
782 	 (int) offsetof(struct conf_fudge, fudgetime));
783   printf("offsetof(fudgeval_flags) = %d\n",
784 	 (int) offsetof(struct conf_fudge, fudgeval_flags));
785   printf("\n");
786 
787   printf("sizeof(struct info_clkbug) = %d\n",
788 	 (int) sizeof(struct info_clkbug));
789   printf("offsetof(clockadr) = %d\n",
790 	 (int) offsetof(struct info_clkbug, clockadr));
791   printf("offsetof(nvalues) = %d\n",
792 	 (int) offsetof(struct info_clkbug, nvalues));
793   printf("offsetof(ntimes) = %d\n",
794 	 (int) offsetof(struct info_clkbug, ntimes));
795   printf("offsetof(svalues) = %d\n",
796 	 (int) offsetof(struct info_clkbug, svalues));
797   printf("offsetof(stimes) = %d\n",
798 	 (int) offsetof(struct info_clkbug, stimes));
799   printf("offsetof(values) = %d\n",
800 	 (int) offsetof(struct info_clkbug, values));
801   printf("offsetof(times) = %d\n",
802 	 (int) offsetof(struct info_clkbug, times));
803   printf("\n");
804 
805   printf("sizeof(struct info_kernel) = %d\n",
806 	 (int) sizeof(struct info_kernel));
807   printf("offsetof(offset) = %d\n",
808 	 (int) offsetof(struct info_kernel, offset));
809   printf("offsetof(freq) = %d\n",
810 	 (int) offsetof(struct info_kernel, freq));
811   printf("offsetof(maxerror) = %d\n",
812 	 (int) offsetof(struct info_kernel, maxerror));
813   printf("offsetof(esterror) = %d\n",
814 	 (int) offsetof(struct info_kernel, esterror));
815   printf("offsetof(status) = %d\n",
816 	 (int) offsetof(struct info_kernel, status));
817   printf("offsetof(shift) = %d\n",
818 	 (int) offsetof(struct info_kernel, shift));
819   printf("offsetof(constant) = %d\n",
820 	 (int) offsetof(struct info_kernel, constant));
821   printf("offsetof(precision) = %d\n",
822 	 (int) offsetof(struct info_kernel, precision));
823   printf("offsetof(tolerance) = %d\n",
824 	 (int) offsetof(struct info_kernel, tolerance));
825   printf("offsetof(ppsfreq) = %d\n",
826 	 (int) offsetof(struct info_kernel, ppsfreq));
827   printf("offsetof(jitter) = %d\n",
828 	 (int) offsetof(struct info_kernel, jitter));
829   printf("offsetof(stabil) = %d\n",
830 	 (int) offsetof(struct info_kernel, stabil));
831   printf("offsetof(jitcnt) = %d\n",
832 	 (int) offsetof(struct info_kernel, jitcnt));
833   printf("offsetof(calcnt) = %d\n",
834 	 (int) offsetof(struct info_kernel, calcnt));
835   printf("offsetof(errcnt) = %d\n",
836 	 (int) offsetof(struct info_kernel, errcnt));
837   printf("offsetof(stbcnt) = %d\n",
838 	 (int) offsetof(struct info_kernel, stbcnt));
839   printf("\n");
840 
841   printf("sizeof(struct info_if_stats) = %d\n",
842 	 (int) sizeof(struct info_if_stats));
843   printf("offsetof(unaddr) = %d\n",
844 	 (int) offsetof(struct info_if_stats, unaddr));
845   printf("offsetof(unbcast) = %d\n",
846 	 (int) offsetof(struct info_if_stats, unbcast));
847   printf("offsetof(unmask) = %d\n",
848 	 (int) offsetof(struct info_if_stats, unmask));
849   printf("offsetof(v6_flag) = %d\n",
850 	 (int) offsetof(struct info_if_stats, v6_flag));
851   printf("offsetof(name) = %d\n",
852 	 (int) offsetof(struct info_if_stats, name));
853   printf("offsetof(flags) = %d\n",
854 	 (int) offsetof(struct info_if_stats, flags));
855   printf("offsetof(last_ttl) = %d\n",
856 	 (int) offsetof(struct info_if_stats, last_ttl));
857   printf("offsetof(num_mcast) = %d\n",
858 	 (int) offsetof(struct info_if_stats, num_mcast));
859   printf("offsetof(received) = %d\n",
860 	 (int) offsetof(struct info_if_stats, received));
861   printf("offsetof(sent) = %d\n",
862 	 (int) offsetof(struct info_if_stats, sent));
863   printf("offsetof(notsent) = %d\n",
864 	 (int) offsetof(struct info_if_stats, notsent));
865   printf("offsetof(uptime) = %d\n",
866 	 (int) offsetof(struct info_if_stats, uptime));
867   printf("offsetof(scopeid) = %d\n",
868 	 (int) offsetof(struct info_if_stats, scopeid));
869   printf("offsetof(ifindex) = %d\n",
870 	 (int) offsetof(struct info_if_stats, ifindex));
871   printf("offsetof(ifnum) = %d\n",
872 	 (int) offsetof(struct info_if_stats, ifnum));
873   printf("offsetof(peercnt) = %d\n",
874 	 (int) offsetof(struct info_if_stats, peercnt));
875   printf("offsetof(family) = %d\n",
876 	 (int) offsetof(struct info_if_stats, family));
877   printf("offsetof(ignore_packets) = %d\n",
878 	 (int) offsetof(struct info_if_stats, ignore_packets));
879   printf("offsetof(action) = %d\n",
880 	 (int) offsetof(struct info_if_stats, action));
881   printf("offsetof(_filler0) = %d\n",
882 	 (int) offsetof(struct info_if_stats, _filler0));
883   printf("\n");
884 
885   printf("sizeof(struct info_dns_assoc) = %d\n",
886 	 (int) sizeof(struct info_dns_assoc));
887   printf("offsetof(peeraddr) = %d\n",
888 	 (int) offsetof(struct info_dns_assoc, peeraddr));
889   printf("offsetof(associd) = %d\n",
890 	 (int) offsetof(struct info_dns_assoc, associd));
891   printf("offsetof(hostname) = %d\n",
892 	 (int) offsetof(struct info_dns_assoc, hostname));
893   printf("\n");
894 
895