On 3 déc, 00:30, Bill Unruh <[EMAIL PROTECTED]> wrote: > Unruh <[EMAIL PROTECTED]> writes: > >[EMAIL PROTECTED] writes: > >>Hi all, > >>Since yesterday I saw the leap second Flag set on some servers of > >>ntp.pool.org. I'am quite surprise because the leap second add to be > >>set the 31/12/2008 and not the 1/12/2008. > >>Is it normal???? > >The leap is announced at the beginning of the month to make sure that all > >ntp clients know about it. It always occurs at the end of the month ( I > >think ntpd has it hard coded as the end of June or Dec, but in principle it > >could be any month) > > Here is a fragment from the ntp code (ntp_loopfilter.c) (4.2.4p4) > > if ((tm->tm_mon + 1 == 6 && > tm->tm_mday == 30) || (tm->tm_mon + > 1 == 12 && tm->tm_mday == 31)) { > if (leap_next & LEAP_ADDSECOND) > ntv.status |= STA_INS; > else if (leap_next & > LEAP_DELSECOND) > ntv.status |= STA_DEL; > > Ie, ntp pays attention to the leap second flag only if it is June 30 or Dec > 31. Now, that is not correct since I believe that a leapsecond can occur on > any month, but the tradition is that if there is only one or two a year, > those are the dates chosen. In a century or two, when there are more than 2 > per year, then ntpd will run into trouble. (Of course the definition of > time might have changed anyway, or the whole UTC kludge may be scrapped or > a new edition of ntpd not containing that assumption may be published.) > Note that the very existence of ntpd with its assumptions puts huge > pressure on the standards organisation to comply with the assumptions.
So this could not cause problem if on a pool of servers someone answer with the LI flag set and another one without the LI flag set???? I'm quite surprise by the fact that ntpd seems to be the standard... There is many of other client and many of other servers... _______________________________________________ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions