summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2019-11-10 19:24:48 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2019-11-10 19:24:48 +0000
commit276b038981aaf21c2d43ac1c699a20cb49c37a0b (patch)
treed2a1fca6a3bca282751e265b3005383d87a77def /usr.sbin/ntpd/ntpd.h
parent254bbec33be76481fb6d64720bbc86f44808d354 (diff)
Introduce a "trusted" modifier, for peers that should be on a local net
used in situations where https constraints cannot be used and we still want auto settime. Result of discussion with and ok deraadt@
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 d6d8d80be5c..3f1ffbf763e 100644
--- a/usr.sbin/ntpd/ntpd.h
+++ b/usr.sbin/ntpd/ntpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.h,v 1.146 2019/07/16 14:15:40 otto Exp $ */
+/* $OpenBSD: ntpd.h,v 1.147 2019/11/10 19:24:47 otto Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -171,6 +171,7 @@ struct ntp_peer {
u_int8_t shift;
u_int8_t trustlevel;
u_int8_t weight;
+ u_int8_t trusted;
int lasterror;
int senderrors;
};
@@ -240,6 +241,7 @@ struct ntpd_conf {
u_int8_t automatic;
u_int8_t noaction;
u_int8_t filters;
+ u_int8_t trusted_peers;
time_t constraint_last;
time_t constraint_median;
u_int constraint_errors;