[ntp:questions] NTPv4 Peer Event Codes - secret decoder ring sought

Dave Hart davehart at gmail.com
Thu Mar 18 05:18:25 UTC 2010

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


Once again statestr.c is your friend:


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.

Dave Hart

More information about the questions mailing list