OpenBSD CVS

CVS log for src/usr.sbin/ntpd/ntp.h


[BACK] Up to [local] / src / usr.sbin / ntpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 15 15:52:09 2023 UTC (6 months, 3 weeks ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

Correct denominators when converting NTP fixed point values to double
and vice-versa; ok tb@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 30 15:55:41 2020 UTC (4 years, 4 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.13: +14 -2 lines
Diff to previous 1.13 (colored)

Properly determine era 0 or era 1, making it possible to move past
the ntp timestamp wrapping in 2036.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Apr 22 07:42:17 2009 UTC (15 years, 1 month ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

ignore replies with timestamps after 2030 to prevent time_t / tv_sec wraps
input & ok theo

Revision 1.12 / (download) - annotate - [select for diffs], Sat May 26 21:20:35 2007 UTC (17 years ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.11: +2 -4 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Mon Dec 13 12:22:52 2004 UTC (19 years, 6 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Discard replies with alarm flag set or invalid stratum; ok henning@

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 8 15:47:38 2004 UTC (19 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

uniquely name members of s_fixedpt and l_fixedpt; henning@ ok

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 13 13:35:19 2004 UTC (19 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

in struct ntp_msg, rename "distance" to "rootdelay" to closer match RFCs
and such

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jul 10 22:04:22 2004 UTC (19 years, 11 months ago) by alexander
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

correct leap indicator mask; ok henning@

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 4 22:24:20 2004 UTC (19 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.6: +1 -3 lines
Diff to previous 1.6 (colored)

put interval defines in ntpd.h and name them consistently

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 4 11:01:49 2004 UTC (19 years, 11 months ago) by alexander
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Compute the local clock offset from the server's response.
ok henning@

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jun 17 19:17:48 2004 UTC (19 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.4: +12 -2 lines
Diff to previous 1.4 (colored)

provide most of the client functionality.
hook the descriptors into the main poll and such.
we're not doing anything with the reply we recive yet, tho.

mostly hacked on the Frankfurt->Montreal flight, as batteries and those
horrible air canada seats permitted...

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jun 5 12:29:15 2004 UTC (20 years ago) by alexander
Branch: MAIN
Changes since 1.3: +5 -11 lines
Diff to previous 1.3 (colored)

Move prototype definitions.  Add multi-include protection to header.

ok henning@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 2 10:08:59 2004 UTC (20 years ago) by henning
Branch: MAIN
Changes since 1.2: +12 -1 lines
Diff to previous 1.2 (colored)

prepare for client functionality

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 1 22:02:32 2004 UTC (20 years ago) by henning
Branch: MAIN
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)

$OpenBSD$

Revision 1.1 / (download) - annotate - [select for diffs], Mon May 31 13:46:16 2004 UTC (20 years ago) by henning
Branch: MAIN

initial cut at ntpd.
it is just capable of answering (s)ntp4 requests with the local time
for now.
imsg/buffer and logging framework from bgpd, ntp protocol hackery
with Alexander Guy

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.