Harlan,

The string comes from a table in ./libntp/clocktypes.c. That table is 
indexed byu the reference clock type number. It is displayed as the 
server name in ntpq. There is no need to look it up. The ntpq program 
can know when to use the string by the 127.127 prefix, which is how the 
ISREFCLK() macro works.

Dave

Harlan Stenn wrote:
>>>>In article <[EMAIL PROTECTED]>, "Richard B. Gilbert" <[EMAIL PROTECTED]> 
>>>>writes:
> 
> 
> Richard> You should be able to parse the string to see if it does have the
> Richard> proper form to be an IP address: D.D.D.D where D is one to three
> Richard> decimal digits.
> 
> But I do not believe we get a string in this case.
> 
> H

_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions

Reply via email to