Home | History | Annotate | only in /src/usr.sbin/timed/timedc
History log of /src/usr.sbin/timed/timedc
RevisionDateAuthorComments
 1.11 27-Jan-2007  cbiere * timedc is no longer setuid-root and is only usable by root due to the
use of a raw socket for ICMP; thus there is also no need to differ
between privileged and unprivileged commands.
* Switch to user "nobody" after allocating the raw socket.
* Close all file descriptors above 2 (just in case).
 1.10 25-Jan-2007  cbiere * 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.
 1.9 17-Oct-1997  lukem WARNSify
 1.8 17-Oct-1997  mrg merge lite-2
 1.7 08-May-1997  gwr Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
 1.6 06-May-1997  gwr Use .PATH.c: ...
 1.5 22-Dec-1994  cgd specify man pages the new way.
 1.4 03-Nov-1993  cgd update timed to the latest version, as supplied and ported by
<Vernon Schryver> vjs@calcite.rhyolite.com.
 1.3 30-Jul-1993  mycroft Add RCS identifiers.
 1.2 23-Mar-1993  cgd adjusted to take into acct. changes to ../timed/Makefile, which
resolved the cksum.i386.c problem.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 06-Jun-1993  mrg 4.4BSD-Lite2
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.23 04-Feb-2007  cbiere * timed and timedc:
* Sprinkle const.
* Use EXIT_FAILURE instead of 1.
* Use err(), errx().
* Use calloc() instead of malloc()+memset().
* timedc:
* Non-terminated hostnames or unknown tsp_type could
cause a crash due to out-of-bounds reads in msite().
* Check the received packet size.
* Merged duplicated code into functions.
* Moved variables into the relevant scopes.
* Use connect() so that only the receiver can reply,
send()/recv() can be used and rejected packets
are immediately noticed by recv() instead of causing
timeouts.
* Updated manpage.
 1.22 27-Jan-2007  cbiere bind() in priv_resources() is now unnecessary as pointed out by christos.
 1.21 27-Jan-2007  cbiere * Fixed a 64-bit issue in daydiff().
* Check the packet size and sender address in daydiff().
* priv_resources(): Use bind() instead of bindresvport() because an
reserved port is not required. This also resolves the interoperability
issue reported in PR bin/35479.
 1.20 25-Jan-2007  cbiere * 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.
 1.19 25-Jan-2007  christos - use rresvport() instead of open-coding it.
- use warn/err.
 1.18 25-Jan-2007  christos PR/35479: djv AT bedford DOT net: fix byte order issue and zero the sockaddr.
 1.17 09-May-2006  mrg change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.16 06-Feb-2005  perry remove obsolete register declarations.
 1.15 09-Feb-2004  wiz s/transmitts/transmits/
From Gavin Atkinson (FreeBSD bug 62346) via jmc@openbsd
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.13 17-May-2003  itojun use strlcpy
 1.12 19-Sep-2002  mycroft select() -> poll(), nanosleep()
 1.11 06-Jul-2002  wiz ANSIfy and de-__P() a bit more.
 1.10 02-Sep-2001  reinoud Code cleanup; remove all `#ifdef sgi' from the code... this clobbered the
code considerably and was mainly providing SGI specific logging facilities
and some hacks to improve the relyablility on SGI systems by increasing
priorities etc...
 1.9 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.8 18-Oct-1997  lukem use string.h instead of strings.h
 1.7 17-Oct-1997  lukem WARNSify
 1.6 17-Oct-1997  mrg merge lite-2
 1.5 13-Apr-1997  mrg be safe with buffers.
 1.4 07-Dec-1993  mycroft Eliminate a compiler warning.
 1.3 03-Nov-1993  cgd update timed to the latest version, as supplied and ported by
<Vernon Schryver> vjs@calcite.rhyolite.com.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  mrg 4.4BSD-Lite2
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7 27-Jan-2007  cbiere * timedc is no longer setuid-root and is only usable by root due to the
use of a raw socket for ICMP; thus there is also no need to differ
between privileged and unprivileged commands.
* Switch to user "nobody" after allocating the raw socket.
* Close all file descriptors above 2 (just in case).
 1.6 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.5 17-Oct-1997  lukem WARNSify
 1.4 17-Oct-1997  mrg merge lite-2
 1.3 03-Nov-1993  cgd update timed to the latest version, as supplied and ported by
<Vernon Schryver> vjs@calcite.rhyolite.com.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 06-Jun-1993  mrg 4.4BSD-Lite2
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4 06-Jul-2002  wiz Remove unused files (cf. timed{,c}/timed{,c}-extern.h).
 1.3 09-Jan-1998  perry RCS Id Police.
 1.2 17-Oct-1997  lukem WARNSify
 1.1 06-Jun-1993  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1993  mrg 4.4BSD-Lite2
 1.6 31-Aug-2011  joerg Use __dead
 1.5 13-Oct-2003  itojun makeargv overrun. from openbsd
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.3 09-Jan-1998  perry RCS Id Police.
 1.2 17-Oct-1997  lukem WARNSify
 1.1 03-Nov-1993  cgd update timed to the latest version, as supplied and ported by
<Vernon Schryver> vjs@calcite.rhyolite.com.
 1.13 08-Apr-2009  joerg Remove non-sensical .ad macro. Don't use .Xo/.Xc.
 1.12 04-Feb-2007  cbiere branches: 1.12.20;
* timed and timedc:
* Sprinkle const.
* Use EXIT_FAILURE instead of 1.
* Use err(), errx().
* Use calloc() instead of malloc()+memset().
* timedc:
* Non-terminated hostnames or unknown tsp_type could
cause a crash due to out-of-bounds reads in msite().
* Check the received packet size.
* Merged duplicated code into functions.
* Moved variables into the relevant scopes.
* Use connect() so that only the receiver can reply,
send()/recv() can be used and rejected packets
are immediately noticed by recv() instead of causing
timeouts.
* Updated manpage.
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.10 30-Jun-2003  wiz Simplify macro usage.
 1.9 02-Feb-2002  wiz Sort sections.
 1.8 05-Apr-2001  wiz Add sections to xrefs. Whitespace fixes.
 1.7 22-Mar-1999  garbled branches: 1.7.10;
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.6 17-Oct-1997  lukem WARNSify
 1.5 17-Oct-1997  mrg merge lite-2
 1.4 18-Aug-1995  pk Remove a comma. Use `.Dq'.
 1.3 03-Nov-1993  cgd update timed to the latest version, as supplied and ported by
<Vernon Schryver> vjs@calcite.rhyolite.com.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 12-Dec-1993  mrg 4.4BSD-Lite2
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.10.1 26-Apr-2001  he Pull up revision 1.8 (requested by wiz):
Add section numbers for cross references, and whitespace fixes.
 1.12.20.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.22 16-Jan-2012  christos PR/45842: Henning Petersen: compare fgets with NULL not 0
 1.21 21-Jul-2008  lukem branches: 1.21.2;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.20 16-Feb-2008  matt branches: 1.20.6;
cmdtab is supposed to be const.
 1.19 28-Jan-2007  cbiere branches: 1.19.4;
Let timedc use the dedicated account "_timedc" for dropping privileges
instead of abusing the account "nobody".
 1.18 27-Jan-2007  cbiere * timedc is no longer setuid-root and is only usable by root due to the
use of a raw socket for ICMP; thus there is also no need to differ
between privileged and unprivileged commands.
* Switch to user "nobody" after allocating the raw socket.
* Close all file descriptors above 2 (just in case).
 1.17 25-Jan-2007  christos sprinkle const.
 1.16 25-Jan-2007  cbiere * 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.
 1.15 25-Jan-2007  christos - use rresvport() instead of open-coding it.
- use warn/err.
 1.14 15-Jun-2006  christos This has not worked since 2003. (Hello Itojun!)
 1.13 06-Feb-2005  perry remove obsolete register declarations.
 1.12 30-Oct-2004  dsl Add (unsigned char) cast to ctype functions
 1.11 13-Oct-2003  itojun makeargv overrun. from openbsd
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.9 06-Jul-2002  wiz ANSIfy and de-__P() a bit more.
 1.8 02-Sep-2001  reinoud Code cleanup; remove all `#ifdef sgi' from the code... this clobbered the
code considerably and was mainly providing SGI specific logging facilities
and some hacks to improve the relyablility on SGI systems by increasing
priorities etc...
 1.7 11-Jan-2001  lukem LOG_ODELAY is deprecated; it's the default
 1.6 18-Oct-1997  lukem use string.h instead of strings.h
 1.5 17-Oct-1997  lukem WARNSify
 1.4 17-Oct-1997  mrg merge lite-2
 1.3 03-Nov-1993  cgd update timed to the latest version, as supplied and ported by
<Vernon Schryver> vjs@calcite.rhyolite.com.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 06-Jun-1993  mrg 4.4BSD-Lite2
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.19.4.1 23-Mar-2008  matt sync with HEAD
 1.20.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.21.2.1 17-Apr-2012  yamt sync with head
 1.12 27-Jan-2007  cbiere * timedc is no longer setuid-root and is only usable by root due to the
use of a raw socket for ICMP; thus there is also no need to differ
between privileged and unprivileged commands.
* Switch to user "nobody" after allocating the raw socket.
* Close all file descriptors above 2 (just in case).
 1.11 25-Jan-2007  christos sprinkle const.
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.9 19-Sep-2002  mycroft select() -> poll(), nanosleep()
 1.8 06-Jul-2002  wiz ANSIfy and de-__P() a bit more.
 1.7 02-Sep-2001  reinoud Code cleanup; remove all `#ifdef sgi' from the code... this clobbered the
code considerably and was mainly providing SGI specific logging facilities
and some hacks to improve the relyablility on SGI systems by increasing
priorities etc...
 1.6 21-Jan-2000  mycroft Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
 1.5 17-Oct-1997  lukem branches: 1.5.4;
WARNSify
 1.4 17-Oct-1997  mrg merge lite-2
 1.3 03-Nov-1993  cgd update timed to the latest version, as supplied and ported by
<Vernon Schryver> vjs@calcite.rhyolite.com.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 06-Jun-1993  mrg 4.4BSD-Lite2
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.4.1 23-Jan-2000  he Pull up revision 1.6 (requested by mycroft):
Always do the errno indirection hack, so that non-threaded
libraries get the right errno value when linked with -lpthread.
This means "always include <errno.h> and never declare errno
yourself".

RSS XML Feed