summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntp.c
AgeCommit message (Expand)Author
2004-11-12some missing includes, from Joerg Sonnenberger <joerg@britannica.bec.de>Henning Brauer
2004-11-10ntp_adjtime() -> priv_adjtime()Henning Brauer
2004-10-27Calculate Hz and round up; ok henning@Darren Tucker
2004-10-27use clock_getres(3) and calculate precision from that, and fill theHenning Brauer
2004-10-22in server mode reply with stratum from the peer that we currently preferHenning Brauer
2004-10-13set rootdelay in replies.Henning Brauer
2004-10-13correctly set refid in replies with NTP protocol versions < 4.Henning Brauer
2004-10-13when we get back a IMSG_HOST_DNS message from the parent the peer ID withinHenning Brauer
2004-10-04do not take the average offset from all peers when calculating the totalHenning Brauer
2004-09-18add a new -s option, that tells ntpd to set the time using settimeofday()Henning Brauer
2004-09-18do not bother overallocating and shrinking the pfd and idx2peer arrays,Henning Brauer
2004-09-15imsg framework cleanup:Henning Brauer
2004-09-15malloc the imsg buffers instead of having them statically, suggested byHenning Brauer
2004-09-15unused variables, theoHenning Brauer
2004-09-15missing include, from theoHenning Brauer
2004-09-09correctly track peer count. fixes a memory corruption.Henning Brauer
2004-08-12do not try to getaddrinfo() in the unprivileged process, send an imsgHenning Brauer
2004-07-18query interval scaling, episode IIHenning Brauer
2004-07-14do not do the stratum guessing dance.Henning Brauer
2004-07-13Respond to client queries with better server statistics. We now outputAlexander Guy
2004-07-10scale query interval based on local clock offset. tested by manyHenning Brauer
2004-07-09don't try to update the clock when we have no dataHenning Brauer
2004-07-09the child process needs to ignore SIGHUP for now, ottoHenning Brauer
2004-07-09rework dns handling with all its cosequences...Henning Brauer
2004-07-09when calculating the timeout for poll() we need to take the deadlines forHenning Brauer
2004-07-08remove a bogus always-true test before adjtime()Henning Brauer
2004-07-08log_debug() when a peer doesn't answer in timeHenning Brauer
2004-07-07* Convert to use the new double-based time handling functions.Alexander Guy
2004-07-07yuck, another bad sizeof(). again in code hacked on the Frankfurt->MontrealHenning Brauer
2004-07-07keep a "trustlevel" per peer. loose credit for loosing a packet, looseHenning Brauer
2004-07-06Implement the clock filter as descirbed by David Mills:Henning Brauer
2004-07-05keep last 8 offset,delay pairs - we'll need them for the clock filters later.Henning Brauer
2004-07-05calculate the median offset from all servers we sync to and callHenning Brauer
2004-06-22Precedence and type fix; ok henning@Alexander Guy
2004-06-18size struct pollfd and idx2peer dynamically instead of imposing an arbitaryHenning Brauer
2004-06-17provide most of the client functionality.Henning Brauer
2004-06-02prepare for client functionalityHenning Brauer
2004-06-01first cut at config file parserHenning Brauer
2004-06-01allow ntpd to listen on nearly arbitary number of sockets (OPEN_MAX - 1 atm).Henning Brauer
2004-05-31naming consistencyHenning Brauer
2004-05-31make my japanese friends happy by supporting IPv6 as wellHenning Brauer
2004-05-31initial cut at ntpd.Henning Brauer