ntpdate.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1996 by Sun Microsystems, Inc.
* All Rights Reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* ntpdate.h - declarations for the ntpdate program
*/
#include "ntp_malloc.h"
/*
* The server structure is a much simplified version of the
* peer structure, for ntpdate's use. Since we always send
* in client mode and expect to receive in server mode, this
* leaves only a very limited number of things we need to
* remember about the server.
*/
struct server {
};
/*
* ntpdate runs everything on a simple, short timeout. It sends a
* packet and sets the timeout (by default, to a small value suitable
* for a LAN). If it receives a response it sends another request.
* If it times out it shifts zeroes into the filter and sends another
* request.
*
* The timer routine is run often (once every 1/5 second currently)
* so that time outs are done with reasonable precision.
*/
/*
* ntpdate will make a long adjustment using adjtime() if the times
* are close, or step the time if the times are farther apart. The
* following defines what is "close".
*/
/*
* When doing adjustments, ntpdate actually overadjusts (currently
* by 50%, though this may change). While this will make it take longer
* to reach a steady state condition, it will typically result in
* the clock keeping more accurate time, on average. The amount of
* overshoot is limited.
*/
#ifdef NOTNOW
#endif /* NOTNOW */
/*
* Since ntpdate isn't aware of some of the things that normally get
* put in an NTP packet, we fix some values.
*/
#define NTPDATE_REFID (0) /* reference ID to use */
/*
* Some defaults
*/