<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
I finally tracked down where root_distance is created.
ntpd/ntp_proto.c line 2130 function root_distance.<br>
<br>
However it is a function internal to ntp_proto.c, not mentioned in
header files. And as far as I can tell the values generated from it
are only ever used inside the functions in that file, not saved.<br>
<br>
ntpsnmpd requires this data. As I am unfamiliar with the C code, and
this is a particularly delicate portion I am unwilling to poke it
without confirming with others first. Solutions I can see to get the
data out of ntp_proto.c are:<br>
<br>
* save the data. Requires changes to the peer struct. Could easily
become stale (I do not know how often the peer filtering happens).<br>
<br>
* expose the root_distance function. I am unsure of the total extent
of the needed changes, but they will be scattered across several
files.<br>
<br>
<br>
<div class="moz-signature">-- <br>
<i>"In the end; what separates a Man, from a Slave? Money? Power?
No. A Man Chooses, a Slave Obeys."</i> -- Andrew Ryan
<p>
<i>"Utopia cannot precede the Utopian.
It will exist the moment we are fit to occupy it."</i> --
Sophia Lamb
</p>
</div>
</body>
</html>