79 Commits (ed8a0556b143d991f804f7145f293fa1dfecef84)

Author SHA1 Message Date
  otto 2dc039e348 be a bit less aggressive retrying; this keeps the message queue 17 years ago
  otto 8c79773d1d if resolving a name fails, be more aggressive retrying, but with care: 17 years ago
  deraadt c34c8f6d6a aggressive spelling fix, spotted by jbg 17 years ago
  henning 4f07972cbe use clock_gettime(CLOCK_MONOTONIC, ..) to get a monotonically increasing 18 years ago
  henning 9e886819ac in client_nextaddr, check fd != -1 before close, just nicer this way 18 years ago
  henning 43bb2c0b5f when ntp_sendmsg fails, reset trustlevel to TRUSTLEVEL_PATHETIC 18 years ago
  henning 8031d5c7e5 EADDRNOTAVAIL after connect is one of the soft errors where we don't abort 18 years ago
  otto 89f43414db Compensate old offsets with the amount of adjustment done, avoiding 18 years ago
  otto 24fa8ea878 Only invalidate stored replies if an adjustment was really made. 18 years ago
  ckuethe 9325c20f99 When ntpd backs off polling due to a negative delay, tell the user how long 18 years ago
  henning 309a243757 figure out the refid to send to NTP v3 clients early and store it 18 years ago
  dtucker 73c6d5ec9f Log source address for 'malformed packet' errors. ok henning@ 19 years ago
  dtucker f31cfdaa27 Propogate server's leap indicator flags to clients; ok henning@ 19 years ago
  dtucker 4eaa821e76 Print actual error when in debug mode; ok henning@ 19 years ago
  dtucker b5f096de27 add another non-fatal error for recvfrom; ok henning@ 19 years ago
  dtucker f9299bb123 Save transmit time for each peer for later use as refid for SNTPv4 19 years ago
  henning ed37b625d3 use a little state engine to keep track of delayed dns lookups and such, 19 years ago
  henning f2765f2a2f move the "reply from ... " log msg in -d mdoe uop a bit so it actually 19 years ago
  henning 7082200ffe prevent replies with negative delay from being used, could happen with -s 19 years ago
  henning 6801136c41 let client_query return 0 if it requested dns resolution 19 years ago
  henning 356208894f fix an error message 19 years ago
  dtucker c1809222fb Implement simple duplicate suppression of peer errors; ok henning@ 19 years ago
  dtucker 21a049e79f Simplify interval scaling and randomize query intervals; ok henning@ 19 years ago
  dtucker e0c54820e7 Make network unreachable errors non-fatal; ok henning@ 19 years ago
  dtucker 270c434643 Scale query interval by the overall offset not per-peer offset, so we 19 years ago
  dtucker 5d09ee1c02 Delay before retrying a query on timeout; ok henning@ 19 years ago
  dtucker 890af70b55 Poll unsynchronized servers at the maximum interval and log a message about 20 years ago
  dtucker f8fddf9886 Factor out interval scaling code; ok henning@ 20 years ago
  dtucker ec912cc477 If polling a server results in an error, drop that server to the maximum 20 years ago
  dtucker 1bfbeb3ca8 Discard replies with alarm flag set or invalid stratum; ok henning@ 20 years ago
  mickey a077b10ff0 define TRUSTLEVEL_MAX for the trustedlevel value of 10; henning@ ok 20 years ago
  mickey b521cde7ce uniquely name members of s_fixedpt and l_fixedpt; henning@ ok 20 years ago
  henning b84ae4cbbe ntp_adjtime() -> priv_adjtime() 20 years ago
  dtucker ceecbd1877 Use SA_LEN() instead of ss.ss_len. Evaluates to the same result but it's 20 years ago
  henning d94b864a67 in server mode reply with stratum from the peer that we currently prefer 20 years ago
  dtucker 3b0155d86c Only set IPTOS_LOWDELAY on IPv4 interfaces; pointed out by phessler, ok henning 20 years ago
  dtucker dcc316e5a2 Have ntpd use IPTOS_LOWDELAY; ok henning@ 20 years ago
  henning 0fe5ca5a17 in struct ntp_msg, rename "distance" to "rootdelay" to closer match RFCs 20 years ago
  henning 0d2f286428 thinko, htonl() -> ntohl(). as we don't use the value in question effect zero 20 years ago
  henning 0cd13f252a whitespace both in comment; from bernd 20 years ago
  henning abc9700cfb in client_addr_init() and client_nextaddr(), do not set up the socket and 20 years ago
  henning c25a5d5725 now that we connect() the client sockets we need to handle ECONNREFUSED as 20 years ago
  henning 944ef50b12 connect() the client-side sockets. idea & test & ok camield@ 20 years ago
  henning 80548b0292 add a new -s option, that tells ntpd to set the time using settimeofday() 20 years ago
  henning 372c584a99 paranoia: reset query->fd to -1 after close, from canacar some time ago 20 years ago
  otto 3fa78249ed Be more careful setting next and deadline, they should not both be != 0 20 years ago
  otto daecdacb15 Reset deadline on failed transmit. Avoids a spinning process if 20 years ago
  henning f5548494ff do not try to getaddrinfo() in the unprivileged process, send an imsg 20 years ago
  henning 5512eb59e0 when a dns lookup fails at parse time, do not abort but try again 20 years ago
  henning 6fe4af12fd wrap the heads for the linked list of addresses into a new ntp_addr_wrap 20 years ago