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

2013-03-05 Thread Matija Buskovic
Hi, I noticed that too, res = doquery(CTL_OP_READVAR, associd, 0, 0, NULL, &rstatus, &dsize, &datap); only datap is copied in resultbuf so maybe you can format rstatus to string and and memcpy it. Something like (its ugly) sprintf(fstatus,"status=%x, ",rstatus); memcp

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

2013-03-05 Thread Matija Buskovic
On Friday, March 1, 2013 7:52:01 PM UTC+1, Kyle Guilbert wrote: > I'm writing some code to use libntpq to query the local NTP daemon, and > > it looks as though the libntpq interface throws away the System Status > > Word (with Leap, Source, Count, Event fields). I think this is the third > >

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

2013-03-03 Thread Kyle Guilbert
On 03/03/2013 10:24 AM, Trevor Woerner wrote: On Fri, Mar 1, 2013 at 1:52 PM, Kyle Guilbert wrote: I'm writing some code to use libntpq to query the local NTP daemon Which version of the ntp sources are you using? 4.2.6p5 I think this is the third argument sixth argument to doquery() ?

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

2013-03-03 Thread Trevor Woerner
On Fri, Mar 1, 2013 at 1:52 PM, Kyle Guilbert 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() ? ___ questions

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

2013-03-03 Thread Kyle Guilbert
I'm writing some code to use libntpq to query the local NTP daemon, and it looks as though the libntpq interface throws away the System Status Word (with Leap, Source, Count, Event fields). I think this is the third argument sixth argument to doquery(), usually named 'rstatus'. I would especial