summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/client.c
AgeCommit message (Expand)Author
2022-03-24Plus a small leak found by jmatthew; ok millert@Otto Moerbeek
2021-04-21Improve ntpd offset handling. Call the index of the offset loopsAlexander Bluhm
2021-03-18The ntpd client code corrects both T1 and T4 with the current offsetAlexander Bluhm
2020-09-11If we get messages but they are not ntp replies (e.g. caused byOtto Moerbeek
2020-01-30Properly determine era 0 or era 1, making it possible to move pastOtto Moerbeek
2019-11-10Introduce a "trusted" modifier, for peers that should be on a local netOtto Moerbeek
2019-11-10typoTheo de Raadt
2019-07-07Sometimes ntp peers are unreliable (looking at you pool.ntp.org!)Otto Moerbeek
2019-06-20Do a quick DNS probe to decide to stay in the forground and attemptOtto Moerbeek
2019-06-16Be more aggressive retrying dns while in settime mode. The constraintOtto Moerbeek
2019-06-09Introducing autmatic settime mode: if some preconditions are metOtto Moerbeek
2019-05-29If a DBS resolve was done with the Checking Disabled flag, re-resolveOtto Moerbeek
2017-05-30add option "query from <ip>" to ntpd.conf, to specify a local IPSebastian Benoit
2016-09-03Remove the oh so funny "LOSS OF MIND" from the diclaimer that was notReyk Floeter
2015-10-23Allowing upstream servers of ntp being in multiple routing tables isPeter Hessler
2015-07-18replace bzero with memsetBrent Cook
2015-03-28Avoid overflow on 32-bit time_t systems converting timeval to NTP time.Brent Cook
2015-02-12Use ntpd's deferred DNS resolving for constraints as well. ThisReyk Floeter
2015-02-10Add support for "constraints": when configured, ntpd(8) will query theReyk Floeter
2015-01-19Use initial assignment of action to check for errors.Brent Cook
2015-01-09return -1 on host() address parsing failure, not 1.Brent Cook
2015-01-09remove excessive/wrong use of sys/param.hTheo de Raadt
2015-01-04use MAXIMUM as the canonical local MAX macro.Brent Cook
2015-01-04don't rely on sys/param.h having a MAX macro.Brent Cook
2014-05-12Fix format strings involving time_t arguments, fixes `ntpd -d' on sparc (andMiod Vallat
2013-10-21remove the IPv4-only check for rdomains, allows IPv6 to use themPeter Hessler
2013-10-04Add ntpctl(8), which allows us to query the locally running ntpd(8) processPeter Hessler
2013-04-30Remove unused function argument variables 'len' and 'auth' fromMarcus Glocker
2011-09-21Add rdomain support to NTPd.Peter Hessler
2009-06-24recvmsg ENOENT noncritical tooHenning Brauer
2009-06-17ENOPROTOOPT is non-fatal on recvfrom, can apparently happen with ipvshitHenning Brauer
2009-05-31use the SCM_TIMESTAMP socket option to get the time we received theHenning Brauer
2009-04-22ignore replies with timestamps after 2030 to prevent time_t / tv_sec wrapsHenning Brauer
2009-03-04I should know outside data must be vis(3)'d.Kevin Steves
2009-03-04received refid should not be converted to host byte order; ok henning@Kevin Steves
2009-03-04log reason when not synced; ok henning@Kevin Steves
2008-06-10For IPv6 addresses, return the first 32 bits of the MD5 hash of theChristian Weisgerber
2008-06-10According to the latest SNTPv4 spec in RFC4330, secondary serversChristian Weisgerber
2008-01-28Reconnect a client socket after three consecutive send failures.Marco Pfatschbacher
2007-12-27some fatal() calls that should be fatalx(); ok henning@Kevin Steves
2007-11-22be a bit less aggressive retrying; this keeps the message queueOtto Moerbeek
2007-05-01if resolving a name fails, be more aggressive retrying, but with care:Otto Moerbeek
2007-04-30aggressive spelling fix, spotted by jbgTheo de Raadt
2006-10-27use clock_gettime(CLOCK_MONOTONIC, ..) to get a monotonically increasingHenning Brauer
2006-10-21in client_nextaddr, check fd != -1 before close, just nicer this wayHenning Brauer
2006-10-21when ntp_sendmsg fails, reset trustlevel to TRUSTLEVEL_PATHETICHenning Brauer
2006-10-21EADDRNOTAVAIL after connect is one of the soft errors where we don't abortHenning Brauer
2006-06-07Compensate old offsets with the amount of adjustment done, avoidingOtto Moerbeek
2006-06-04Only invalidate stored replies if an adjustment was really made.Otto Moerbeek
2006-05-29When ntpd backs off polling due to a negative delay, tell the user how longChris Kuethe