otto
218fc01263
don't fill the logs; spotted by deraadt@ ok henning@
17 years ago
henning
f9096ad09f
use __packed structs for the on-the-wire packets and just memcpy at once
instead of kind-of manual copyin/out. increases accuracy in server mode.
collecting dust in my tree for some time, result of a conversation with
somebody i really want to give credit to, but I can't find the mails now :(
okey dokey sez theo
17 years ago
otto
b10a9a26fe
remove some unneeded includes; one found by vetinari
18 years ago
dtucker
73c6d5ec9f
Log source address for 'malformed packet' errors. ok henning@
19 years ago
dtucker
1cc3aedb19
sendto() takes socklen_t as an argument; ok henning@
20 years ago
mickey
668e680350
use two tiny macros for copying fields out to simplify reading; henning@ ok
20 years ago
mickey
b521cde7ce
uniquely name members of s_fixedpt and l_fixedpt; henning@ ok
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
henning
0fe5ca5a17
in struct ntp_msg, rename "distance" to "rootdelay" to closer match RFCs
and such
20 years ago
henning
d71785f980
fall cleaning
20 years ago
henning
944ef50b12
connect() the client-side sockets. idea & test & ok camield@
20 years ago
deraadt
f66c7f6404
ENOBUFS, EHOSTUNREACH, ENETDOWN and EHOSTDOWN are bad reasons to log; ok otto henning
20 years ago
henning
871e069b0d
wrong sizeof; Brian Poole <raj@cerias.purdue.edu>
20 years ago
dtucker
e8355e306b
Use SA_LEN(sa) instead of sa->sa_len; 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
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
henning
44782aec16
prepare for client functionality
20 years ago