[ntp:hackers] Patches to reinstate rank variable and add endkeyword.

Harlan Stenn stenn at www.ntp.org
Sun Aug 7 22:33:18 UTC 2005


We have always fork()ed to hande DNS resolution, at least under Unix.

The code has bee reworked a few times, and the last time I cleaned
it up was to let us handle forward and reverse lookups, at least until,
as I recall, Dave told me we no longer needed to do reverse lookups.

We fork the resolution code because we don't want NTP to block while
it is waiting for an answer.

When the answer comes in we use a mode7 packet to bring up the association
using the IP of the host we looked up.

This works, but is kinda lame, as we currently have no code in place to
allow multiple IPs to be brought up (which would be a good thing for a
number of folks, like the pool folks).

There is also the issue of "what to do about 'restrict' stuff for hosts
that are configured this way".

The arlib codebase is in there, and several folks dislike it.  I do know
it does not currently have IPv6 support in it.

I am happy to remove arlib if a working replacement is delivered.  Otherwise
I still plan on trying to make it work myself when/if I have the time.

If we are going to say "For Unix, ntpd uses eventlib." then that's fine
with me and we will provide the source code in the distribution unless,
like openssl, there is an easy way to get/build the sources.  If there is
consensus that "install bind8" is not too much extra stuff, great.
Otherwise it's not a big deal for me to bundle/build an extra library in
the NTP distribution.

Did I forget/miss anything?

H


More information about the hackers mailing list