david
4588e28098
remove ntp.conf and add ntpd.conf; ok henning@
20 years ago
henning
f9b849bb9e
server spec takes hostnames now, default to pool.ntp.org
20 years ago
henning
4a8fb608ce
yuck, another bad sizeof(). again in code hacked on the Frankfurt->Montreal
flight. should we draw concludions from that? I'd like to blame the
Air Canada seats...
20 years ago
henning
21aaad0466
host_* now returns pointers, so the error return is NULL and not 0
20 years ago
henning
05a94ce779
swicth all the host_* functions to work on a newly invented
struct ntp_addr, which just wraps a sockaddr_storage and a next pointer,
so that host_dns can return more than one entry.
let host_dns do exactly that, return a list of all IPs for that hostname
adjust all callers in the grammar to cope with that
20 years ago
henning
d8e805cbfb
servers can be given as hostnames now
20 years ago
henning
ccb62d3811
keep a "trustlevel" per peer. loose credit for loosing a packet, loose
a lot of credit for not having supplied us with enough data within an
adjtime run interval, and get a little credit each time we get a good
reply packet. if a peer is below 20%, only send a packet occasionally to
see wether it is back. send out queries much more often between 20 and 80%
to (re-)sync quickly, and above 80% usethe regular interval.
do not use peers < 60% for calculating teh local clock offset.
designed with theo at the pho, alexander ok
20 years ago
henning
1bd657839e
Implement the clock filter as descirbed by David Mills:
form the last 8 replied received from a peer, find the one with the lowest
delay. Use that as the peer's update taken into account for calculating
the local clock's offset.
Invalidate that reply and all ones received earlier than it so that they do
not get used again.
20 years ago
henning
6127dae75c
sizeof(wrong struct) in calloc == bad. ^$&(#^$%&#*)!
20 years ago
henning
12fb5f8424
when we received a apcket with incorrect cookie log from whom as well
20 years ago
jason
1694ed9e27
log host packet was received from (originally using a long convoluted
function until henning showed me the light... log_sockaddr... nifty);
this diff is from henning and should be henning ok =)
20 years ago
henning
a62ef89ddb
allow hostnames and resolve them in the config file
20 years ago
naddy
ca612edc92
initialize the variables that track the offset array; ok henning@
20 years ago
henning
33684f5b14
eh, actually add the startup code for ntpd
20 years ago
deraadt
9966f66b52
bit too rushed :-)
20 years ago
henning
9449fe79c2
remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer
20 years ago
henning
83435a0b47
sample ntpd config file
20 years ago
henning
e490cc8936
keep last 8 offset,delay pairs - we'll need them for the clock filters later.
for now, average over those to adjust the local clock.
20 years ago
henning
25baf3f656
delay, not error
20 years ago
otto
74f0809de0
use correct multiplier for us -> s conversion
20 years ago
henning
ff435348cf
don't limit to one remote server any more
20 years ago
henning
7cb3db11e2
calculate the median offset from all servers we sync to and call
adjtime() when necessary to keep the local clock in sync
yes, that means ntpd syncs the local clock now.
20 years ago
henning
43d3d7e70a
put interval defines in ntpd.h and name them consistently
20 years ago
henning
d6fd2597f7
simplify slightly
20 years ago
henning
bc7ac3d288
KNF
20 years ago
alexander
9b6618babd
Compute the local clock offset from the server's response.
ok henning@
20 years ago
alexander
ff4cb11db4
wrong struct calloc'ed; ok henning@
20 years ago
jmc
9ddc3b1129
kill dead .Xr to memory(3);
from kjell@
20 years ago
mickey
4e03788cf2
add two commented out vars to set
20 years ago
millert
a7c3ce90a9
/usr/share/doc/html/milter
20 years ago
matthieu
bbfacb6f3c
We don't provide kxd anymore. ok henning@
20 years ago
alexander
381c8ef653
When no listener is specified, create a listener on every IP. Problem
reported by Peter Hessler. ok henning@
20 years ago
millert
15016550a0
Add /usr/include/libmilter
20 years ago
millert
051f4d9789
make includes in gnu/usr.sbin/sendmail/libmilter
20 years ago
ho
3e87b40f88
Default enable udpencap. Add 'disable' sysctl to sysctl.conf. markus@ ok.
20 years ago
deraadt
09b1cd4ecc
build & ship bsd.rd
20 years ago
tom
f68fdae108
Add genericstable to the list of databases we can create automatically.
"looks fine" millert@
20 years ago
deraadt
f94c3bd71d
hsearch API/ABI u_int -> size_t -> crank majors; ok millert
20 years ago
millert
c90a644274
Working hcreate(3) et al from NetBSD (cgd) via ray at cyth dot net.
Now passes the regress tests.
20 years ago
espie
1452d17230
Cosmetic clean-up.
Simpler licence, update copyright years, trim empty lines, ISO declarations.
okay miod@
20 years ago
alexander
62e55d8051
Precedence and type fix; ok henning@
20 years ago
ho
f1bf9ca4e3
Add ipsec-nat-t at port 4500
20 years ago
jfb
7a1e9128cc
Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@
20 years ago
marc
620a3670ec
errno -> err in a structure. OK deraadt@
20 years ago
avsm
95bbd623be
add bounds check for src pointer in bcopy(3) as well as dest pointer,
noticed by millert@
20 years ago
itojun
2ae4d4b588
pop3 over tcp6
20 years ago
miod
eec56b624d
Regen.
20 years ago
miod
303f1eefce
Add /dev/crypto support.
20 years ago
henning
c1beef1cf2
size struct pollfd and idx2peer dynamically instead of imposing an arbitary
limit on OPEN_MAX, modeled after bgpd
20 years ago
henning
a4881967ba
ewps, add ntpd.conf.5
20 years ago