Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-08-10 | Propogate server's leap indicator flags to clients; 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-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-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 | 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-08 | let client_query return 0 if it requested dns resolution | Henning Brauer | |
2005-02-21 | fix an error message | Henning Brauer | |
2005-02-03 | Implement simple duplicate suppression of peer errors; ok henning@ | Darren Tucker | |
2005-01-28 | Simplify interval scaling and randomize query intervals; ok henning@ | Darren Tucker | |
2005-01-28 | Make network unreachable errors non-fatal; ok henning@ | Darren Tucker | |
2005-01-27 | Scale query interval by the overall offset not per-peer offset, so we | Darren Tucker | |
don't query outliers more often than any other server. ok henning@ | |||
2005-01-27 | Delay before retrying a query on timeout; ok henning@ | Darren Tucker | |
2004-12-15 | Poll unsynchronized servers at the maximum interval and log a message about | Darren Tucker | |
them when in debug mode; ok henning@ | |||
2004-12-15 | Factor out interval scaling code; ok henning@ | Darren Tucker | |
2004-12-14 | If polling a server results in an error, drop that server to the maximum | Darren Tucker | |
poll interval; ok henning@ | |||
2004-12-13 | Discard replies with alarm flag set or invalid stratum; ok henning@ | Darren Tucker | |
2004-12-09 | define TRUSTLEVEL_MAX for the trustedlevel value of 10; henning@ ok | Michael Shalayeff | |
2004-12-08 | uniquely name members of s_fixedpt and l_fixedpt; henning@ ok | Michael Shalayeff | |
2004-11-10 | ntp_adjtime() -> priv_adjtime() | Henning Brauer | |
ntp_settime() -> priv_settime() ntp_host_dns() -> priv_host_dns() | |||
2004-11-05 | Use SA_LEN() instead of ss.ss_len. Evaluates to the same result but it's | Darren Tucker | |
easier on portable. ok henning@ | |||
2004-10-22 | in server mode reply with stratum from the peer that we currently prefer | Henning Brauer | |
plus one | |||
2004-10-15 | Only set IPTOS_LOWDELAY on IPv4 interfaces; pointed out by phessler, ok henning | Darren Tucker | |
2004-10-14 | Have ntpd use IPTOS_LOWDELAY; ok henning@ | Darren Tucker | |
2004-10-13 | in struct ntp_msg, rename "distance" to "rootdelay" to closer match RFCs | Henning Brauer | |
and such | |||
2004-10-13 | thinko, htonl() -> ntohl(). as we don't use the value in question effect zero | Henning Brauer | |
2004-10-08 | whitespace both in comment; from bernd | Henning Brauer | |
2004-10-05 | in client_addr_init() and client_nextaddr(), do not set up the socket and | Henning Brauer | |
connect it, instead leave it at -1. in client_query, set up and connect the socket if it is -1. and, the real reason for this change: handle connect failures gracefully ok otto | |||
2004-09-30 | now that we connect() the client sockets we need to handle ECONNREFUSED as | Henning Brauer | |
non-fatal too, from camield@ | |||
2004-09-24 | connect() the client-side sockets. idea & test & ok camield@ | Henning Brauer | |
2004-09-18 | add a new -s option, that tells ntpd to set the time using settimeofday() | Henning Brauer | |
once at startup. ntpd delays daemonizing until it has done the intial time setting (or ran into the timeout) in this mode to make sure stuff started later in rc is not subject to time jumps. this eleminates the need to run rdate -n beforehands. with some input from & ok ryan and bob, march music from mickey | |||
2004-09-14 | paranoia: reset query->fd to -1 after close, from canacar some time ago | Henning Brauer | |
2004-08-16 | Be more careful setting next and deadline, they should not both be != 0 | Otto Moerbeek | |
at the same time. ok henning@ | |||
2004-08-13 | Reset deadline on failed transmit. Avoids a spinning process if | Otto Moerbeek | |
all sends fail. ok henning@ | |||
2004-08-12 | do not try to getaddrinfo() in the unprivileged process, send an imsg | Henning 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-07-28 | when a dns lookup fails at parse time, do not abort but try again | Henning 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-20 | wrap the heads for the linked list of addresses into a new ntp_addr_wrap | Henning Brauer | |
which, besides the head pointer for the list of course, stores the original address as specified (i. e. as hostname instead of resolved IPs) and flags and such. | |||
2004-07-18 | there are a few recvfrom(2) errors we do not want to panic on | Henning Brauer | |
2004-07-18 | query interval scaling, episode II | Henning Brauer | |
1) base the interval calculation on the offset from the last reply, not from the last peer update. Allows us to send more queries again faster when the local clock diverges too much 2) every time we form a peer update (for which we need 8 replies) check wether we have a ready peer update for all peers that are currently trusted, and if so, calculate the total offset and call adjtime(). that means that adjtime is no longer called in fixed intervals but whenever we have enough data to reliably calculate the local clock offset. In practice, that means we call adjtime() less often, but with probably better data. 3) invalidate peer updates after beeing used. no point in re-using them - this resulted in calling adjtime() multiple times with the same offset, which doesn't make sense tested by many | |||
2004-07-14 | do not do the stratum guessing dance. | Henning Brauer | |
stratum is pretty much pointless anyway these days, and we certainly do not want to send out illegal packets (stratum=0) until synced... | |||
2004-07-11 | Start collecting the remote server state along with the calculated | Alexander Guy | |
offsets, in preparation for having correct server statistics in responses to client queries. ok henning@ | |||
2004-07-10 | missing {} | Henning Brauer | |
2004-07-10 | check wether we have enough data to form a peer update on receiption | Henning Brauer | |
of each packet, not only after each 8th (where we have enough for sure) | |||
2004-07-10 | oups | Henning Brauer | |
2004-07-10 | scale query interval based on local clock offset. tested by many | Henning Brauer | |
not as efficient as I want it to be yet, but more is coming | |||
2004-07-09 | don't panic when sendto() fails; for the client part just re-schedule | Henning Brauer | |
noticed & fix tested by fries@ | |||
2004-07-09 | rework dns handling with all its cosequences... | Henning Brauer | |
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. | |||
2004-07-08 | lof replies with log_debug so one gets increased verbosity when in | Henning Brauer | |
foreground/debug mode | |||
2004-07-07 | RFC 2030 is incorrect with regards to the computation of the delay value | Alexander Guy | |
for NTP queries/replies. RFC 1305 and some of Mills' other papers have the correct formula. ok henning@ |