ntptrace.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
0N/A/*
0N/A * Copyright (c) 1996 by Sun Microsystems, Inc.
0N/A * All Rights Reserved.
0N/A */
0N/A
0N/A#pragma ident "%Z%%M% %I% %E% SMI"
0N/A
0N/A/*
0N/A * ntptrace.h - declarations for the ntptrace program
0N/A */
0N/A
0N/A/*
0N/A * The server structure is a much simplified version of the
0N/A * peer structure, for ntptrace's use. Since we always send
0N/A * in client mode and expect to receive in server mode, this
0N/A * leaves only a very limited number of things we need to
0N/A * remember about the server.
0N/A */
873N/Astruct server {
0N/A struct sockaddr_in srcadr; /* address of remote host */
0N/A u_char leap; /* leap indicator */
0N/A u_char stratum; /* stratum of remote server */
0N/A s_char precision; /* server's clock precision */
0N/A u_fp rootdelay; /* distance from primary clock */
867N/A u_fp rootdispersion; /* peer clock dispersion */
0N/A u_int32 refid; /* peer reference ID */
0N/A l_fp reftime; /* time of peer's last update */
2086N/A l_fp org; /* peer's originate time stamp */
0N/A l_fp xmt; /* transmit time stamp */
0N/A u_fp delay; /* filter estimated delay */
0N/A u_fp dispersion; /* filter estimated dispersion */
0N/A l_fp offset; /* filter estimated clock offset */
0N/A};
204N/A
204N/A
0N/A/*
0N/A * Since ntptrace isn't aware of some of the things that normally get
0N/A * put in an NTP packet, we fix some values.
112N/A */
0N/A#define NTPTRACE_PRECISION (-6) /* use this precision */
0N/A#define NTPTRACE_DISTANCE FP_SECOND /* distance is 1 sec */
0N/A#define NTPTRACE_DISP FP_SECOND /* so is the dispersion */
0N/A#define NTPTRACE_REFID (0) /* reference ID to use */
0N/A