otto
c01a2e9569
set session id and init logging in -s mode. tested by david@ and matthieu@;
ok henning@
18 years ago
otto
24133ce79c
simplify; ok henning@
18 years ago
otto
89f43414db
Compensate old offsets with the amount of adjustment done, avoiding
overcompensating. From DragonFly, uses recent adjtime(2) changes,
so you'll need a recent kernel. ok henning@
18 years ago
otto
24fa8ea878
Only invalidate stored replies if an adjustment was really made.
ok henning@
18 years ago
henning
9be86cfc22
just ise "HARD" as refid with sensors for v3 clients
18 years ago
henning
216ee11434
incredibly stupid typo
18 years ago
otto
fc47aa1fcc
even though the bounds are long long having an upper bound of
ULONG_MAX does not work; the max upper bound is LONG_MAX,
since LONG_MAX == LLONG_MAX on 64bit archs. ok deraadt@ henning@
18 years ago
otto
5ca49f4a5e
When expanding servers, do not forget to copy weight. ok henning@
18 years ago
henning
1110d359db
urgs, other stuff snuck in
18 years ago
henning
5a53deb317
do not use /dev/hotplug for now, only one reader supported yet
18 years ago
henning
baf806507d
put back regular sensors scanning
18 years ago
henning
eea91760ae
only actually run sensor_query when it is due, not every time poll returns
18 years ago
ckuethe
9325c20f99
When ntpd backs off polling due to a negative delay, tell the user how long
it will wait until the next poll.
ok henning@
18 years ago
jmc
0d1cb4cfe1
better wording for the "weight" section;
18 years ago
jmc
146a76e0cb
document the optional "weight" keyword, and a little cleanup;
from henning and myself
18 years ago
henning
d4fd11008a
when we cannot open /dev/hotplug, donn't bail, just work without
with ckuethe
18 years ago
henning
52daf64bf5
allow for weight to be added to sensors or servers, so that one can
weight timedelta sensors higher than ntp peers, for example
ok deraadt mbalmer
18 years ago
henning
24755fb155
get clock src id from the timedelta sensor desc.
unfortunately I still don't have any hardware to test this ;(
18 years ago
henning
60325542b8
if sysctl gives ENOENT the sensor is gone and we remove it
18 years ago
henning
b2a25c5f18
let sensor_query handle removals itself
18 years ago
henning
1314afba48
sensor_byid not needed any more
18 years ago
henning
18724bbfff
hotplug devid will go away in a minute, so don't use it here any longer
18 years ago
henning
494460017f
do not bother with rmeoval events, we remove sensors whoch vanished or
are not a timedelta sensor any more on query on the fly anyway
18 years ago
jmc
405e658006
small grammar improvement;
18 years ago
henning
d5fece7cde
DV_SENSORS is no more, plug workaround for the time to the real solution
18 years ago
henning
790a2f0010
make use of the new hotplug events for sensors showing up or vanishing
18 years ago
henning
54fb320578
add sensor_byid(), return sensor by its id
18 years ago
henning
d3875817fc
stop passing the config around all time, just store one copy
18 years ago
henning
66277ecc3d
factor out sensor_probe from sensor_scan so we can probe a sensors when
we know its idea without scanning all again
18 years ago
henning
1c3c1ca642
make ntpd listen on the hotplug socket and decode yadda yadda, because
new sensors showing up will be announced that way when slacking ml comes
back from food
18 years ago
henning
c24767cca2
scan for new timedelta sensors every five minutes for now, ok deraadt
18 years ago
henning
9bb919c475
ntpd does timedelta sensors now too
18 years ago
henning
fe9a290e7a
document timedelat sensors. ok deraadt
18 years ago
henning
f687c4f193
config file bits for timedelta sensors, so one can specify which devices
to use. "sensors *" just uses all. untested due to lack of hardware.
hacked on the road somewhere between vancouver and calgary
18 years ago
deraadt
1036a9d27a
\<char> is <char> except for \<newline> -- no exceptions. much like how
other things work. ok henning
18 years ago
henning
21382f5e23
add support for timedelta sensors, which pretty much means udcf(4) right
now. untested due to lack of hardware, and it wouldn't have worked in the
plane anyways. work in progress, currently picks up and uses all sensors
it finds, config file bits to be added soon. theo fine with this going in
18 years ago
henning
1d2ad6e90a
more bits from transatlanic flight:
make priv_adjtime() deal with offsets, not peers.
18 years ago
henning
309a243757
figure out the refid to send to NTP v3 clients early and store it
first bits from a way to long flight
18 years ago
henning
926119b732
make listen on example idiot proof
suggested by "Karsten W. Rohrbach" <karsten@rohrbach.de>
18 years ago
henning
a139e32a41
PFD_MAX betterer than harcoded 1
18 years ago
stevesk
b020f35b9f
handle -1 return from host_dns(); ok henning@
19 years ago
dtucker
a37ee71683
Do not attempt to listen on interfaces with a wildcard address; ok henning@
19 years ago
dtucker
d71b0751da
Check SA_LEN(sa) after sa is checked for NULL. Pointed out by solar at
openwall.com, ok henning@
19 years ago
dtucker
73c6d5ec9f
Log source address for 'malformed packet' errors. ok henning@
19 years ago
wvdputte
33dc34f1c7
when running ntpd with "-s" as it's argument from /etc/rc.conf, make sure the
output goes to syslog and not console by moving around log_init
OK henning@, markus@ and mblamer@
19 years ago
henning
04339771ec
on writing, we actually can deal with ENOBUFS just as well as with EAGAIN
and EINTR, so do it, more or less from bgpd
19 years ago
henning
3b0d5b83e8
check for EINTR too after writev(), pt out by Alexander Farber
19 years ago
dtucker
f31cfdaa27
Propogate server's leap indicator flags to clients; ok henning@
19 years ago
henning
4cc3be5e18
with -s, do not wait if we don't have any peers at all.
From: Thomas Jarosch <thomas.jarosch@intra2net.com>
19 years ago
dtucker
020dd82b59
Skip invalid interfaces during 'listen on *'; ok henning@
19 years ago