summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/client.c
AgeCommit message (Expand)Author
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
2006-05-25figure out the refid to send to NTP v3 clients early and store itHenning Brauer
2005-09-24Log source address for 'malformed packet' errors. ok henning@Darren Tucker
2005-08-10Propogate server's leap indicator flags to clients; ok henning@Darren Tucker
2005-07-11Print actual error when in debug mode; ok henning@Darren Tucker
2005-07-06add another non-fatal error for recvfrom; ok henning@Darren Tucker
2005-07-05Save transmit time for each peer for later use as refid for SNTPv4Darren Tucker
2005-06-19use a little state engine to keep track of delayed dns lookups and such,Henning Brauer
2005-04-19move the "reply from ... " log msg in -d mdoe uop a bit so it actuallyHenning Brauer
2005-04-18prevent replies with negative delay from being used, could happen with -sHenning Brauer
2005-03-08let client_query return 0 if it requested dns resolutionHenning Brauer
2005-02-21fix an error messageHenning Brauer
2005-02-03Implement simple duplicate suppression of peer errors; ok henning@Darren Tucker