1/*	$NetBSD: adjtime.h,v 1.5 2020/05/25 20:47:19 christos Exp $	*/
2
3/*************************************************************************/
4/* (c) Copyright Tai Jin, 1988.  All Rights Reserved.                    */
5/*     Hewlett-Packard Laboratories.                                     */
6/*                                                                       */
7/* Permission is hereby granted for unlimited modification, use, and     */
8/* distribution.  This software is made available with no warranty of    */
9/* any kind, express or implied.  This copyright notice must remain      */
10/* intact in all versions of this software.                              */
11/*                                                                       */
12/* The author would appreciate it if any bug fixes and enhancements were */
13/* to be sent back to him for incorporation into future versions of this */
14/* software.  Please send changes to tai@iag.hp.com or ken@sdd.hp.com.   */
15/*************************************************************************/
16
17/* "adjtime.h,v 3.1 1993/07/06 01:04:43 jbj Exp" */
18/* adjtime.h,v
19 * Revision 3.1  1993/07/06  01:04:43  jbj
20 * NTP release 3.1
21 *
22 *
23 * Revision 1.5  90/02/07  15:34:18  15:34:18  src (Source Hacker)
24 * CHANGED KEY !!!
25 *
26 * Revision 1.4  89/02/09  12:26:35  12:26:35  tai (Tai Jin (Guest))
27 * *** empty log message ***
28 *
29 * Revision 1.4  89/02/09  12:26:35  12:26:35  tai (Tai Jin)
30 * added comment
31 *
32 * Revision 1.3  88/08/30  01:08:29  01:08:29  tai (Tai Jin)
33 * fix copyright notice again
34 *
35 * Revision 1.2  88/08/30  00:51:55  00:51:55  tai (Tai Jin)
36 * fix copyright notice
37 *
38 * Revision 1.1  88/04/02  14:56:54  14:56:54  tai (Tai Jin)
39 * Initial revision
40 *  */
41
42#include "ntp_types.h"
43
44#define KEY	659847L
45
46typedef union {
47  struct msgbuf msgp;
48  struct {
49    long mtype;
50    int code;
51    struct timeval tv;
52  } msgb;
53} MsgBuf;
54
55#define MSGSIZE	(sizeof(int) + sizeof(struct timeval))
56/*
57 * mtype values
58 */
59#define CLIENT	1L
60#define SERVER	2L
61/*
62 * code values
63 */
64#define DELTA1	0
65#define DELTA2	1
66