cvs commit: src/usr.sbin/dntpd client.c client.h defs.h log.c main.c socket.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Jun 25 14:39:04 PDT 2007
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
socket.c
Log:
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
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/dntpd/client.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/dntpd/client.h.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/dntpd/defs.h.diff?r1=1.9&r2=1.10&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/dntpd/log.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/dntpd/main.c.diff?r1=1.9&r2=1.10&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/dntpd/socket.c.diff?r1=1.3&r2=1.4&f=u
More information about the Commits
mailing list