Age | Commit message (Collapse) | Author | |
---|---|---|---|
2004-07-09 | too chatty; ok henning | Theo de Raadt | |
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 | don't try to update the clock when we have no data | Henning Brauer | |
2004-07-09 | various cleanup: | Jared Yanovich | |
- mention '#' comments - fix macros for directives - typos - change list display - ntp -> NTP - slight rewording help and ok jmc ok henning otto | |||
2004-07-09 | the child process needs to ignore SIGHUP for now, otto | Henning Brauer | |
2004-07-09 | remove leftover pieces of on-the-fly reconfig shitz that made ntpd exit on | Henning Brauer | |
SIGHUP, noticed by otto | |||
2004-07-09 | soem tweaks from the Frankfurt->Hamburg flight | Henning Brauer | |
2004-07-09 | document the "servers" keyword | Henning Brauer | |
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-09 | when calculating the timeout for poll() we need to take the deadlines for | Henning Brauer | |
the outstanding queries into account just-before-meal from the Montreal->Frankfurt flight | |||
2004-07-08 | kill traces of on-the-fly reconfigure (from bgpd), not needed in ntpd | Henning Brauer | |
2004-07-08 | remove a bogus always-true test before adjtime() | Henning Brauer | |
2004-07-08 | remove 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-08 | log_debug() when a peer doesn't answer in time | Henning Brauer | |
2004-07-08 | lof replies with log_debug so one gets increased verbosity when in | Henning Brauer | |
foreground/debug mode | |||
2004-07-08 | make log_debug() only log anything at all when we are in debug mode | Henning Brauer | |
before, it would log with LOG_DEBUG to syslog when !debug | |||
2004-07-07 | tweaks; ok henning@ | Jason McIntyre | |
2004-07-07 | add rdate(8) to SEE ALSO; | Jason McIntyre | |
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@ | |||
2004-07-07 | help the compiler a bit with a cast, spotted by theo | Henning Brauer | |
2004-07-07 | * Convert to use the new double-based time handling functions. | Alexander Guy | |
* Respond to the query with a reasonable received time (which will help clients get better accuracy). * Consolidate the server response code in preparation for a completely 'proper' response to the client. tips and ok from henning@ | |||
2004-07-07 | Endian conversion mistakenly done before fraction math; ok henning@ | Alexander Guy | |
2004-07-07 | ease code and tweak logging | Henning Brauer | |
2004-07-07 | don't log every single reply we receive and log local clock adjustemt nicer | Henning Brauer | |
2004-07-07 | knf! | Theo de Raadt | |
2004-07-07 | if the cookie in the received packet doesn't match discard it silently; | Henning Brauer | |
the logging was useful for development but is a bad idea in production use as a remote attacker could flood your logs | |||
2004-07-07 | document | Henning Brauer | |
listen on * | |||
2004-07-07 | do not listen anywhere by default. | Henning Brauer | |
listen on * listens, well, everywhere. | |||
2004-07-07 | yuck, another bad sizeof(). again in code hacked on the Frankfurt->Montreal | Henning Brauer | |
flight. should we draw concludions from that? I'd like to blame the Air Canada seats... | |||
2004-07-07 | host_* now returns pointers, so the error return is NULL and not 0 | Henning Brauer | |
2004-07-07 | swicth all the host_* functions to work on a newly invented | Henning 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-07 | servers can be given as hostnames now | Henning Brauer | |
2004-07-07 | keep a "trustlevel" per peer. loose credit for loosing a packet, loose | Henning Brauer | |
a lot of credit for not having supplied us with enough data within an adjtime run interval, and get a little credit each time we get a good reply packet. if a peer is below 20%, only send a packet occasionally to see wether it is back. send out queries much more often between 20 and 80% to (re-)sync quickly, and above 80% usethe regular interval. do not use peers < 60% for calculating teh local clock offset. designed with theo at the pho, alexander ok | |||
2004-07-06 | Implement the clock filter as descirbed by David Mills: | Henning Brauer | |
form the last 8 replied received from a peer, find the one with the lowest delay. Use that as the peer's update taken into account for calculating the local clock's offset. Invalidate that reply and all ones received earlier than it so that they do not get used again. | |||
2004-07-06 | sizeof(wrong struct) in calloc == bad. ^$&(#^$%&#*)! | Henning Brauer | |
2004-07-06 | when we received a apcket with incorrect cookie log from whom as well | Henning Brauer | |
2004-07-06 | log host packet was received from (originally using a long convoluted | Jason Wright | |
function until henning showed me the light... log_sockaddr... nifty); this diff is from henning and should be henning ok =) | |||
2004-07-06 | allow hostnames and resolve them in the config file | Henning Brauer | |
2004-07-06 | initialize the variables that track the offset array; ok henning@ | Christian Weisgerber | |
2004-07-05 | keep last 8 offset,delay pairs - we'll need them for the clock filters later. | Henning Brauer | |
for now, average over those to adjust the local clock. | |||
2004-07-05 | delay, not error | Henning Brauer | |
2004-07-05 | use correct multiplier for us -> s conversion | Otto Moerbeek | |
2004-07-05 | don't limit to one remote server any more | Henning Brauer | |
2004-07-05 | calculate the median offset from all servers we sync to and call | Henning Brauer | |
adjtime() when necessary to keep the local clock in sync yes, that means ntpd syncs the local clock now. | |||
2004-07-04 | put interval defines in ntpd.h and name them consistently | Henning Brauer | |
2004-07-04 | simplify slightly | Henning Brauer | |
2004-07-04 | KNF | Henning Brauer | |
2004-07-04 | Compute the local clock offset from the server's response. | Alexander Guy | |
ok henning@ | |||
2004-07-03 | wrong struct calloc'ed; ok henning@ | Alexander Guy | |
2004-06-29 | When no listener is specified, create a listener on every IP. Problem | Alexander Guy | |
reported by Peter Hessler. ok henning@ |