Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-09-24 | Log source address for 'malformed packet' errors. ok henning@ | Darren Tucker | |
2005-09-06 | when running ntpd with "-s" as it's argument from /etc/rc.conf, make sure the | Wim Vandeputte | |
output goes to syslog and not console by moving around log_init OK henning@, markus@ and mblamer@ | |||
2005-08-11 | on writing, we actually can deal with ENOBUFS just as well as with EAGAIN | Henning Brauer | |
and EINTR, so do it, more or less from bgpd | |||
2005-08-11 | check for EINTR too after writev(), pt out by Alexander Farber | Henning Brauer | |
2005-08-10 | Propogate server's leap indicator flags to clients; ok henning@ | Darren Tucker | |
2005-08-08 | with -s, do not wait if we don't have any peers at all. | Henning Brauer | |
From: Thomas Jarosch <thomas.jarosch@intra2net.com> | |||
2005-07-22 | Skip invalid interfaces during 'listen on *'; ok henning@ | Darren Tucker | |
2005-07-15 | shrink read buffer size from 64k to 4k, this is not bgpd and we're dealing | Henning Brauer | |
with way less data | |||
2005-07-15 | remove recently added "using privsep user X" message, spams console in -s | Henning Brauer | |
mode, noticed by kettenis | |||
2005-07-15 | fix a function name in an error message | Henning Brauer | |
why this was rotting in my tree for so long, I dunno - and I dunno where it came from | |||
2005-07-11 | More descriptive error if a signal causes the child to exit; ok henning@ | Darren Tucker | |
2005-07-11 | Print privsep user and dir when in debug mode; ok henning@ | Darren Tucker | |
2005-07-11 | Print actual error when in debug mode; ok henning@ | Darren Tucker | |
2005-07-06 | add another non-fatal error for recvfrom; ok henning@ | Darren Tucker | |
2005-07-05 | Save transmit time for each peer for later use as refid for SNTPv4 | Darren Tucker | |
replies. ok henning@ | |||
2005-06-21 | we do not do -s in /etc/rc anymore. this is because, even if -s did try to | Theo de Raadt | |
do it's job it would have to choose between two cases: 1. either it would take a very long time to get the correct adjustment, thus, if you are not currently on the net right, you wait a long time (or must type ^C, which is ridiculous) 2. ntpd could be modified to "abort early", but then would not meet the promise made by -s in the manual page (note: it does not say that it "tries") therefore, -s and -S must become user choices. Sorry. This same choice is made in lots of other places | |||
2005-06-19 | use a #define for the time to wait on -s and clarify a log msg | Henning Brauer | |
2005-06-19 | use a little state engine to keep track of delayed dns lookups and such, | Henning Brauer | |
eases things tested by Jason Ackley <jason@ackley.net> Matthias Kilian <kili@outback.escape.de> Stephen Marley <stephen@marley.org.uk> sturm@ theo ok | |||
2005-05-26 | Ensure previous adjust has completed before clearing alarm flag; ok henning@ | Darren Tucker | |
2005-05-24 | ifa->ifa_addr can be NULL in some cases, pt out by Kurt Roeckx | Henning Brauer | |
<kurt@roeckx.be> / bugs.debian.org/310586 | |||
2005-05-23 | no need for endpwent(0 here either | Henning Brauer | |
2005-05-11 | don't touch *hn in failure case. no real change due to the way we use it | Henning Brauer | |
but more correct. from Michael Knudsen <e@molioner.dk> | |||
2005-05-03 | setres[ug]id; ok deraadt@ | Damien Miller | |
2005-04-26 | unify shared code a bit again to make future syncs easier | Henning Brauer | |
From: Alexander von Gernler <grunk@pestilenz.org> | |||
2005-04-19 | move the "reply from ... " log msg in -d mdoe uop a bit so it actually | Henning Brauer | |
comes before the "adjusting local clock by..." one, joerg | |||
2005-04-18 | extra paranoia, from a discussion with joerg | Henning Brauer | |
2005-04-18 | correctness: only account for offset after settime in next and deadline | Henning Brauer | |
when those timers are actually running. due to the way ntpd's logic works this does not really make a difference, but correctness is good. spotted by me, joerg agrees | |||
2005-04-18 | after setting the clock hard correct the "next" and "deadline" timestamps | Henning Brauer | |
by the offset From: Joerg Sonnenberger <joerg@britannica.bec.de> | |||
2005-04-18 | prevent replies with negative delay from being used, could happen with -s | Henning Brauer | |
From: Joerg Sonnenberger <joerg@britannica.bec.de> of dragonfly | |||
2005-03-31 | zap includes, grunk | Henning Brauer | |
2005-03-31 | zap includes, Alexander von Gernler <grunk@pestilenz.org> | Henning Brauer | |
2005-03-24 | one more fatal/fatalx, alexander | Henning Brauer | |
2005-03-24 | fatal vs fatalx, Alexander von Gernler | Henning Brauer | |
2005-03-23 | remove now osolete comment, from a mail exchange with | Henning Brauer | |
Alexander von Gernler <grunk@pestilenz.org> | |||
2005-03-23 | wpos in struct buf_read and datalen in imsg_get should be size_t and not | Henning Brauer | |
ssize_t From: Alexander von Gernler <grunk@pestilenz.org> | |||
2005-03-13 | Fixes in ntpd_settime (ie ntpd -s): | Darren Tucker | |
- Handle errors from syscalls better - Prevent curtime.tv_usec from being negative for negative offsets. - Don't claim to have done settimeofday if it fails. ok henning@ | |||
2005-03-09 | nasty: host_dns used to run before forking and chrooting etc, so it was | Henning 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-09 | when, after processing all complete imsgs we found in the buffer, | Henning Brauer | |
there are some bytes left (less than an imsg header, or less than the imsg header len field says) we copy it to the very beginning of the buffer. use memmove instead of memcpy since it is not guaranteed that there's no overlap. while memcpy on OpenBSD is safe, it might not elsewhere, and we want our code to be correct anyways. funny enough theo and I talked at length about that last week in dublin, and I said I believe I had no memcpys with the chance of overlap in ntpd/bgpd - well, here is one, and Alexander von Gernler <grunk@pestilenz.org> pointed me to it. | |||
2005-03-08 | when trying short-circuit the wait for the first reply for -s, only | Henning Brauer | |
do so when -we tried to send at least one query (that is the change) -we could not send ou a single one without failure (this was already in place but catched too much) problem independently noticed by nick and danh, ok mickey danh, testing by many | |||
2005-03-08 | knf | Theo de Raadt | |
2005-03-08 | from the "shut the fuck up, ntpd" department: | Henning Brauer | |
don't whine about temporary dns errors | |||
2005-03-08 | missing break spotted by lint | Theo de Raadt | |
2005-03-08 | from the "shut the fuck up, ntpd" department: | Henning Brauer | |
move log_debug call to tell about skipping the settime due to lack of answers down slightly below the 2nd (and final) log_init call so it becomes a -d only thing. tested by dlg and me | |||
2005-03-08 | let client_query return 0 if it requested dns resolution | Henning Brauer | |
2005-03-06 | fix error message, Benedikt Steinbusch <bsteinb@hamazone.de> | Henning Brauer | |
2005-02-22 | when sending a query already returns a failure, we're not going to see | Henning Brauer | |
a reply to that query. if we get errors for all queries and the initial settime() is still due and thus the parent process still waits (not yet daemonized!), send an IMSG_SETTIME with offset 0. shortens the delay dramatically when you boot without network idea from a discussion with theo | |||
2005-02-21 | fix an error message | Henning Brauer | |
2005-02-03 | Implement simple duplicate suppression of peer errors; ok henning@ | Darren Tucker | |
2005-02-02 | KNF | Henning Brauer | |
2005-02-02 | buffer structs and API ssize_t -> size_t; from bgpd | Henning Brauer | |