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
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
>
>
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()
?
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
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