DragonFly commits List (threaded) for 2007-06
DragonFly BSD
DragonFly commits List (threaded) for 2007-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/usr.sbin/dntpd client.c client.h defs.h log.c main.c socket.c

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Jun 2007 14:33:36 -0700 (PDT)

dillon      2007/06/25 14:33:36 PDT

DragonFly src repository

  Modified files:
    usr.sbin/dntpd       client.c client.h defs.h log.c main.c 
  Recode the state machine to make it a bit less confusing.  Collapse the
  two failure states into a single failure state and handle failure processing
  in each state.
  Handle DNS failures by having dntpd relookup failed DNSes occassionally.
  dntpd will now relookup the server name if a server fails, allowing you
  to specify domains which front pools of ntp servers.  dntpd will also
  check for duplicate IPs and relookup again (up to a point).
  Add a sanity check.  If two or more servers are specified a quorum of
  servers must agree that the selected time offset is reasonable.  For the
  moment do a +/- 30 second check (though we can probably make this +/- 2
  seconds).   If a server is determined to be broken, scrap its data and
  reconnect.  If it is still broken, permanently disable it.  This is
  primarily to handle severely broken servers that are occassionally present
  in ntp pools.
  Revision  Changes    Path
  1.11      +333 -66   src/usr.sbin/dntpd/client.c
  1.7       +9 -4      src/usr.sbin/dntpd/client.h
  1.10      +7 -2      src/usr.sbin/dntpd/defs.h
  1.4       +20 -0     src/usr.sbin/dntpd/log.c
  1.10      +55 -6     src/usr.sbin/dntpd/main.c
  1.4       +9 -10     src/usr.sbin/dntpd/socket.c


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]