summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntp.c
AgeCommit message (Expand)Author
2005-08-10Propogate server's leap indicator flags to clients; ok henning@Darren Tucker
2005-08-08with -s, do not wait if we don't have any peers at all.Henning Brauer
2005-07-15remove recently added "using privsep user X" message, spams console in -sHenning Brauer
2005-07-15fix a function name in an error messageHenning Brauer
2005-07-11Print privsep user and dir when in debug mode; ok henning@Darren Tucker
2005-07-05Save transmit time for each peer for later use as refid for SNTPv4Darren Tucker
2005-06-19use a little state engine to keep track of delayed dns lookups and such,Henning Brauer
2005-05-26Ensure previous adjust has completed before clearing alarm flag; ok henning@Darren Tucker
2005-05-23no need for endpwent(0 here eitherHenning Brauer
2005-05-03setres[ug]id; ok deraadt@Damien Miller
2005-04-18correctness: only account for offset after settime in next and deadlineHenning Brauer
2005-04-18after setting the clock hard correct the "next" and "deadline" timestampsHenning Brauer
2005-03-24one more fatal/fatalx, alexanderHenning Brauer
2005-03-08when trying short-circuit the wait for the first reply for -s, onlyHenning Brauer
2005-03-08knfTheo de Raadt
2005-03-08missing break spotted by lintTheo de Raadt
2005-02-22when sending a query already returns a failure, we're not going to seeHenning Brauer
2005-02-02KNFHenning Brauer
2005-01-28Simplify interval scaling and randomize query intervals; ok henning@Darren Tucker
2005-01-27Scale query interval by the overall offset not per-peer offset, so weDarren Tucker
2005-01-27Delay before retrying a query on timeout; ok henning@Darren Tucker
2004-12-23KNFHenning Brauer
2004-12-22if our first getpwnam(), testing for NTPD_USER, succeeded, but the secondHenning Brauer
2004-12-13Sanity check owner and permissions of privsep directory, like sshd does;Darren Tucker
2004-12-13Check for error status from poll() too; ok henning@Darren Tucker
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