summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
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
2004-07-06when we received a apcket with incorrect cookie log from whom as wellHenning Brauer
2004-07-06log host packet was received from (originally using a long convolutedJason Wright
function until henning showed me the light... log_sockaddr... nifty); this diff is from henning and should be henning ok =)
2004-07-06allow hostnames and resolve them in the config fileHenning Brauer
2004-07-06initialize the variables that track the offset array; ok henning@Christian Weisgerber
2004-07-06commit from the wrong tree. noticed by krw@Marc Espie
2004-07-06Back out rev 1.2 as it doesn't make sense--since we exit on failureTodd C. Miller
there is no need to save the old value of the pointer we are realloc()ing. Based on a diff from Andrey Matveev.
2004-07-05description looking slightly more like a regular manpage and not a pipe-dream.Marc Espie
okay naddy@, with nits from jmc@.
2004-07-05keep 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-05delay, not errorHenning Brauer
2004-07-05use correct multiplier for us -> s conversionOtto Moerbeek
2004-07-05too clever, perl regexps are greedy, ensure we get the correct name.Marc Espie
2004-07-05The rde no longer needs to check if the nexthop is the loopback address.Claudio Jeker
This is now down in the parent. OK henning@
2004-07-05new blackhole/reject nexthopsHenning Brauer
2004-07-05implement "set nexthop blackhole" and "set nexthop reject"Henning Brauer
blackhole/reject routes will be entered to the kernel for matching ones. this is intended to be used with the Cymru Bogon Route Server Project (http://www.cymru.com/BGP/bogon-rs.html) and similar services, claudio ok
2004-07-05Still deduce a pkg-name even if there is no .tgz in the pkg-name specifiedMarc Espie
on the command-line. Problem noticed by Brad Webb.
2004-07-05less esoteric error message for missing @name, on a question fromMarc Espie
Brad Webb.
2004-07-05don't limit to one remote server any moreHenning Brauer
2004-07-05calculate the median offset from all servers we sync to and callHenning Brauer
adjtime() when necessary to keep the local clock in sync yes, that means ntpd syncs the local clock now.
2004-07-05fix a few KNF falloutsHenning Brauer
2004-07-04put interval defines in ntpd.h and name them consistentlyHenning Brauer
2004-07-04simplify slightlyHenning Brauer
2004-07-04KNFHenning Brauer
2004-07-04Compute the local clock offset from the server's response.Alexander Guy
ok henning@
2004-07-042 more file descriptors for each RDE and SE inherited from the parentHenning Brauer
we should close
2004-07-04when getting rid of the listen_addr TAILQ after forking actually closeHenning Brauer
the file descriptors in RDE and parent process, not needed or used there
2004-07-03-Wall,-Wshadow cleanup with avsm@; ok henning@ krw@Damien Miller
2004-07-03wrong struct calloc'ed; ok henning@Alexander Guy