4 * refnumtoa - return asciized refclock addresses stored in local array space
9 #include "lib_strbuf.h"
10 #include "ntp_stdlib.h"
17 register u_int32 netnum
;
19 register const char *rclock
;
23 if (ISREFCLOCKADR(num
)) {
25 rclock
= clockname((int)((u_long
)netnum
>> 8) & 0xff);
28 snprintf(buf
, LIB_BUFLENGTH
, "%s(%lu)",
29 rclock
, (u_long
)netnum
& 0xff);
31 snprintf(buf
, LIB_BUFLENGTH
, "REFCLK(%lu,%lu)",
32 ((u_long
)netnum
>> 8) & 0xff,
33 (u_long
)netnum
& 0xff);