Home | History | Annotate | only in /src/usr.sbin/trpt
History log of /src/usr.sbin/trpt
RevisionDateAuthorComments
 1.11 23-Dec-2016  mrg for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
 1.10 28-May-2007  tls branches: 1.10.58;
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
 1.9 06-Sep-2005  rpaulo trpt(8) no longer needs to be installed setgid kmem.
 1.8 10-Jan-2005  lukem Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
 1.7 01-Jul-1999  itojun IPv6 support.
 1.6 18-Oct-1997  lukem enable WARNS=1 by default, but disable in unclean 3rd party code
 1.5 23-Jul-1997  thorpej - Rewrite this program to use libkvm, not grovel /dev/kmem manually. Remove
all of the old 4.{2,3}BSD VM goop.
- Fix a few 64-bit bugs.
- Add prototypes.
- Fix compiler warnings (including a Metric *load of printf formats).
- Build with WARNS.
- Update copyright.
 1.4 23-Jul-1997  mikel merge lite-2 changes, RCSid police
 1.3 22-Dec-1994  cgd specify man pages the new way.
 1.2 30-Jul-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added accton, edquota, flcopy, gettable, htable, iostat, quotaon,
repquota, trpt, and trsp, per (currently alpha) patch 125.
 1.1.1.1 23-Jul-1997  mikel import 4.4BSD-Lite2 version
 1.10.58.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.17 04-May-2009  wiz Remove superfluous comma.
 1.16 30-Aug-2007  jnemeth branches: 1.16.14;
PR/36867 - Zafer Aydogan -- trsp is no longertrpt.8
 1.15 06-Sep-2005  rpaulo branches: 1.15.4; 1.15.6; 1.15.10;
Update for the recent changes of trpt(8) and describe the sysctls.
Bump date.
 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 02-Feb-2002  wiz Sort sections.
 1.12 19-Jan-2002  wiz Whitespace nits.
 1.11 22-Mar-1999  garbled 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.10 17-Oct-1997  lukem minor .Nm cleanup
 1.9 23-Jul-1997  thorpej Garbage-collect some now-incorrect text.
 1.8 23-Jul-1997  thorpej - Rewrite this program to use libkvm, not grovel /dev/kmem manually. Remove
all of the old 4.{2,3}BSD VM goop.
- Fix a few 64-bit bugs.
- Add prototypes.
- Fix compiler warnings (including a Metric *load of printf formats).
- Build with WARNS.
- Update copyright.
 1.7 23-Jul-1997  mikel merge lite-2 changes, RCSid police
 1.6 19-Jan-1997  tls rather amusing typo. Perhaps this was a tunafish?
 1.5 05-Feb-1996  jtc Fix dangling 'The'; From Mike Long <mike.long@analog.com>
 1.4 01-Aug-1993  mycroft Add RCS indentifiers.
 1.3 13-Jun-1993  mycroft Fix up FILES sections.
 1.2 13-Jun-1993  mycroft Update file names.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added accton, edquota, flcopy, gettable, htable, iostat, quotaon,
repquota, trpt, and trsp, per (currently alpha) patch 125.
 1.1.1.1 23-Jul-1997  mikel import 4.4BSD-Lite2 version
 1.15.10.1 06-Nov-2007  matt sync with HEAD
 1.15.6.1 03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.15.4.1 31-Aug-2007  xtraeme Pull up following revision(s) (requested by jnemeth in ticket #855):
usr.bin/netstat/netstat.1: revision 1.46
usr.bin/netstat/netstat.1: revision 1.47
usr.bin/crunch/examples/really-big.conf: revision 1.3
usr.bin/netstat/netstat.1: revision 1.48
usr.sbin/trpt/trpt.8: revision 1.16
Add xref to sockstat, from Zafer Aydogan in PR misc/36706.
Bump date.
PR/36867 - Zafer Aydogan -- trsp is no longer
usr.bin/netstat/netstat.1 usr.bin/netstat/netstat.1 usr.bin/crunch/examples/really-big.conf usr.bin/netstat/netstat.1 usr.sbin/trpt/trpt.8
 1.16.14.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.28 03-May-2018  maxv Remove now unused tcpip.h includes. Some were already unused before.
 1.27 30-Aug-2011  joerg branches: 1.27.40;
static + __dead
 1.26 19-Apr-2009  lukem Fix WARNS=4 issues (-Wshadow -Wcast-qual)
 1.25 21-Jul-2008  lukem branches: 1.25.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.24 28-Apr-2008  martin branches: 1.24.2;
Remove clause 3 and 4 from TNF licenses
 1.23 10-Jul-2007  jmcneill branches: 1.23.10;
Make trpt build again, based on recent netstat changes.
 1.22 31-Mar-2006  rpaulo Show ECN ECE and CWR flags too.
 1.21 06-Sep-2005  rpaulo If reading values from a live system use sysctls net.tcp.inet.(debug|debx)
and kern.hardclock_ticks. Also, remove the set*gid() calls.
 1.20 02-Jun-2005  lukem appease gcc -Wuninitialized
 1.19 06-Feb-2005  perry de-__P, ANSIfy function declarations, remove obsolete "register" declarations
 1.18 19-Sep-2003  itojun no need for explicit '?'; openbsd
 1.17 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.16 04-Feb-2003  thorpej Update for callout changes, and show TCP timers in relative, rather
than absolute ticks.
 1.15 04-Feb-2003  thorpej Test CALLOUT_PENDING, not CALLOUT_ACTIVE.
 1.14 16-Nov-2002  itojun die if out-of-range address is specified to -p
 1.13 12-Oct-2002  soda revision 1.5 missed to add option -N and -M to 3rd argument of getopt(3).
 1.12 11-Sep-2001  thorpej Update for TCP timer changes.
 1.11 09-Jul-2001  itojun copy necessary variables from sys/netinet/tcp_debug.c.
not sure if it is the right way to deal with this.
 1.10 19-Feb-2001  cgd convert to use getprogname()
 1.9 01-Jul-1999  itojun IPv6 support.
 1.8 06-Jul-1998  mrg - change setgid kmem programs (that lend themselves to this) so setegid(getgid())
and the top, and then set the effective gid back to kmem around the call to
kvm_openfiles(). this reduces the time group kmem is available.
- for those above that also allow this, setgid(getgid()) after the call to
kvm_openfiles() to fully revoke priviledges.
- some KNF
- use err(3) over fprintf(3) in some places
 1.7 23-Jul-1997  thorpej Fix potential bad pointer arithmetic interaction with sort comparison
function.
 1.6 23-Jul-1997  thorpej Fix thinko in previous.
 1.5 23-Jul-1997  thorpej - Rewrite this program to use libkvm, not grovel /dev/kmem manually. Remove
all of the old 4.{2,3}BSD VM goop.
- Fix a few 64-bit bugs.
- Add prototypes.
- Fix compiler warnings (including a Metric *load of printf formats).
- Build with WARNS.
- Update copyright.
 1.4 23-Jul-1997  mikel merge lite-2 changes, RCSid police
 1.3 23-Dec-1994  cgd be more careful with types.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 09-Apr-1993  cgd branches: 1.1.1;
added accton, edquota, flcopy, gettable, htable, iostat, quotaon,
repquota, trpt, and trsp, per (currently alpha) patch 125.
 1.1.1.1 23-Jul-1997  mikel import 4.4BSD-Lite2 version
 1.23.10.1 18-May-2008  yamt sync with head.
 1.24.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.25.6.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.27.40.1 21-May-2018  pgoyette Sync with HEAD

RSS XML Feed