Subject: CVS commit: src/usr.sbin/timed
To: None <source-changes@NetBSD.org>
From: Christian Biere <cbiere@netbsd.org>
List: source-changes
Date: 01/25/2007 23:25:21
Module Name: src
Committed By: cbiere
Date: Thu Jan 25 23:25:21 UTC 2007
Modified Files:
src/usr.sbin/timed/timed: Makefile acksend.c byteorder.c candidate.c
cksum.c correct.c globals.h master.c measure.c readmsg.c slave.c
timed-extern.h timed.c
src/usr.sbin/timed/timedc: Makefile cmds.c timedc.c
Added Files:
src/usr.sbin/timed/timed: tspname.c
Log Message:
* Modified in_cksum() so it can handle unaligned data.
* Replaced most strlcpy() with set_tsp_name() and get_tsp_name() because
strlcpy() could potentially run out-of-bounds and doesn't zero out
unused buffer space.
* Replaced bcopy/bzero() with memcpy/memset().
* Fixed potential alignment/aliasing issues in measure().
* Replace u_short/u_long with uint16_t/uint32_t/in_addr_t where appropriate.
* Renamed sin to addr because sin is a reserved identifier.
* Use bindresvport() instead of looping over bind(); rresvport() returns
a SOCK_STREAM socket not SOCK_DGRAM.
To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/usr.sbin/timed/timed/Makefile \
src/usr.sbin/timed/timed/candidate.c src/usr.sbin/timed/timed/globals.h
cvs rdiff -r1.9 -r1.10 src/usr.sbin/timed/timed/acksend.c
cvs rdiff -r1.8 -r1.9 src/usr.sbin/timed/timed/byteorder.c
cvs rdiff -r1.5 -r1.6 src/usr.sbin/timed/timed/cksum.c \
src/usr.sbin/timed/timed/timed-extern.h
cvs rdiff -r1.11 -r1.12 src/usr.sbin/timed/timed/correct.c
cvs rdiff -r1.15 -r1.16 src/usr.sbin/timed/timed/master.c \
src/usr.sbin/timed/timed/slave.c
cvs rdiff -r1.13 -r1.14 src/usr.sbin/timed/timed/measure.c
cvs rdiff -r1.18 -r1.19 src/usr.sbin/timed/timed/readmsg.c
cvs rdiff -r1.20 -r1.21 src/usr.sbin/timed/timed/timed.c
cvs rdiff -r0 -r1.1 src/usr.sbin/timed/timed/tspname.c
cvs rdiff -r1.9 -r1.10 src/usr.sbin/timed/timedc/Makefile
cvs rdiff -r1.19 -r1.20 src/usr.sbin/timed/timedc/cmds.c
cvs rdiff -r1.15 -r1.16 src/usr.sbin/timed/timedc/timedc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.