make log_debug() only log anything at all when we are in debug mode
before, it would log with LOG_DEBUG to syslog when !debug
lof replies with log_debug so one gets increased verbosity when in
foreground/debug mode
log_debug() when a peer doesn't answer in time
remove all handling of netmasks/prefix lengths - we don't need that in ntpd.
fixes the dns resolves to v4 and v6 addresses bug found by phessler
hacked on the Calgary->Montreal flight that proved that Air Canada _does_
have some modern aircrafts with good seats
remove a bogus always-true test before adjtime()
kill traces of on-the-fly reconfigure (from bgpd), not needed in ntpd
when calculating the timeout for poll() we need to take the deadlines for
the outstanding queries into account
just-before-meal from the Montreal->Frankfurt flight
rework dns handling with all its cosequences...
we know have both a "server" and "servers" keyword. they differ when the
hostname resolves to more than one IP, server picks one and servers expands
to all.
that means no longer stuffing a sockaddr_storage into ntp_peer but a pointer
to a linked list of ntp_addr structs.
in the "servers" case the list of n addresses returned by host() is expanded
into n ntp_peer structs and thus n individual peers.
in the "server" case the whole list is attached to ntp_peer, and whenever we
do not receive a reply in time we traverse the list one further, so that
hosts with both AAAA and A records are first tried with the AAAA one but
we gracefully fall back to the A one.
semantics with theo; hacked up on the Montreal->Frankfurt flight.
again Air Canada surprised me, that older 767 hat pretty decent seats.
document the "servers" keyword
soem tweaks from the Frankfurt->Hamburg flight
remove leftover pieces of on-the-fly reconfig shitz that made ntpd exit on
SIGHUP, noticed by otto
the child process needs to ignore SIGHUP for now, otto
various cleanup:
- mention '#' comments
- fix macros for directives
- typos
- change list display
- ntp -> NTP
- slight rewording

help and ok jmc
ok henning otto
don't try to update the clock when we have no data
don't panic when sendto() fails; for the client part just re-schedule
noticed & fix tested by fries@
too chatty; ok henning
Do not forget to initialize head. ok henning@
make date(1), rdate(8), ntpd(8), and timed(8) .Xr themselves;
mostly from Andreas Kahari (PR #3846);
make lint a wee bit happier
add getopt_long regress; ok millert@