[chrony-users] Checking chrony daemon status via NTP3 protocol

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Hi

I apologize in advace if my question is trivial.

The daemon is stopped (ver 3.5).
I start it and send a NTP3 CLIENT query, to localhost port 123/udp:
    NTP_VERSION << 3 | NTP_MODE_CLIENT

The first answer has the status 0xdc : the bit NTP_LEAP_NOTSYNC is set.
Good: the daemon is starting and looking for the Ntp servers.

I query again the daemon, and in the following replies from the server:
* the status is OK : 0x1c
* the  server time (reference timestamp, at offset 16 of the Udp packet payload) is incorrect.

The time values are random, below the UNIX_EPOCH (Ntp time 2208988800, 1/1/1970).
After a few queries, the server time changes to a sane value.

Why does chronyd report random time values, without NTP_LEAP_NOTSYNC ?
1) is this compliant to RFC 1305 ?
2) is there any other info in the response payload I have to check ?

Best regards, Massimo


[ATS logo]
Le informazioni contenute in questo messaggio e nei suoi allegati sono ad esclusivo beneficio del corretto destinatario e sono da considerarsi confidenziali e riservate. Qualora abbiate ricevuto il messaggio per errore, siete pregati di darne immediata notizia al mittente e di provvedere alla sua cancellazione. La rivelazione del contenuto di corrispondenza destinata ad altri e ricevuta per errore è perseguibile penalmente e può costituire un trattamento illecito di dati personali.

This e-mail and any attachment is confidential and only for use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify the sender, and then delete this message from your system.

Prima di stampare, pensa all’ambiente.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/