diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2019-06-20 07:28:19 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2019-06-20 07:28:19 +0000 |
commit | 037cc1d603bda6256ea924700156048454ab7ada (patch) | |
tree | 7b1883b1051505dadd457e88be15b4771ef51bfc /usr.sbin/ntpd/ntpd.h | |
parent | f85924615ecfd4fa83626c2f05162651da61781b (diff) |
Do a quick DNS probe to decide to stay in the forground and attempt
an (auto) settime or give up. 15s timeout is still in effect. ok florian@
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r-- | usr.sbin/ntpd/ntpd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h index da3936b3db5..3b20b24af6d 100644 --- a/usr.sbin/ntpd/ntpd.h +++ b/usr.sbin/ntpd/ntpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.h,v 1.143 2019/06/16 07:36:25 otto Exp $ */ +/* $OpenBSD: ntpd.h,v 1.144 2019/06/20 07:28:18 otto Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -311,7 +311,8 @@ enum imsg_type { IMSG_CTL_SHOW_ALL, IMSG_CTL_SHOW_ALL_END, IMSG_SYNCED, - IMSG_UNSYNCED + IMSG_UNSYNCED, + IMSG_PROBE_ROOT }; enum ctl_actions { @@ -327,7 +328,7 @@ enum ctl_actions { void ntp_main(struct ntpd_conf *, struct passwd *, int, char **); void peer_addr_head_clear(struct ntp_peer *); int priv_adjtime(void); -void priv_settime(double); +void priv_settime(double, char *); void priv_dns(int, char *, u_int32_t); int offset_compare(const void *, const void *); void update_scale(double); |