OpenBSD CVS

CVS log for src/usr.sbin/ntpd/ntp_msg.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Sat Sep 3 11:52:06 2016 UTC (7 years, 9 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, 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, 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, HEAD
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Remove the oh so funny "LOSS OF MIND" from the diclaimer that was not
part of the original ISC license that we use in OpenBSD.  Done for
files were Henning is the original author.

OK henning@ deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 10 06:01:01 2015 UTC (9 years, 4 months ago) by bcook
Branch: MAIN
CVS Tags: 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
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

use correct formatters for s/size_t data types.

ok deraadt@

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jan 9 07:35:37 2015 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

remove excessive/wrong use of sys/param.h
peanuts -- but all work has to start somewhere.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Apr 30 11:42:56 2013 UTC (11 years, 1 month ago) by mglocker
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.18: +2 -3 lines
Diff to previous 1.18 (colored)

Remove unused function argument variables 'len' and 'auth' from
ntp_sendmsg().  They have been removed from the function body in the past
but not from the argument list.

From Maxime Villard

Revision 1.18 / (download) - annotate - [select for diffs], Fri Oct 19 15:53:57 2007 UTC (16 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: 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, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

don't fill the logs; spotted by deraadt@ ok henning@

Revision 1.17 / (download) - annotate - [select for diffs], Sat May 26 21:20:35 2007 UTC (17 years ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.16: +11 -43 lines
Diff to previous 1.16 (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.16 / (download) - annotate - [select for diffs], Sat Jul 1 18:52:46 2006 UTC (17 years, 11 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)

remove some unneeded includes; one found by vetinari

Revision 1.15 / (download) - annotate - [select for diffs], Sat Sep 24 00:32:03 2005 UTC (18 years, 8 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)

Log source address for 'malformed packet' errors.  ok henning@

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 14 06:27:13 2004 UTC (19 years, 5 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

sendto() takes socklen_t as an argument; ok henning@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 8 17:35:16 2004 UTC (19 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.12: +40 -71 lines
Diff to previous 1.12 (colored)

use two tiny macros for copying fields out to simplify reading; henning@ ok

Revision 1.12 / (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.11: +49 -49 lines
Diff to previous 1.11 (colored)

uniquely name members of s_fixedpt and l_fixedpt; henning@ ok

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 22 21:24:20 2004 UTC (19 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

oups

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 22 21:17:37 2004 UTC (19 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

in server mode reply with stratum from the peer that we currently prefer
plus one

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: +9 -9 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], Wed Oct 13 12:37:47 2004 UTC (19 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.7: +2 -23 lines
Diff to previous 1.7 (colored)

fall cleaning

Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 24 14:51:16 2004 UTC (19 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.6: +10 -4 lines
Diff to previous 1.6 (colored)

connect() the client-side sockets. idea & test & ok camield@

Revision 1.6 / (download) - annotate - [select for diffs], Mon Aug 30 11:50:56 2004 UTC (19 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.5: +7 -1 lines
Diff to previous 1.5 (colored)

ENOBUFS, EHOSTUNREACH, ENETDOWN and EHOSTDOWN are bad reasons to log; ok otto henning

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

wrong sizeof; Brian Poole <raj@cerias.purdue.edu>

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 11 03:05:50 2004 UTC (19 years, 11 months ago) by dtucker
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Use SA_LEN(sa) instead of sa->sa_len; ok henning@

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 9 15:02:15 2004 UTC (19 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.2: +5 -3 lines
Diff to previous 1.2 (colored)

don't panic when sendto() fails; for the client part just re-schedule
noticed & fix tested by fries@

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 7 07:32:05 2004 UTC (19 years, 11 months ago) by alexander
Branch: MAIN
Changes since 1.1: +1 -11 lines
Diff to previous 1.1 (colored)

* 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@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 2 10:08:59 2004 UTC (20 years ago) by henning
Branch: MAIN

prepare for client functionality

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.