~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to ntptrace/ntptrace.h

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * ntptrace.h - declarations for the ntptrace program
3
 
 */
4
 
 
5
 
/*
6
 
 * The server structure is a much simplified version of the
7
 
 * peer structure, for ntptrace's use.  Since we always send
8
 
 * in client mode and expect to receive in server mode, this
9
 
 * leaves only a very limited number of things we need to
10
 
 * remember about the server.
11
 
 */
12
 
struct server {
13
 
        struct sockaddr_in srcadr;      /* address of remote host */
14
 
        u_char leap;                    /* leap indicator */
15
 
        u_char stratum;                 /* stratum of remote server */
16
 
        s_char precision;               /* server's clock precision */
17
 
        u_fp rootdelay;                 /* distance from primary clock */
18
 
        u_fp rootdispersion;            /* peer clock dispersion */
19
 
        u_int32 refid;                  /* peer reference ID */
20
 
        l_fp reftime;                   /* time of peer's last update */
21
 
        l_fp org;                       /* peer's originate time stamp */
22
 
        l_fp xmt;                       /* transmit time stamp */
23
 
        s_fp delay;                     /* filter estimated delay */
24
 
        u_fp dispersion;                /* filter estimated dispersion */
25
 
        l_fp offset;                    /* filter estimated clock offset */
26
 
};
27
 
 
28
 
 
29
 
/*
30
 
 * Since ntptrace isn't aware of some of the things that normally get
31
 
 * put in an NTP packet, we fix some values.
32
 
 */
33
 
#define NTPTRACE_PRECISION      (-6)            /* use this precision */
34
 
#define NTPTRACE_DISTANCE       FP_SECOND       /* distance is 1 sec */
35
 
#define NTPTRACE_DISP           FP_SECOND       /* so is the dispersion */
36
 
#define NTPTRACE_REFID          (0)             /* reference ID to use */