summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2004-07-09various cleanup:Jared Yanovich
- fix examples - fix macro abuse - hex -> hexadecimal - rewording for clarity and consistency - make -a description seem less dangerous - sort options work, help, ok jmc ok otto
2004-07-09make lint a wee bit happierTheo de Raadt
2004-07-09make date(1), rdate(8), ntpd(8), and timed(8) .Xr themselves;Jason McIntyre
mostly from Andreas Kahari (PR #3846);
2004-07-09[From: Joris Vink]Thierry Deval
Use strtonum(3) instead of strtol(3). ok deraadt@ & me
2004-07-09Do not forget to initialize head. ok henning@Otto Moerbeek
2004-07-09ansiTheo de Raadt
2004-07-09ansiTheo de Raadt
2004-07-09too chatty; ok henningTheo de Raadt
2004-07-09don't panic when sendto() fails; for the client part just re-scheduleHenning Brauer
noticed & fix tested by fries@
2004-07-09don't try to update the clock when we have no dataHenning Brauer
2004-07-09various 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-09the child process needs to ignore SIGHUP for now, ottoHenning Brauer
2004-07-09remove leftover pieces of on-the-fly reconfig shitz that made ntpd exit onHenning Brauer
SIGHUP, noticed by otto
2004-07-09various tweaks from the Frankfurt->Hamburg flightHenning Brauer
2004-07-09let log_debug only log at all when we're in debug mode, from Montreal AirportHenning Brauer
2004-07-09soem tweaks from the Frankfurt->Hamburg flightHenning Brauer
2004-07-09document the "servers" keywordHenning Brauer
2004-07-09rework 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-09when calculating the timeout for poll() we need to take the deadlines forHenning Brauer
the outstanding queries into account just-before-meal from the Montreal->Frankfurt flight
2004-07-08kill traces of on-the-fly reconfigure (from bgpd), not needed in ntpdHenning Brauer
2004-07-08remove a bogus always-true test before adjtime()Henning Brauer
2004-07-08Don't close the database too early. ok deraadt@, millert@.Matthieu Herrb
2004-07-08remove 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-08log_debug() when a peer doesn't answer in timeHenning Brauer
2004-07-08lof replies with log_debug so one gets increased verbosity when inHenning Brauer
foreground/debug mode
2004-07-08make log_debug() only log anything at all when we are in debug modeHenning Brauer
before, it would log with LOG_DEBUG to syslog when !debug
2004-07-07Include protocol name in printout.Ryan Thomas McBride
2004-07-07guard against stat not working, which happened to me...Marc Espie
okay naddy@, sturm@
2004-07-07Stupid typo that may cause a lot of pain. Found by Patrick Latifi. Thanks.Claudio Jeker
2004-07-07Bad interpretation of the oh so well documented mrt spec. Found byClaudio Jeker
Stefan Wahl.
2004-07-07tweaks; ok henning@Jason McIntyre
2004-07-07add ntpd(8) to SEE ALSO;Jason McIntyre
2004-07-07add rdate(8) to SEE ALSO;Jason McIntyre
2004-07-07RFC 2030 is incorrect with regards to the computation of the delay valueAlexander Guy
for NTP queries/replies. RFC 1305 and some of Mills' other papers have the correct formula. ok henning@
2004-07-07help the compiler a bit with a cast, spotted by theoHenning 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-07Endian conversion mistakenly done before fraction math; ok henning@Alexander Guy
2004-07-07ease code and tweak loggingHenning Brauer
2004-07-07don't log every single reply we receive and log local clock adjustemt nicerHenning Brauer
2004-07-07knf!Theo de Raadt
2004-07-07if 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-07documentHenning Brauer
listen on *
2004-07-07do not listen anywhere by default.Henning Brauer
listen on * listens, well, everywhere.
2004-07-07yuck, another bad sizeof(). again in code hacked on the Frankfurt->MontrealHenning Brauer
flight. should we draw concludions from that? I'd like to blame the Air Canada seats...
2004-07-07host_* now returns pointers, so the error return is NULL and not 0Henning Brauer
2004-07-07swicth all the host_* functions to work on a newly inventedHenning 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-07servers can be given as hostnames nowHenning Brauer
2004-07-07keep a "trustlevel" per peer. loose credit for loosing a packet, looseHenning 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-06Implement 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-06sizeof(wrong struct) in calloc == bad. ^$&(#^$%&#*)!Henning Brauer