Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-09-14 | use a setup function for options, cleaner; ok cloder | Theo de Raadt | |
2007-09-14 | Correctly assign a default weight of 1 to sensors and servers. | Chris Kuethe | |
ok beck | |||
2007-09-13 | add -n to usage(); | Jason McIntyre | |
2007-09-13 | Provide the -n switch like in the other imsg daemons for testing | Pierre-Yves Ritschard | |
the configuration file. "yes please, ok" henning@ | |||
2007-09-13 | one more missed change; | Jason McIntyre | |
2007-09-13 | Small style tweak, from jmc and Maurice Janssen | Chris Kuethe | |
2007-09-12 | Add a knob to compensate for a refclock that is early or late. Based on a | Chris Kuethe | |
diff from Maurice Janssen. Manpage help from jmc and Maurice, other nits from deraadt and otto. ok deraadt, otto | |||
2007-09-12 | default weight has to remain 1; seen by Maurice Janssen | Theo de Raadt | |
2007-09-11 | this is where it all started, since future ntpd.conf commands will require | Theo de Raadt | |
negative parameters. extend lex to spot numbers in the stream. as well, make it easier to add parameters on command line in any order later ok otto ckuethe | |||
2007-08-22 | Allow ntpd to log sensor offsets and adjtime calls to syslog at LOG_DEBUG | Chris Kuethe | |
priority. ok gwk, mbalmer, weingart "explicit non-ok from" henning | |||
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-05-31 | convert to new .Dd format; | Jason McIntyre | |
2007-05-26 | use __packed structs for the on-the-wire packets and just memcpy at once | Henning Brauer | |
instead of kind-of manual copyin/out. increases accuracy in server mode. collecting dust in my tree for some time, result of a conversation with somebody i really want to give credit to, but I can't find the mails now :( okey dokey sez theo | |||
2007-05-01 | if resolving a name fails, be more aggressive retrying, but with care: | Otto Moerbeek | |
do not have more than one dns request outstanding per peer. resolves slow recovery when resolving fails initially, without clogging the pipe with lots of dns requests; tested by Jason George; ok deraadt@ | |||
2007-04-30 | aggressive spelling fix, spotted by jbg | Theo de Raadt | |
2007-03-27 | Normalize tv so that tv_usec is positive. The kernel also normalizes, | Otto Moerbeek | |
but this might increase portability since some other systems do not grok negative tv_usec well. ok henning@ | |||
2007-03-23 | Increase sensor polling interval to 30s, just like ntp polls. This | Chris Kuethe | |
improves sensor timekeeping significantly. Before this patch my test system's frequency adjustment would range between -350 and +250, with timedelta rarely getting close to 0. After, frequency adjustmens is on the order of +/- 0.05ppm, with time +/- a few microseconds away from 0 ok henning, mbalmer, otto | |||
2007-03-19 | when our red/recv/recvmsg in imsg_read gives EINTR or EAGAIN, do not | Henning Brauer | |
signal "connection closed" upstream. spotted by Valentin Kozamernik <tin@komna.com> | |||
2007-03-01 | read buffer size must be >= max imsg size. | Henning Brauer | |
after release we should revisit this issue, we can probably safely shrink the max imsg size. Valentin Kozamernik in PR5401 | |||
2007-02-24 | xref adjfreq(2); from Igor Zinovik | Otto Moerbeek | |
2007-01-23 | Typo in fatal() message found by dunceor @ gmail dot com | Claudio Jeker | |
2007-01-15 | the new sensors tre can give us the number of sensors per type. | Henning Brauer | |
With this patch, we give up without bothering sysctl kern_sensors.c::sensor_find() unless we know for sure that timedelta sensor is present. From: "Constantine A. Murenin" <cnst+openbsd@bugmail.mojo.ru> | |||
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@ | |||
2007-01-14 | Add some comments on the expresssion which converts sensor timedeltas | Otto Moerbeek | |
to ntp offsets; also, rewrite the expression to make it more clear with no change in semantics. ok henning@ | |||
2006-12-28 | forgot a dereference in the previous conversion; ok deraadt@ | Christian Weisgerber | |
2006-12-23 | adapt to new two-level sensor sysctl framework; by Constantine A. Murenin | Theo de Raadt | |
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-11-20 | with usig the meadian offset froma number of measurements the recording | Henning Brauer | |
of the last sensor update time got broken, doesn't show up with gps since it updates often (more often than we read), but naddy ran into it with dcf. record time of last sensor datum seperately. ok naddy balmer | |||
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 | in client_nextaddr, check fd != -1 before close, just nicer this way | Henning Brauer | |
From: amandal@entrisphere.com | |||
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-10-21 | when ntp_sendmsg fails, reset trustlevel to TRUSTLEVEL_PATHETIC | Henning Brauer | |
From: amandal@entrisphere.com | |||
2006-10-21 | EADDRNOTAVAIL after connect is one of the soft errors where we don't abort | Henning Brauer | |
too. from amandal@entrisphere.com | |||
2006-10-12 | need to call adjtime once in a while here too, otherwise sensor-only | Henning Brauer | |
servers never update the system clock | |||
2006-10-12 | internally, ntpd doesn't work with absolute offsets to system time, but | Henning Brauer | |
takes the offset it adjtime() is already correcting for into account when taking the offset from a sensor, we need to correct it by the offset between system time and ntpd view. | |||
2006-10-08 | use 'weight-value' vs. 'offset' for the weight argument; | Kevin Steves | |
ok jmc@ henning@ | |||
2006-10-03 | strtonum() with INT_MAX intead of LONG_MAX, problem pointed out by ↵ | Theo de Raadt | |
pierre-yves@spootnik.org | |||
2006-08-19 | make sure updates from sensors have the "synced" flag set | Henning Brauer | |
2006-07-01 | remove some unneeded includes; one found by vetinari | Otto Moerbeek | |
2006-06-30 | spaces | Theo de Raadt | |
2006-06-30 | don't write anything to log until we are daemonized. spotted by | Otto Moerbeek | |
david@; ok henning@ | |||
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-26 | Reset adjtime() on startup; having an adjtime() active while starting | Otto Moerbeek | |
up causes overcompensation and confusing debug log entries; noticed by dtucker@ | |||
2006-06-22 | Document /var/db/ntpd.drift; ok jmc@ | Otto Moerbeek | |
2006-06-22 | Save the computed clock drift and use it on startup. ok deraadt@ | Otto Moerbeek | |
henning@ | |||
2006-06-21 | avoid a race by installing SIGCHLD handler before fork() is called. | Otto Moerbeek | |
ok henning@ ckuethe@ | |||
2006-06-18 | tsk, tsk, tsk... the rule is simple: any define consisting of | Otto Moerbeek | |
more than one token MUST be put in parentheses! |