From: Harlan Stenn Date: Sat, 12 Nov 2016 23:57:34 +0000 (-0800) Subject: [Bug 3138] gpsdjson refclock should honor fudgetime1. stenn@ntp.org X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2014cd70a3fa921f969f0b97342b0b79ed969f3e;p=thirdparty%2Fntp.git [Bug 3138] gpsdjson refclock should honor fudgetime1. stenn@ntp.org bk: 5827ac6eXA_4t1_9Ou_VH-xNuIwq0Q --- diff --git a/ChangeLog b/ChangeLog index be672ed91..bc06285ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ * [Sec 3072] Attack on interface selection - implemented Miroslav Lichvars suggestion to skip interface updates based on incoming packets +* [Bug 3138] gpsdjson refclock should honor fudgetime1. stenn@ntp.org * [Bug 3125] NTPD doesn't fully start when ntp.conf entries are out of order using the loopback-ppsapi-provider.dll * [Bug 3116] unit tests for NTP time stamp expansion. diff --git a/NEWS b/NEWS index 3cb4a8dc6..544c628bc 100644 --- a/NEWS +++ b/NEWS @@ -95,6 +95,7 @@ X Mitigation: Other fixes: +* [Bug 3138] gpsdjson refclock should honor fudgetime1. stenn@ntp.org * [Bug 3125] NTPD doesn't fully start when ntp.conf entries are out of order using the loopback-ppsapi-provider.dll * [Bug 3116] unit tests for NTP time stamp expansion. diff --git a/ntpd/refclock_gpsdjson.c b/ntpd/refclock_gpsdjson.c index 24a15e7f6..7c4931149 100644 --- a/ntpd/refclock_gpsdjson.c +++ b/ntpd/refclock_gpsdjson.c @@ -949,7 +949,7 @@ add_clock_sample( pp->lastref = stamp; if (pp->coderecv == pp->codeproc) refclock_report(peer, CEVNT_NOMINAL); - refclock_process_offset(pp, stamp, recvt, 0.0); + refclock_process_offset(pp, stamp, recvt, pp->fudgetime1); } /* ------------------------------------------------------------------ */