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

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

Reply via email to