[ntp:questions] System status word not accessible via libntpq?

Kyle Guilbert kguilbert at bluefinrobotics.com
Sun Mar 3 16:35:49 UTC 2013

On 03/03/2013 10:24 AM, Trevor Woerner wrote:
> On Fri, Mar 1, 2013 at 1:52 PM, Kyle Guilbert
> <kguilbert at bluefinrobotics.com> wrote:
>> I'm writing some code to use libntpq to query the local NTP daemon
> Which version of the ntp sources are you using?
>> I think this is the third argument sixth argument to doquery()
> ?
Sixth argument, sorry. From ntpq.c:

         int opcode,
         associd_t associd,
         int auth,
         int qsize,
         char *qdata,
         u_short *rstatus,
         int *rsize,
         const char **rdata

As far as I can tell, ntpq uses rstatus as the 'status' variable in the 
'rv' output, but functions in libntpq.c throw it out.

More information about the questions mailing list