summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.h
diff options
context:
space:
mode:
authorAlexander Guy <alexander@cvs.openbsd.org>2004-07-11 00:15:11 +0000
committerAlexander Guy <alexander@cvs.openbsd.org>2004-07-11 00:15:11 +0000
commit5f5956ff6c46b9cb957cf649150284eee373cbf6 (patch)
treee0a37591f2fedb011e9bf4949072749766d541bb /usr.sbin/ntpd/ntpd.h
parentdde475e446050ba522ede0ec39f98f954367bc70 (diff)
Start collecting the remote server state along with the calculated
offsets, in preparation for having correct server statistics in responses to client queries. ok henning@
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r--usr.sbin/ntpd/ntpd.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h
index ae9acee3e96..452dace9c65 100644
--- a/usr.sbin/ntpd/ntpd.h
+++ b/usr.sbin/ntpd/ntpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.h,v 1.23 2004/07/10 23:12:57 alexander Exp $ */
+/* $OpenBSD: ntpd.h,v 1.24 2004/07/11 00:15:10 alexander Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -70,12 +70,24 @@ struct ntp_addr {
struct sockaddr_storage ss;
};
+struct ntp_status {
+ u_int8_t leap;
+ u_int8_t stratum;
+ int8_t precision;
+ double rootdelay;
+ double rootdispersion;
+ u_int32_t refid;
+ double reftime;
+ u_int8_t poll;
+};
+
struct ntp_offset {
- u_int8_t good;
- double offset;
- double delay;
- double error;
- time_t rcvd;
+ u_int8_t good;
+ double offset;
+ double delay;
+ double error;
+ time_t rcvd;
+ struct ntp_status status;
};
struct ntp_peer {