There were backward-incompatible changes on May 13, 2008 for ntp-dev
4.2.5p114:

http://ntp.bkbits.net:8080/ntp-dev/?PAGE=cset&REV=48295cccnu3e5cmGhOzAS7hA-pVG3A

Once again statestr.c is your friend:

http://ntp.bkbits.net:8080/ntp-dev/libntp/statestr.c?PAGE=diffs&REV=48295137L4-SOuAy6YZauDbZtW6DRg

If you want to be able to decode these bits for ntpd versions from
before and after the change correctly, you need to query the version
string of ntpd, sadly, such as with:

ntpq -c "rv 0 version"

and then parse for 4.2.5p114 or later.  The format for the version
string can include an optional -RC# suffix, and before long, there may
be releases with a -beta# suffix in the -stable branch, such as
4.2.6p2-beta1 as a prelude to 4.2.6p2-RC1.

Cheers,
Dave Hart

_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions

Reply via email to