On 03/03/2013 10:24 AM, Trevor Woerner wrote:
On Fri, Mar 1, 2013 at 1:52 PM, Kyle Guilbert
<[email protected]> 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()
?
Sixth argument, sorry. From ntpq.c:

int
doquery(
        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.
_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions

Reply via email to