summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/client.c
AgeCommit message (Expand)Author
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
2005-01-28Simplify interval scaling and randomize query intervals; ok henning@Darren Tucker
2005-01-28Make network unreachable errors non-fatal; ok henning@Darren Tucker
2005-01-27Scale query interval by the overall offset not per-peer offset, so weDarren Tucker
2005-01-27Delay before retrying a query on timeout; ok henning@Darren Tucker
2004-12-15Poll unsynchronized servers at the maximum interval and log a message aboutDarren Tucker
2004-12-15Factor out interval scaling code; ok henning@Darren Tucker
2004-12-14If polling a server results in an error, drop that server to the maximumDarren Tucker
2004-12-13Discard replies with alarm flag set or invalid stratum; ok henning@Darren Tucker
2004-12-09define TRUSTLEVEL_MAX for the trustedlevel value of 10; henning@ okMichael Shalayeff
2004-12-08uniquely name members of s_fixedpt and l_fixedpt; henning@ okMichael Shalayeff
2004-11-10ntp_adjtime() -> priv_adjtime()Henning Brauer
2004-11-05Use SA_LEN() instead of ss.ss_len. Evaluates to the same result but it'sDarren Tucker
2004-10-22in server mode reply with stratum from the peer that we currently preferHenning Brauer
2004-10-15Only set IPTOS_LOWDELAY on IPv4 interfaces; pointed out by phessler, ok henningDarren Tucker
2004-10-14Have ntpd use IPTOS_LOWDELAY; ok henning@Darren Tucker
2004-10-13in struct ntp_msg, rename "distance" to "rootdelay" to closer match RFCsHenning Brauer
2004-10-13thinko, htonl() -> ntohl(). as we don't use the value in question effect zeroHenning Brauer
2004-10-08whitespace both in comment; from berndHenning Brauer
2004-10-05in client_addr_init() and client_nextaddr(), do not set up the socket andHenning Brauer
2004-09-30now that we connect() the client sockets we need to handle ECONNREFUSED asHenning Brauer
2004-09-24connect() the client-side sockets. idea & test & ok camield@Henning Brauer
2004-09-18add a new -s option, that tells ntpd to set the time using settimeofday()Henning Brauer
2004-09-14paranoia: reset query->fd to -1 after close, from canacar some time agoHenning Brauer
2004-08-16Be more careful setting next and deadline, they should not both be != 0Otto Moerbeek
2004-08-13Reset deadline on failed transmit. Avoids a spinning process ifOtto Moerbeek
2004-08-12do not try to getaddrinfo() in the unprivileged process, send an imsgHenning Brauer