+---
+* [Bug 3527] fudgeval2 anomaly in mode7 clock info packet <perlinger@ntp.org>
+ - Found by Gerry Garvey. Can't be fixed without causing serious interop
+ issues. Left a comment to fix this in protocol version 5.
+
---
(4.2.8p12) 2018/08/14 Released by Harlan Stenn <stenn@ntp.org>
DTOLFP(clock_stat.fudgetime2, <mp);
HTONL_FP(<mp, &ic->fudgetime2);
ic->fudgeval1 = htonl((u_int32)clock_stat.fudgeval1);
+ /* [Bug3527] ist still there: ic->fudgeval2 is effectively
+ * host order here, since clockstat.fudgeval2 is already
+ * in network byte order! Needs fixing the whole chain,
+ * possibly in NTP protocol v5...
+ */
ic->fudgeval2 = htonl(clock_stat.fudgeval2);
free_varlist(clock_stat.kv_list);
lfptoa(&ts, 6));
(void) fprintf(fp, "stratum: %ld\n",
(u_long)ntohl(cl->fudgeval1));
+ /* [Bug3527] ist still there: fudgeval2 is effectively
+ * host order here. Needs fixing the whole chain,
+ * possibly in NTP protocol v5...
+ */
(void) fprintf(fp, "reference ID: %s\n",
refid_string(ntohl(cl->fudgeval2), 0));
(void) fprintf(fp, "fudge flags: 0x%x\n",