aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/trpt/trpt.c
Commit message (Collapse)AuthorAgeFilesLines
* trpt(8): Sprinkle style(9) and adddress warningsConrad Meyer2018-02-151-67/+67
| | | | | | | | | | | | Update function definitions to post-ISO style; remove deprecated "register" keyword. Correct indentation. Sprinkle 'static' on file-local variables. Appease warnings at WARNS=6, for both Clang and GCC. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=329341
* trpt(8): Fully remove and undocument '-t' option disabled in 1999Conrad Meyer2018-02-151-28/+3
| | | | | | | | | | The relevant code was commented out in r50680. PR: 57045 Submitted by: Fernando Apesteguía <fernando.apesteguia AT gmail.com> Notes: svn path=/head/; revision=329331
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Hide struct inpcb, struct tcpcb from the userland.Gleb Smirnoff2017-03-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | This is a painful change, but it is needed. On the one hand, we avoid modifying them, and this slows down some ideas, on the other hand we still eventually modify them and tools like netstat(1) never work on next version of FreeBSD. We maintain a ton of spares in them, and we already got some ifdef hell at the end of tcpcb. Details: - Hide struct inpcb, struct tcpcb under _KERNEL || _WANT_FOO. - Make struct xinpcb, struct xtcpcb pure API structures, not including kernel structures inpcb and tcpcb inside. Export into these structures the fields from inpcb and tcpcb that are known to be used, and put there a ton of spare space. - Make kernel and userland utilities compilable after these changes. - Bump __FreeBSD_version. Reviewed by: rrs, gnn Differential Revision: D10018 Notes: svn path=/head/; revision=315662
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Remove "long" variables from the TCP stack (not including the modularJonathan T. Looney2016-10-061-2/+2
| | | | | | | | | | | | congestion control framework). Reviewed by: gnn, lstewart (partial) Sponsored by: Juniper Networks, Netflix Differential Revision: (multiple) Tested by: Limelight, Netflix Notes: svn path=/head/; revision=306769
* Check and fail if drop of privileges failed.Xin LI2015-09-011-2/+4
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=287346
* Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.Ed Schouten2009-02-261-11/+2
| | | | | | | Submitted by: Pawel Worach <pawel.worach@gmail.com> Notes: svn path=/head/; revision=189090
* Fix build w/o INET6.Yaroslav Tykhiy2006-07-271-0/+4
| | | | Notes: svn path=/head/; revision=160752
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareWarner Losh2004-08-071-4/+0
| | | | | | | (with permission of addtional copyright holders where appropriate) Notes: svn path=/head/; revision=133249
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-4/+4
| | | | Notes: svn path=/head/; revision=114601
* Unbreak Alpha build.Dag-Erling Smørgrav2002-07-161-1/+1
| | | | Notes: svn path=/head/; revision=100165
* de-__P().Alfred Perlstein2002-07-151-36/+31
| | | | | | | | | | | | | | | | WARNS=4 cleanup: include headers needed. don't initialize char * with const char *. fix main() declaration. fix shadowed variable. properly cast tcpcb members for printf(3) output. remove 'register'. remove unused arg. Reviewed by: tmm, bde Notes: svn path=/head/; revision=100114
* Remove bogus cast.Dag-Erling Smørgrav2002-05-151-1/+1
| | | | Notes: svn path=/head/; revision=96646
* SECURITY: Drop `setgid kmem' bit as early as possible.Ruslan Ermilov2001-08-311-0/+1
| | | | Notes: svn path=/head/; revision=82664
* Change types of "numeric" function to match that of a qsort comparisonDavid Malone2001-03-051-3/+4
| | | | | | | function. Notes: svn path=/head/; revision=73732
* Sorry in this just befor code freeze commit.Yoshinobu Inoue2000-01-291-10/+50
| | | | | | | | | | | | | | | | | | | | | | | | This is fix to usr.sbin/trpt and tcp_debug.[ch] I think of putting this after 4.0 but,,, -There was bug that when INET6 is defined, IPv4 socket is not traced by trpt. -I received request from a person who distribute a program which use tcp_debug interface and print performance statistics, that -leave comptibility with old program as much as possible -use same interface with other OSes So, I talked with itojun, and synced API with netbsd IPv6 extension. makeworld check, kernel build check(includes GENERIC) is done. But if there happen to any problem, please let me know and I soon backout this change. Notes: svn path=/head/; revision=56801
* tcp updates to support IPv6.Yoshinobu Inoue2000-01-091-13/+62
| | | | | | | | | | also a small patch to sys/nfs/nfs_socket.c, as max_hdr size change. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=55679
* #ifdef out section of code dealing with integer timers,Jonathan Lemon1999-08-311-0/+6
| | | | | | | they aren't here any more. Notes: svn path=/head/; revision=50680
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Use err(3). Add usage() and prototypes.Philippe Charnier1997-10-221-46/+48
| | | | | | | Hide reference to trsp(8) that does not exist. Notes: svn path=/head/; revision=30643
* Zap antique #ifndef NEWVM code. This should be redone to use libkvmPeter Wemm1997-08-031-37/+0
| | | | | | | someday. Notes: svn path=/head/; revision=27858
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-311-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24428
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadGarrett Wollman1996-12-101-0/+1
| | | | | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it. Notes: svn path=/head/; revision=20287
* Include queue.h in preparation for struct socket changes.David Greenman1996-03-111-0/+1
| | | | Notes: svn path=/head/; revision=14544
* Removed bogus #include of netinet/in_pcb.hDavid Greenman1995-04-101-1/+0
| | | | Notes: svn path=/head/; revision=7727
* Get rid of _PATH_UNIX completely; use getbootfile(3) instead.Garrett Wollman1994-09-241-1/+1
| | | | | | | | | | DANGER WILL ROBINSON! _PATH_UNIX is currently defined as the literal string "don't use this". I am of two minds about this myself, but wanted to get something into the tree as quickly as possible. Notes: svn path=/head/; revision=3041
* BSD 4.4 Lite usr.sbin SourcesRodney W. Grimes1994-05-261-0/+414
Notes: svn path=/cvs2svn/branches/WIN_TUE_NL/; revision=1553