1 /*****************************************************************************
5 * This is the second part of the wrapper library for ntpq, the NTP query utility.
6 * This library reuses the sourcecode from ntpq and exports a number
7 * of useful functions in a library that can be linked against applications
8 * that need to query the status of a running ntpd. The whole
9 * communcation is based on mode 6 packets.
11 * This source file exports the (private) functions from ntpq-subs.c
13 ****************************************************************************/
16 #include "ntpq-subs.c"
20 int ntpq_dogetassoc(void)
29 /* the following functions are required internally by a number of libntpq functions
30 * and since they are defined as static in ntpq-subs.c, they need to be exported here
33 char ntpq_decodeaddrtype(sockaddr_u *sock)
35 return decodeaddrtype(sock);
40 struct ntpq_varlist *vlist,
49 return doquerylist((struct varlist *)vlist, op, associd, auth,
50 rstatus, dsize, datap);