Age | Commit message (Collapse) | Author | |
---|---|---|---|
2008-10-02 | in priv_settime(), we must not adjust the 'next' timestamps on their for | Henning Brauer | |
the offset since we use monotime for these for some time now, and monotime is not affected by system time changes (like, duh, that was the reason for the change). PR5927 | |||
2008-09-12 | move dns lookups to its own (privilege revoking, not chrooting) process. | Henning Brauer | |
reason: the parent process must never ever block, but the dns routines can. last not least this fixes ntpd -s 'hanging' for a long time. tested by a couple of people | |||
2008-06-10 | According to the latest SNTPv4 spec in RFC4330, secondary servers | Christian Weisgerber | |
return the address of the synchronization source as reference identification. Remove the obsolete special casing specified in RFC2030. ok henning@ | |||
2008-06-08 | Don't ignore a slightly unresponsive server for an hour, 5 minutes is enough. | Chris Kuethe | |
comments & ok henning@ | |||
2008-04-13 | Use arc4random_buf() when requesting more than a single word of output | Damien Miller | |
Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@ | |||
2008-01-28 | Reconnect a client socket after three consecutive send failures. | Marco Pfatschbacher | |
This allows recovery after an IP address change (e.g. on dialup links). Also move the update of "nextaction" timeout below the deadline check. OK henning@ | |||
2007-12-27 | some fatal() calls that should be fatalx(); ok henning@ | Kevin Steves | |
2007-12-22 | just call getpwnam(NTPD_USER) once; ok henning@ | Kevin Steves | |
2007-10-15 | Allow ntpd to report the status of peers and sensors to syslog. This | Otto Moerbeek | |
happens when a SIGINFO is received, or when the majority of peers or sensors is bad. The latter with a maximum of once per 24 hour. ok henning@ ckuethe@ mbalmer@ | |||
2007-08-04 | This diff makes ntpd poll for sensors more aggressively when the use of | Chris Kuethe | |
sensors is requested, but no sensors are found. ok henning | |||
2007-01-15 | Although Unix compilers accept more than one definition of a global | Otto Moerbeek | |
symbol, follow the guidelines from K&R: only one definition of a global symbol (and possibly more declarations). Rename some vars here and there to avoid shadowing. ok henning@ | |||
2007-01-14 | Esape from the Mouth of Madness by adjusting stored sensor offsets | Otto Moerbeek | |
when we adjust time. This prevents ntpd from going wild when using sensor time sources; ok henning@ (on an earlier version) and a LOT of testing by naddy@ | |||
2006-12-20 | let ntpd use sensors immediately after system boot by special casing | Henning Brauer | |
last_sensor_scan == 0. monotime might be very close to 0 after boot. source unknown, maybe from naddy, rediscovered & ok mblamer | |||
2006-11-30 | Allow sensors in a sensors-only configuration to set the time at startup. | Chris Kuethe | |
2006-10-27 | use clock_gettime(CLOCK_MONOTONIC, ..) to get a monotonically increasing | Henning Brauer | |
time, and make ntpd use that to send the next uery to an ntp peer and the like. this has the advantage that changes to the clock do not interfere with the intervals. for example, when we start on machines without an RTC and the initial settime (-s) kicks in, intervals were strange. idea from amandal@entrisphere.com, this implementation by me tested ckuethe, phessler, mbalmer, ok mbalmer | |||
2006-10-24 | timedelta sensors are usually updated very often, but we used to query | Henning Brauer | |
them only every 30 seconds. now query them every 5,and take the median value from 7 queries as sensor value. this takes outliers out of the equation and makes the overall result much better, especially for sensors with heavy jitter (like nmea for now) | |||
2006-10-21 | Found that even if client fd (i.e to NTP source) is set to | Henning Brauer | |
-1 because of error, it may still participate in poll() causing poll() to repeatedly wake up on error fd. so make sure w edon't add -1 fds to pollevents to avoid unnecessary wakeups From: amandal@entrisphere.com | |||
2006-07-01 | remove some unneeded includes; one found by vetinari | Otto Moerbeek | |
2006-06-30 | spaces | Theo de Raadt | |
2006-06-26 | increase polling intervbal, but only after we are synced and have done | Otto Moerbeek | |
a few frequency adjustments. ok henning@ | |||
2006-06-21 | avoid a race by installing SIGCHLD handler before fork() is called. | Otto Moerbeek | |
ok henning@ ckuethe@ | |||
2006-06-17 | Import frequency conrrection code from dragonfly, whith some changes: | Otto Moerbeek | |
only do frequency compensation if the clock is synced, and a slightly diffent way of computing the linear regression. You'll need a recent kernel and libc to use this. Testing by naddy@ and ckuethe@ and others, thanks! ok henning@ | |||
2006-06-09 | set session id and init logging in -s mode. tested by david@ and matthieu@; | Otto Moerbeek | |
ok henning@ | |||
2006-06-08 | simplify; ok henning@ | Otto Moerbeek | |
2006-06-07 | Compensate old offsets with the amount of adjustment done, avoiding | Otto Moerbeek | |
overcompensating. From DragonFly, uses recent adjtime(2) changes, so you'll need a recent kernel. ok henning@ | |||
2006-06-04 | Only invalidate stored replies if an adjustment was really made. | Otto Moerbeek | |
ok henning@ | |||
2006-06-02 | incredibly stupid typo | Henning Brauer | |
2006-06-01 | When expanding servers, do not forget to copy weight. ok henning@ | Otto Moerbeek | |
2006-06-01 | urgs, other stuff snuck in | Henning Brauer | |
2006-06-01 | put back regular sensors scanning | Henning Brauer | |
2006-05-31 | only actually run sensor_query when it is due, not every time poll returns | Henning Brauer | |
2006-05-28 | allow for weight to be added to sensors or servers, so that one can | Henning Brauer | |
weight timedelta sensors higher than ntp peers, for example ok deraadt mbalmer | |||
2006-05-28 | let sensor_query handle removals itself | Henning Brauer | |
2006-05-28 | DV_SENSORS is no more, plug workaround for the time to the real solution | Henning Brauer | |
2006-05-27 | stop passing the config around all time, just store one copy | Henning Brauer | |
2006-05-27 | make ntpd listen on the hotplug socket and decode yadda yadda, because | Henning Brauer | |
new sensors showing up will be announced that way when slacking ml comes back from food | |||
2006-05-27 | scan for new timedelta sensors every five minutes for now, ok deraadt | Henning Brauer | |
2006-05-26 | add support for timedelta sensors, which pretty much means udcf(4) right | Henning Brauer | |
now. untested due to lack of hardware, and it wouldn't have worked in the plane anyways. work in progress, currently picks up and uses all sensors it finds, config file bits to be added soon. theo fine with this going in | |||
2006-05-25 | more bits from transatlanic flight: | Henning Brauer | |
make priv_adjtime() deal with offsets, not peers. | |||
2006-05-25 | figure out the refid to send to NTP v3 clients early and store it | Henning Brauer | |
first bits from a way to long flight | |||
2006-05-14 | PFD_MAX betterer than harcoded 1 | 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-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 | Print privsep user and dir when in debug mode; 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-05-26 | Ensure previous adjust has completed before clearing alarm flag; ok henning@ | Darren Tucker | |
2005-05-23 | no need for endpwent(0 here either | Henning Brauer | |