[ntp:questions] nptq -p slowness
Danny Mayer
mayer at ntp.isc.org
Sat Feb 3 06:27:32 UTC 2007
Serge Bets wrote:
> Hello David,
>
> On Monday, January 29, 2007 at 7:17:07 +0000, David J Taylor wrote:
>
>> I find it very helpful to see what reference IP addresses (with an
>> option to convert to names) servers are using one level up. Perhaps
>> others find it useful as well.
>
> As option to convert IPv4 refids to names, try the following patch:
> Reverse resolves IPv4s by default, disabled by option -n just like the
> "remote" column. Displays nonsense when there is anything vaguely
> smelling like IPv6 in the neighborhood.
>
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> --- ntp-4.2.4/ntpq/ntpq-subs.c Fri Dec 29 00:02:02 2006
> +++ ntp-4.2.4.mod/ntpq/ntpq-subs.c Mon Jan 22 21:11:41 2007
> @@ -1425,7 +1425,7 @@ doprintpeers(
> refnumtoa(&dstadr);
> else
> dstadr_refid =
> - stoa(&dstadr);
> + nntohost(&dstadr);
> } else if ((int)strlen(value) <= 4) {
> refid_string[0] = '.';
> (void) strcpy(&refid_string[1], value);
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
>
>
> Serge.
We are not going to support this as it makes no sense to convert to
names. A refid has no meaning outside its value.
Danny
More information about the questions
mailing list