otto
a36fba04b6
Do not forget to test the lower bound if the upper bound > LLONG_MAX.
ok millert@
20 years ago
millert
baad1c3ad7
Avoid comparing unsigned and signed long longs since the signed
one will get implicitly cast to unsigned. Fixes a bug with negative
minval noticed by mjc@. Similar to a diff from miod@. OK miod@.
20 years ago
henning
dff91603d5
do not install netiso header files, millert deraadt ok
20 years ago
henning
1a0b9f6851
new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>
20 years ago
henning
4a343adcd5
do not do the stratum guessing dance.
stratum is pretty much pointless anyway these days, and we certainly
do not want to send out illegal packets (stratum=0) until synced...
20 years ago
millert
efc1e13dfc
Remove /etc/passwd.conf
20 years ago
millert
20709cb14a
passwd.conf has been deprecated since login.conf was imported.
Today it finally dies. Based on a diff from Gabriel Kihlman.
20 years ago
marc
059a2dd23c
errno changes, lib major version bumps, and general flag day
To build you must:
cd /usr/src && make obj && make includes
cd lib/libc && make depend && make && NOMAN=1 sudo make install
cd /usr/src && make build
20 years ago
jmc
a509bb097c
tweaks; ok henning@
20 years ago
alexander
56d2eb7b65
Respond to client queries with better server statistics. We now output
a close-to-reality stratum, a real reference time, and a leap indicator
that will indicate if the local clock isn't synchronized.
This also means that until the server feels it's synchronized, it will
tell the clients it isn't. This is normal, and correct.
ok henning@
20 years ago
alexander
6ea5a8e216
ignore obviously malformed queries; ok henning@
20 years ago
henning
d593a89801
liek bgpd, use a socketpair(2) instead of a pipe(2)
20 years ago
dtucker
45199b1095
Add missing newlines
20 years ago
dtucker
4b7b3363bd
Replace errx with equivalent fprintf+exit to make porting easier; ok henning@
20 years ago
dtucker
e8355e306b
Use SA_LEN(sa) instead of sa->sa_len; ok henning@
20 years ago
alexander
ce8c1ff72e
Start collecting the remote server state along with the calculated
offsets, in preparation for having correct server statistics in
responses to client queries. ok henning@
20 years ago
alexander
4a0548a461
KNF; ok henning@
20 years ago
alexander
d1a5206262
short fixed point <-> double conversion routines; ok henning@
20 years ago
alexander
86d8c45421
correct leap indicator mask; ok henning@
20 years ago
henning
d85732044e
missing {}
20 years ago
henning
042700aed2
check wether we have enough data to form a peer update on receiption
of each packet, not only after each 8th (where we have enough for sure)
20 years ago
henning
b0438e2e01
oups
20 years ago
henning
d2decbe40d
scale query interval based on local clock offset. tested by many
not as efficient as I want it to be yet, but more is coming
20 years ago
deraadt
6cdf6e9f4a
make lint a wee bit happier
20 years ago
jmc
bb486dac9b
make date(1), rdate(8), ntpd(8), and timed(8) .Xr themselves;
mostly from Andreas Kahari (PR #3846 );
20 years ago
otto
2d0abebaa2
Do not forget to initialize head. ok henning@
20 years ago
deraadt
bc46ad847f
too chatty; ok henning
20 years ago
henning
cb18fdd6ed
don't panic when sendto() fails; for the client part just re-schedule
noticed & fix tested by fries@
20 years ago
henning
3266f15dd7
don't try to update the clock when we have no data
20 years ago
jaredy
68ee106621
various cleanup:
- mention '#' comments
- fix macros for directives
- typos
- change list display
- ntp -> NTP
- slight rewording
help and ok jmc
ok henning otto
20 years ago
henning
645e5a78aa
the child process needs to ignore SIGHUP for now, otto
20 years ago
henning
7d74cf41b4
remove leftover pieces of on-the-fly reconfig shitz that made ntpd exit on
SIGHUP, noticed by otto
20 years ago
henning
4b686ed70a
soem tweaks from the Frankfurt->Hamburg flight
20 years ago
henning
14f72744de
it is "servers" now for pool.ntp.org
20 years ago
henning
8d7f06ed15
document the "servers" keyword
20 years ago
henning
cf385f93cd
rework dns handling with all its cosequences...
we know have both a "server" and "servers" keyword. they differ when the
hostname resolves to more than one IP, server picks one and servers expands
to all.
that means no longer stuffing a sockaddr_storage into ntp_peer but a pointer
to a linked list of ntp_addr structs.
in the "servers" case the list of n addresses returned by host() is expanded
into n ntp_peer structs and thus n individual peers.
in the "server" case the whole list is attached to ntp_peer, and whenever we
do not receive a reply in time we traverse the list one further, so that
hosts with both AAAA and A records are first tried with the AAAA one but
we gracefully fall back to the A one.
semantics with theo; hacked up on the Montreal->Frankfurt flight.
again Air Canada surprised me, that older 767 hat pretty decent seats.
20 years ago
henning
1aa4442f07
when calculating the timeout for poll() we need to take the deadlines for
the outstanding queries into account
just-before-meal from the Montreal->Frankfurt flight
20 years ago
millert
84b4f5d4e8
POSIX says "data" is void *, not char *. Also remove extern from prototypes.
deraadt@ OK
20 years ago
henning
693a157803
kill traces of on-the-fly reconfigure (from bgpd), not needed in ntpd
20 years ago
henning
9913070411
remove a bogus always-true test before adjtime()
20 years ago
henning
7364dc1c59
remove all handling of netmasks/prefix lengths - we don't need that in ntpd.
fixes the dns resolves to v4 and v6 addresses bug found by phessler
hacked on the Calgary->Montreal flight that proved that Air Canada _does_
have some modern aircrafts with good seats
20 years ago
henning
23963e1ca9
log_debug() when a peer doesn't answer in time
20 years ago
henning
b6bb1936a0
lof replies with log_debug so one gets increased verbosity when in
foreground/debug mode
20 years ago
henning
be71ed5f08
make log_debug() only log anything at all when we are in debug mode
before, it would log with LOG_DEBUG to syslog when !debug
20 years ago
jmc
4802b1c4fb
tweaks; ok henning@
20 years ago
jmc
e7a525d469
add rdate(8) to SEE ALSO;
20 years ago
alexander
a8cb348cd7
RFC 2030 is incorrect with regards to the computation of the delay value
for NTP queries/replies. RFC 1305 and some of Mills' other papers have
the correct formula.
ok henning@
20 years ago
henning
2a97ac1447
+ ntpd.conf, Bernd Ahlers <ba@bsws.de>
20 years ago
henning
727098a446
help the compiler a bit with a cast, spotted by theo
20 years ago
alexander
353bc5222d
* Convert to use the new double-based time handling functions.
* Respond to the query with a reasonable received time (which
will help clients get better accuracy).
* Consolidate the server response code in preparation for a
completely 'proper' response to the client.
tips and ok from henning@
20 years ago