summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
AgeCommit message (Collapse)Author
2009-02-12-v logs debug adjtime calls also; ok henning@Kevin Steves
2009-02-11move prototypes that are really in ntp.c; ok henning@Kevin Steves
2009-02-10log tiny frequency adjustments at debug only.Kevin Steves
ok henning@, 'I think I agree' otto@
2009-02-10endservent() not needed here; ok henning@Kevin Steves
2009-02-08spelling in commentKevin Steves
2009-02-06rename a #define to be clearer; no binary changeKevin Steves
ok henning@
2009-01-31adjtime has been logged at 32ms and greater for 2.5 years now.Kevin Steves
ok henning@ jmc@
2009-01-29log warning when can't read drift file; allows detection ofKevin Steves
corrupt contents. ok henning@
2009-01-27fix printf format specification to print max len 4 for refid,Kevin Steves
which may not be null terminated; ok henning@
2009-01-26return the correct refid for a sensor; ok henning@Christian Weisgerber
2009-01-26use monotime instead of wallclock for the report thing as wellHenning Brauer
found on this laptops harddisk, probably from stockholm
2008-12-10Correctly skip the internal fd when checking the server sockets. Use PFD_MAXClaudio Jeker
to start the for loop and not 1 which was correct long long time ago. OK otto@ found by Anirban Sinha ASinha(at)zeugmasystems.com
2008-11-10delete operation not needed; from naddyTheo de Raadt
2008-11-10If a bind() spuriously fails (as appears to happen once in a blue moon dueTheo de Raadt
to some stupid ipv6 bug in particular), remove that 'listen' from the list and continue operation. issue spotted by naddy ok henning
2008-10-17bring in findeol() fix from pfctlHenning Brauer
2008-10-10- use nmea(4) for general sensor example rather than udcf(4)Stuart Henderson
which only works in w.europe - use a more realistic value for udcf correction example - use a GPS-only receiver for "refid GPS" example suggested/ok mbalmer
2008-10-02in priv_settime(), we must not adjust the 'next' timestamps on their forHenning 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-28ntpd does not require you to run rdate -n before it -- it notices such anTheo de Raadt
event. so don't use the word "before" .. and leave the mention ambigious ok henning
2008-09-12move 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-07-19Use errx instead of fprintf, exit combo.Claudio Jeker
Diff from Gleydson Soares gsoares (at) gmail (dot) com OK henning@
2008-06-10For IPv6 addresses, return the first 32 bits of the MD5 hash of theChristian Weisgerber
address as ref ID (RFC4330). ok henning@
2008-06-10According to the latest SNTPv4 spec in RFC4330, secondary serversChristian Weisgerber
return the address of the synchronization source as reference identification. Remove the obsolete special casing specified in RFC2030. ok henning@
2008-06-09rename refstr to refid since it is an int32; ok henningTheo de Raadt
2008-06-09do not copy up to two garbage characters from a 1 char string into a 4 charTheo de Raadt
output buffer; ok henning
2008-06-09do not leak memory on failure in refid production; ok ckuethe henningTheo de Raadt
2008-06-09spacingTheo de Raadt
2008-06-09Allow outgoing replies from sensor-driven servers to have aChris Kuethe
user-configurable reference ID, eg. "GPS" or "DCF"... ok mbalmer
2008-06-08Don't ignore a slightly unresponsive server for an hour, 5 minutes is enough.Chris Kuethe
comments & ok henning@
2008-05-16Allow ntpd to step the time at startup, now matter how large or small theChris Kuethe
offset. The 180s limit doesn't help very much these days. ok otto@ mbalmer@
2008-05-14ntpd missed the argument check sweep.Pierre-Yves Ritschard
2008-04-13Use arc4random_buf() when requesting more than a single word of outputDamien Miller
Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
2008-03-02set the refid for v4 queries too. this allows sensor-driven ntpd to says itsChris Kuethe
reference is "HARD" (or "GPS", "UMBG", "UDCF" ... in theory) rather than "^@^@^@^@" "why not" henning@
2008-02-26Have popfile() also close the main config file,Marco Pfatschbacher
but only do the final popfile call after yyparse() is done. This also fixes config reload on SIGHUP for some daemons. Spotted by otto@. OK deraadt@
2008-01-28Reconnect 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-31we must reset the poll timeout to INFTIM when receiving the IMSG_SETTIMEHenning Brauer
because otherwise the poll timeout will stay at SETTIME_TIMEOUT (15s) forever unless we time out waiting for the first reply with -s spotted by Aaron Riekenberg <aaron.riekenberg@gmail.com>
2007-12-27some fatal() calls that should be fatalx(); ok henning@Kevin Steves
2007-12-23log a warning one time when we can't open or write the drift file;Kevin Steves
also add "(no drift file)" to the adjfreq log message on failure; ok henning@
2007-12-23remove some unused #defines; ok henning@Kevin Steves
2007-12-22just call getpwnam(NTPD_USER) once; ok henning@Kevin Steves
2007-12-11rearrange the page to read better; ok otto henningJason McIntyre
2007-12-07document adjfreq(2);Jason McIntyre
based on an initial diff from Simon Kuhnle, and input from Joerg Sonnenberger; ok otto
2007-12-04revert SIGQUIT catching; requested by deraadtFederico G. Schwindt
2007-12-04catch SIGQUIT too. ckuethe@ and henning@ ok.Federico G. Schwindt
2007-11-22be a bit less aggressive retrying; this keeps the message queueOtto Moerbeek
empty while in the -s period, so the poll timeout actually times out if there are no interfaces available. ok henning@
2007-11-22if the drift file is missing, reset adjfreq to zero; iirc diff from GlaserOtto Moerbeek
from a long time ago. ok ckuethe@
2007-11-12Remove space/tab compression function from lgetc() and replaceMarco Pfatschbacher
it with a simple filter in the yylex() loop. The compression in lgetc() didn't happen for quoted strings, thus creating a regression when tabs were used in variables. Some testing by todd@ and pyr@ OK deraadt@
2007-10-20ntpd and bgpd's turn to behave like the others.Pierre-Yves Ritschard
ok henning@
2007-10-19don't fill the logs; spotted by deraadt@ ok henning@Otto Moerbeek
2007-10-16Allow '=' to end a number in all lexers.Marco Pfatschbacher
Requested and OK deraadt@
2007-10-16in the lex... even inside quotes, a \ followed by space or tab shouldTheo de Raadt
expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). pointed out by mpf, discussed with pyr