diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-05-28 20:39:17 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-05-28 20:39:17 +0000 |
commit | 981effaf560041db6d968d027db9a965425f687f (patch) | |
tree | 14f6deb2ba407621d8a62a543aa42d7fce7b3112 /usr.sbin/ntpd/ntpd.h | |
parent | 5adbba24d97a16b379dd00c5ca6f0cb443dfa5a3 (diff) |
allow for weight to be added to sensors or servers, so that one can
weight timedelta sensors higher than ntp peers, for example
ok deraadt mbalmer
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r-- | usr.sbin/ntpd/ntpd.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h index 3e5341191eb..788b39358fd 100644 --- a/usr.sbin/ntpd/ntpd.h +++ b/usr.sbin/ntpd/ntpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.h,v 1.68 2006/05/28 18:47:25 henning Exp $ */ +/* $OpenBSD: ntpd.h,v 1.69 2006/05/28 20:39:16 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -124,6 +124,7 @@ struct ntp_peer { u_int32_t id; u_int8_t shift; u_int8_t trustlevel; + u_int8_t weight; int lasterror; }; @@ -133,11 +134,13 @@ struct ntp_sensor { time_t next; char *device; int sensorid; + u_int8_t weight; }; struct ntp_conf_sensor { TAILQ_ENTRY(ntp_conf_sensor) entry; char *device; + u_int8_t weight; }; struct ntpd_conf { |