+* [Bug 861] leap info was not being transmitted.
* [Bug 1046] refnumtoa.c is using the wrong header file.
* [Bug 1047] enable/disable options processing fix.
* header file cleanup.
fstamp |= CRYPTO_FLAG_COOK;
else if (hismode == MODE_SERVER)
fstamp |= CRYPTO_FLAG_AUTO;
- if (!(fstamp & CRYPTO_FLAG_LEAP))
+ if (!(fstamp & CRYPTO_FLAG_TAI))
fstamp |= CRYPTO_FLAG_LEAP;
RAND_bytes((u_char *)&peer->hcookie, 4);
peer->crypto = fstamp;
if (EVP_SignFinal(&ctx, tai_leap.sig, &len, sign_pkey))
tai_leap.siglen = htonl(len);
if (leap_sec > 0)
- crypto_flags |= CRYPTO_FLAG_LEAP;
+ crypto_flags |= CRYPTO_FLAG_TAI;
snprintf(statstr, NTP_MAXSTRLEN, "signature update ts %u",
ntohl(hostval.tstamp));
record_crypto_stats(NULL, statstr);
pp->disp = 0;
pp->jitter = 0;
#else /* KERNEL_PLL LOCKCLOCK */
- pp->leap = LEAP_NOWARNING;
+ if (pp->sloppyclockflag & CLK_FLAG1)
+ pp->leap = LEAP_ADDSECOND;
+ else
+ pp->leap = LEAP_NOWARNING;
pp->disp = DISPERSION;
pp->jitter = 0;
#endif /* KERNEL_PLL LOCKCLOCK */