[ntp:questions] nptq -p slowness
Serge Bets
serge.bets at NOSPAM.laposte.invalid
Thu Feb 1 00:05:48 UTC 2007
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.
--
Serge point Bets arobase laposte point net
More information about the questions
mailing list