summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorckuethe <ckuethe@openbsd.org>2008-03-02 20:36:42 +0000
committerckuethe <ckuethe@openbsd.org>2008-03-02 20:36:42 +0000
commit0ae9ea2b19efe3c1c91892d598d9f5c630d5e07a (patch)
tree44b1f101aa6997be37b791cb676165f94cefc8d8
parentInclude sigcode in core dumps. This makes it possible to backtrace (diff)
downloadwireguard-openbsd-0ae9ea2b19efe3c1c91892d598d9f5c630d5e07a.tar.xz
wireguard-openbsd-0ae9ea2b19efe3c1c91892d598d9f5c630d5e07a.zip
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@
-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;