summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2005-02-03 10:53:34 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2005-02-03 10:53:34 +0000
commit3ba1593ebbef439c9c89cd1ccb5a159017057aa1 (patch)
tree56b1e4d021b258b4dd30d98fb836c1dee9ebc8a0 /usr.sbin/ntpd/ntpd.h
parent29d88779e863d7e7a04d3dbc91f2abed6b5f60ed (diff)
Implement simple duplicate suppression of peer errors; ok henning@
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r--usr.sbin/ntpd/ntpd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h
index 0be48157ad9..70ad6709c58 100644
--- a/usr.sbin/ntpd/ntpd.h
+++ b/usr.sbin/ntpd/ntpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.h,v 1.52 2005/02/02 18:57:09 henning Exp $ */
+/* $OpenBSD: ntpd.h,v 1.53 2005/02/03 10:53:33 dtucker Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -113,6 +113,7 @@ struct ntp_peer {
u_int32_t id;
u_int8_t shift;
u_int8_t trustlevel;
+ int lasterror;
};
struct ntpd_conf {
@@ -238,6 +239,7 @@ int client_addr_init(struct ntp_peer *);
int client_nextaddr(struct ntp_peer *);
int client_query(struct ntp_peer *);
int client_dispatch(struct ntp_peer *, u_int8_t);
+void client_log_error(struct ntp_peer *, const char *, int);
void update_scale(double);
time_t scale_interval(time_t);
time_t error_interval(void);