174 Commits (4bcb70b1fc217a5ece21a73bcce4086cd2333af6)

Author SHA1 Message Date
  henning e409afcfa7 use SIG_DFL instead of SIG_IGN when we are not interested in SIG_CHILD 20 years ago
  henning df2265ded1 superfluous comma, From: James Herbert <lists@artyzan.net> 20 years ago
  dtucker 348fc30c4d Calculate Hz and round up; ok henning@ 20 years ago
  henning cda611d670 use clock_getres(3) and calculate precision from that, and fill the 20 years ago
  henning 5b5fccf2aa oups 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 a4e395e47f set rootdelay in replies. 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 d71785f980 fall cleaning 20 years ago
  henning 7096d1be44 correctly set refid in replies with NTP protocol versions < 4. 20 years ago
  henning e310ae01b8 when we get back a IMSG_HOST_DNS message from the parent the peer ID within 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 addeddaa0e do not take the average offset from all peers when calculating the total 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 75dafda684 reset chld_pid to 0 when acting upon a SIGCHLD so we don't try to send it 20 years ago
  henning 2a5d85f042 greatly improved by jmc with some tweaks by yours truly 20 years ago
  henning b676d8a001 jmc says S before s and not s before S, sssssssso we do. 20 years ago
  henning 8cf519f664 implement -S to override earlier -s, requested by theo 20 years ago
  henning d756895955 say when we run settimeofday() with -s and when not, help from bob 20 years ago
  henning 2f6447073a don't call settimeofday() when the offset is smaller than 180 seconds, 20 years ago
  henning 80548b0292 add a new -s option, that tells ntpd to set the time using settimeofday() 20 years ago
  henning 25a5d7fd19 do not bother overallocating and shrinking the pfd and idx2peer arrays, 20 years ago
  henning 1952adadc6 the "type" param to imsg_compose and imsg_create is really an 20 years ago
  henning 19e1a3d9e7 in imsg_compose: 20 years ago
  henning 5d20af9c99 use imsg_add instead of the lower level buf_add in imsg_create; it already 20 years ago
  henning ca742b9675 ewps... 20 years ago
  henning 88ad9df9d9 need buf_free() to free buf, free() is not good enough 20 years ago
  henning 7b3f946188 imsg framework cleanup: 20 years ago
  henning 1376183807 malloc the imsg buffers instead of having them statically, suggested by 20 years ago
  henning 10cacbacd8 kill another unused function and two debugging printfs 20 years ago
  henning 364aac1c51 remove the unused variable/macro code, ok theo 20 years ago
  henning af877d3b2a unused variables, theo 20 years ago
  henning 3113a84826 missing include, from theo 20 years ago
  henning 062c33dcbf remove buf_write(), not used in ntpd. found by theo 20 years ago
  henning 372c584a99 paranoia: reset query->fd to -1 after close, from canacar some time ago 20 years ago
  henning 436da7f7ee correctly track peer count. fixes a memory corruption. 20 years ago
  henning 003e3aa51d ignore ntp_sendmsg()s return value in server_dispatch. could result in 20 years ago
  henning a8c5498014 don't forget to set *hn... theo ok 20 years ago
  deraadt 709ac609c7 skip early DNS lookups -- they are deferred to later; ok otto ho henning 20 years ago
  deraadt f66c7f6404 ENOBUFS, EHOSTUNREACH, ENETDOWN and EHOSTDOWN are bad reasons to log; ok otto henning 20 years ago
  henning f04f23feb6 don't fatal() if getaddrinfo() returns EAI_NONAME 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 8ff7717b78 order #includes, Brian Poole <raj@cerias.purdue.edu> 20 years ago