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