From d621e7cbdfe97b2cff8b44f882770e824c0ffab5 Mon Sep 17 00:00:00 2001 From: ckuethe <> Date: Sun, 2 Mar 2008 20:36:42 +0000 Subject: [PATCH] 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@ --- src/usr.sbin/ntpd/sensors.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/sensors.c b/src/usr.sbin/ntpd/sensors.c index 0e0c69f6..65b3534b 100644 --- a/src/usr.sbin/ntpd/sensors.c +++ b/src/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 @@ -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;