dtucker
348fc30c4d
Calculate Hz and round up; ok henning@
20 years ago
henning
cda611d670
use clock_getres(3) and calculate precision from that, and fill the
precision field when we reply in server mode accordingly. from phessler
20 years ago
millert
0e9fb296b0
Change return value of reentrant getproto* and getserv* to match the
IBM/Digital API.
20 years ago
henning
5b5fccf2aa
oups
20 years ago
henning
d94b864a67
in server mode reply with stratum from the peer that we currently prefer
plus one
20 years ago
itojun
493321fdbb
default pf rule too restrictive for IPv6 (need to allow NS/NA). deraadt ok
20 years ago
fgsch
75f0fbfc04
install net80211 headers; millert and deraadt ok.
20 years ago
deraadt
04be0693ac
make all route commands use -qn; ok mcbride henning
20 years ago
grange
54aa8f7176
Use inet6 pf rules only for inet6-capable setups, first spotted
by form@pdp-11.org.ru .
ok todd@ henning@
20 years ago
otto
86189206cf
implement strnunvis(3), a bounded version of strunvis(3). ok millert@
20 years ago
millert
402f3b0bb4
Reentrant versions of getprotoent(3) and getservent(3). Adapted from
changes in NetBSD by Christos. OK otto@
20 years ago
dtucker
3b0155d86c
Only set IPTOS_LOWDELAY on IPv4 interfaces; pointed out by phessler, ok henning
20 years ago
kettenis
7094ff0c68
Add dl_iterate_phdr() support.
ok drahn@, millert@
20 years ago
dtucker
dcc316e5a2
Have ntpd use IPTOS_LOWDELAY; ok henning@
20 years ago
henning
a4e395e47f
set rootdelay in replies.
inherit rootdelay from the delay from the last client update from the peer
that we picked last time to adjust the local clock.
in some cases we use the average offset between two peers' client updates,
then use the average delay between the two as well.
20 years ago
henning
0fe5ca5a17
in struct ntp_msg, rename "distance" to "rootdelay" to closer match RFCs
and such
20 years ago
henning
0d2f286428
thinko, htonl() -> ntohl(). as we don't use the value in question effect zero
20 years ago
henning
d71785f980
fall cleaning
20 years ago
henning
7096d1be44
correctly set refid in replies with NTP protocol versions < 4.
code path for NTP4 remains unchanged, we already set refid correctly there.
NTP3 and older uses an IPv4 address as refid.
use the IP of the server we last synced to if it was a IPv4 one.
sometimes we use the average offset between two, in that case just pick
one for the IP.
this scheme naturally fails when we query IPv6 servers and have to reply
to IPv4 NTP3 (or even older NTP versions) clients - refid stays at 0 then.
this is a protocol limitation, nothing we can do about it.
20 years ago
henning
e310ae01b8
when we get back a IMSG_HOST_DNS message from the parent the peer ID within
might have become invalid (because the peer showed up, dns request sent to
parent, peer vanishes, and then the reply comes back), so do not fatal() in
that case but just log_warnx(). provoked by brad
20 years ago
mcbride
c25e5297b3
Enable crypto(4), hifn(4) and create /dev/crypto
ok miod@
20 years ago
henning
0cd13f252a
whitespace both in comment; from bernd
20 years ago
millert
84588639d1
GLOB_NOESCAPE is POSIX so move it out of the #ifndef _POSIX_SOURCE block.
20 years ago
henning
abc9700cfb
in client_addr_init() and client_nextaddr(), do not set up the socket and
connect it, instead leave it at -1.
in client_query, set up and connect the socket if it is -1.
and, the real reason for this change: handle connect failures gracefully
ok otto
20 years ago
henning
addeddaa0e
do not take the average offset from all peers when calculating the total
offset to correct the local clock, but use the median.
given a reasonable sized set of servers this makes us nearly immune against
outliers or flasetickers, without the need for a horribly complicated outliers
detection which does not yield to better results anyway.
test & ok otto
20 years ago
jcs
7d3f263226
sync
20 years ago
jcs
ec251c522e
nvram driver for i386 through /dev/nvram
currently read-only
ok grange@, marius@
20 years ago
espie
ed5989fb23
let stdbool.h work with recent gcc, since they modified the interface,
again...
okay millert@ a while back, needed some more paranoid testing from my
part...
20 years ago
henning
bd051447a7
comment out the listen on statements, we don't want any by default,
and some minor tweaks
20 years ago
jsg
32715ebf87
add some missing $, ok djm@ 'That looks fine to me' millert@
20 years ago
henning
c25a5d5725
now that we connect() the client sockets we need to handle ECONNREFUSED as
non-fatal too, from camield@
20 years ago
drahn
aa39de2207
sync
20 years ago
drahn
0c20b65be2
Move ksym to a more reasonable number. (matches committed ksym entry)
20 years ago
henning
8b435b2e5d
kill double whitespace, PR3934, for rea this time and without unrelated
changes
20 years ago
henning
4f76d817e0
ooopppssss, backout last, lots of unrelated changes creeped in, noticed
by jmc
20 years ago
henning
eb0e629233
double whitespace, one from PR3934
20 years ago
henning
944ef50b12
connect() the client-side sockets. idea & test & ok camield@
20 years ago
henning
75dafda684
reset chld_pid to 0 when acting upon a SIGCHLD so we don't try to send it
a kill then - tiny possible race there
pointed out by Brian Poole <raj@cerias.purdue.edu>
20 years ago
hshoexer
d634356675
it's net.inet.esp.udpencap and not net.inet.udpencap.enable
ok ho henning msf
20 years ago
miod
a97609a2f0
Regen
20 years ago
miod
ccb4a7f1cf
Add missing devices (pci, systrace...) and sort sections so that the
manpage will not look ugly.
20 years ago
millert
306ca78d1d
Add HISTORY; from Jose Nazario
20 years ago
miod
8a0dd23586
Regen
20 years ago
miod
507f1059c1
/dev/ptm support for sgi.
20 years ago
henning
2a5d85f042
greatly improved by jmc with some tweaks by yours truly
20 years ago
henning
b676d8a001
jmc says S before s and not s before S, sssssssso we do.
20 years ago
henning
8cf519f664
implement -S to override earlier -s, requested by theo
20 years ago
henning
d756895955
say when we run settimeofday() with -s and when not, help from bob
20 years ago
jmc
b2a79b2f2e
back out my previous commit: beck@ says spamd-setup(8) is correct;
20 years ago
henning
2f6447073a
don't call settimeofday() when the offset is smaller than 180 seconds,
adjtime() will fix that fast enough, from discussion in theo's living room
ok mcbride beck
20 years ago