[ntp:questions] nptq -p slowness

Richard B. Gilbert rgilbert88 at comcast.net
Mon Jan 29 05:12:03 UTC 2007


Harlan Stenn wrote:

>>>>In article <0eednfx366oTvCDYnZ2dnUVZ_u-unZ2d at comcast.com>, "Richard B. Gilbert" <rgilbert88 at comcast.net> writes:
> 
> 
> Richard> The bug is that ntpq should not be interpreting the refid at all!
> Richard> It's a text string, not an IP address and should not be treated as
> Richard> one.  Yes, sometimes the refid IS an IP address but it still should
> Richard> be treated as a simple text string!
> 
> How can the code tell the difference between a refid that is a string and
> one that is an IP address?
> 

ISTR reading something from Dave here to the effect that the REFID was 
NOT an IP address even if it had the form of an IP address.

You should be able to parse the string to see if it does have the proper 
form to be an IP address: D.D.D.D  where D is one to three decimal digits.




More information about the questions mailing list