summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/config.c
AgeCommit message (Collapse)Author
2005-05-11don't touch *hn in failure case. no real change due to the way we use itHenning Brauer
but more correct. from Michael Knudsen <e@molioner.dk>
2005-03-09nasty: host_dns used to run before forking and chrooting etc, so it wasHenning Brauer
guaranteed that its res_init() call was done once before fork etc... that is no longer the case. call res_init() in main() early.
2005-03-08from the "shut the fuck up, ntpd" department:Henning Brauer
don't whine about temporary dns errors
2004-12-16Limit the number of addresses used by the 'servers' directive to 8; ok henning@Darren Tucker
2004-08-30don't forget to set *hn... theo okHenning Brauer
2004-08-30skip early DNS lookups -- they are deferred to later; ok otto ho henningTheo de Raadt
2004-08-24don't fatal() if getaddrinfo() returns EAI_NONAMEHenning Brauer
2004-08-12do not try to getaddrinfo() in the unprivileged process, send an imsgHenning Brauer
asking the privileged one to do it. sends back an imsg with the resulting addresses in a bunch of struct sockaddr_storage in the data part. this should fix all remaining issues with dns (non-)availability at ntpd startup, be it due to named on localhost or something else. tested by marco@ and Chris Paul <chris.paul@sentinare.com>
2004-08-10move memory allocation for new peers into a new function, makes ID allocationHenning Brauer
easier
2004-07-28when a dns lookup fails at parse time, do not abort but try againHenning Brauer
to resolve the hostname every 60 seconds fixes ntpd invocations before e. g. a dialup link is established and such. as we want ntpd to be a "fire and forget" background daemon it should cope with such situations. tested by many
2004-07-25remove unused functionHenning Brauer
2004-07-08remove all handling of netmasks/prefix lengths - we don't need that in ntpd.Henning Brauer
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
2004-07-07do not listen anywhere by default.Henning Brauer
listen on * listens, well, everywhere.
2004-07-07host_* now returns pointers, so the error return is NULL and not 0Henning Brauer
2004-07-07swicth all the host_* functions to work on a newly inventedHenning Brauer
struct ntp_addr, which just wraps a sockaddr_storage and a next pointer, so that host_dns can return more than one entry. let host_dns do exactly that, return a list of all IPs for that hostname adjust all callers in the grammar to cope with that
2004-07-06allow hostnames and resolve them in the config fileHenning Brauer
2004-06-02prepare for client functionalityHenning Brauer
2004-06-01first cut at config file parserHenning Brauer
for now, one can set the addresses to listen on