summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/sensors.c
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@cvs.openbsd.org>2008-03-02 20:36:43 +0000
committerChris Kuethe <ckuethe@cvs.openbsd.org>2008-03-02 20:36:43 +0000
commit9b037067ebf9c34dfc2737838efc30377f1d6b05 (patch)
tree9d9625f413f46055927994b0b5c5582ed63cfb5f /usr.sbin/ntpd/sensors.c
parent3070fc73d0b725d3194b3cc4afda306fbc3b83c5 (diff)
set the refid for v4 queries too. this allows sensor-driven ntpd to says its
reference is "HARD" (or "GPS", "UMBG", "UDCF" ... in theory) rather than "^@^@^@^@" "why not" henning@
Diffstat (limited to 'usr.sbin/ntpd/sensors.c')
-rw-r--r--usr.sbin/ntpd/sensors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c
index 0e0c69f63ff..65b3534b9fb 100644
--- a/usr.sbin/ntpd/sensors.c
+++ b/usr.sbin/ntpd/sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.c,v 1.34 2007/09/12 21:08:46 ckuethe Exp $ */
+/* $OpenBSD: sensors.c,v 1.35 2008/03/02 20:36:42 ckuethe Exp $ */
/*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@@ -184,6 +184,7 @@ sensor_query(struct ntp_sensor *s)
s->offsets[s->shift].good = 1;
s->offsets[s->shift].status.refid = htonl(refid);
+ s->offsets[s->shift].status.refid4 = htonl(refid);
s->offsets[s->shift].status.stratum = 0; /* increased when sent out */
s->offsets[s->shift].status.rootdelay = 0;
s->offsets[s->shift].status.rootdispersion = 0;