154359Sroberto/*************************************************************************/ 254359Sroberto/* (c) Copyright Tai Jin, 1988. All Rights Reserved. */ 354359Sroberto/* Hewlett-Packard Laboratories. */ 454359Sroberto/* */ 554359Sroberto/* Permission is hereby granted for unlimited modification, use, and */ 654359Sroberto/* distribution. This software is made available with no warranty of */ 754359Sroberto/* any kind, express or implied. This copyright notice must remain */ 854359Sroberto/* intact in all versions of this software. */ 954359Sroberto/* */ 1054359Sroberto/* The author would appreciate it if any bug fixes and enhancements were */ 1154359Sroberto/* to be sent back to him for incorporation into future versions of this */ 1254359Sroberto/* software. Please send changes to tai@iag.hp.com or ken@sdd.hp.com. */ 1354359Sroberto/*************************************************************************/ 1454359Sroberto 1554359Sroberto/* "adjtime.h,v 3.1 1993/07/06 01:04:43 jbj Exp" */ 1654359Sroberto/* adjtime.h,v 1754359Sroberto * Revision 3.1 1993/07/06 01:04:43 jbj 1854359Sroberto * NTP release 3.1 1954359Sroberto * 2054359Sroberto * 2154359Sroberto * Revision 1.5 90/02/07 15:34:18 15:34:18 src (Source Hacker) 2254359Sroberto * CHANGED KEY !!! 2354359Sroberto * 2454359Sroberto * Revision 1.4 89/02/09 12:26:35 12:26:35 tai (Tai Jin (Guest)) 2554359Sroberto * *** empty log message *** 2654359Sroberto * 2754359Sroberto * Revision 1.4 89/02/09 12:26:35 12:26:35 tai (Tai Jin) 2854359Sroberto * added comment 2954359Sroberto * 3054359Sroberto * Revision 1.3 88/08/30 01:08:29 01:08:29 tai (Tai Jin) 3154359Sroberto * fix copyright notice again 3254359Sroberto * 3354359Sroberto * Revision 1.2 88/08/30 00:51:55 00:51:55 tai (Tai Jin) 3454359Sroberto * fix copyright notice 3554359Sroberto * 3654359Sroberto * Revision 1.1 88/04/02 14:56:54 14:56:54 tai (Tai Jin) 3754359Sroberto * Initial revision 3854359Sroberto * */ 3954359Sroberto 4054359Sroberto#include "ntp_types.h" 4154359Sroberto 4254359Sroberto#define KEY 659847L 4354359Sroberto 4454359Srobertotypedef union { 4554359Sroberto struct msgbuf msgp; 4654359Sroberto struct { 4754359Sroberto long mtype; 4854359Sroberto int code; 4954359Sroberto struct timeval tv; 5054359Sroberto } msgb; 5154359Sroberto} MsgBuf; 5254359Sroberto 5354359Sroberto#define MSGSIZE (sizeof(int) + sizeof(struct timeval)) 5454359Sroberto/* 5554359Sroberto * mtype values 5654359Sroberto */ 5754359Sroberto#define CLIENT 1L 5854359Sroberto#define SERVER 2L 5954359Sroberto/* 6054359Sroberto * code values 6154359Sroberto */ 6254359Sroberto#define DELTA1 0 6354359Sroberto#define DELTA2 1 64