aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat/tcp.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* Fix printing of 64-bit counters on 32-bit ppc platforms.Michael Tuexen2018-11-121-1/+2
| | | | | | | | | | | | Several statistic counters are uint64_t values and are printed by systat using %lu. This results in displaying wrong numbers. Use PRIu64 instead. While there, print variables of size_t using %zd. MFC after:i 3 days Differential Revision: https://reviews.freebsd.org/D17838 Notes: svn path=/head/; revision=340361
* Reduce <sys/queue.h> pollution.Dag-Erling Smørgrav2018-05-111-0/+1
| | | | | | | | | | | | While <sys/sysctl.h> includes <sys/queue.h> unconditionally, it is only actually used in code which is conditional on _KERNEL. Make the #include itself conditional as well, and fix userland code that uses <sys/queue.h> for other purposes but relied on <sys/sysctl.h> to bring it in. MFC after: 1 week Notes: svn path=/head/; revision=333475
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | 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
* 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
* Make systat(1) accept fractional number of seconds.Alexander V. Chernikov2012-09-171-1/+1
| | | | | | | | | Make old alarm(3)-based code use select(2). MFC after: 2 weeks Notes: svn path=/head/; revision=240605
* Whitespace fixes.Ed Schouten2012-02-051-1/+0
| | | | | | | | | - Remove redundant empty lines. - Replace ^L by \014. This allows you to safely cat/grep/etc this file without causing confusion. Notes: svn path=/head/; revision=231011
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+2
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-2/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* ANSIfy and remove register.Xin LI2008-01-161-2/+1
| | | | | | | Resulting binary verified with strip(1)+md5(1). Notes: svn path=/head/; revision=175387
* Expand TCP counters from 9 digits to 12.John Baldwin2007-06-151-25/+25
| | | | | | | | MFC after: 1 week PR: bin/112881 Notes: svn path=/head/; revision=170784
* Consistently indent the R() macro for fields on the right-side of theJohn Baldwin2007-06-151-17/+17
| | | | | | | | | display to make the code easier to read. PR: bin/112881 Notes: svn path=/head/; revision=170782
* Add a new counter for retransmitted packets due to SACK.John Baldwin2007-06-151-51/+54
| | | | | | | | PR: bin/112881 Submitted by: Phil Rosenthal <pr isprime com> Notes: svn path=/head/; revision=170780
* Remove trailing whitespace.Bruce Evans2006-04-301-1/+1
| | | | | | | | Submitted by: Se=E1n Farley <sean-freebsd at farley dot org> PR: bin/81874 Notes: svn path=/head/; revision=158161
* Show the load average in the tcp display (it was already shown, perhapsBruce Evans2006-04-301-61/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not very usefully, in all other displays). This was the original point of the PR. Move the load average up by 2 so that it starts in row 0 for all windows (2 lines above it were wasted for all other windows except vmstat). Move everything below it up by 2 or 3 (3 for icmp and icmp6 which had an extra blank line due from not compensating for the foot-shooting in note (3); only ip and ip6 compensated). Reduce the magic numbers related to this. Notes by the submitter: %%% 1. All the subwin() calls are identical using #define MAINWIN_ROW 3 (systat.h). 2. The load average is at the top of the window. 3. Each display starts on the fourth line. I made changes to those displays that shifted the start line (i.e., icmp). This entailed a lot of changes within the comments at the top of those displays. 4. For ip6, I shifted the "Input next-header histogram" column down one row to separate it from "IPv6 Output". I raised "bad scope packets" and "address selection failed" up one row to stay with "IPv6 Input" (valid?). They were down one row to probably line up at the bottom, but I think they should stick with their fellow items in a column. 5. I condensed ifstat a bit. It had a lot of empty rows. %%% Submitted by: Se=E1n Farley <sean-freebsd at farley dot org> PR: bin/81874 Notes: svn path=/head/; revision=158160
* Demangled vendor ids. Fixed misplaced FreeBSD id.Bruce Evans2004-02-251-6/+9
| | | | Notes: svn path=/head/; revision=126229
* Backed out rev.1.6. A bogus include was added to work around breakage ofBruce Evans2004-02-251-2/+0
| | | | | | | | | <netinet/tcp_var.h>'s prerequisites. Prerequistes should not grow for userland headers, and <netinet/tcp_var.h> is unfortunately still needed in userland. Notes: svn path=/head/; revision=126227
* WARNS=2 fixes with NO_WERROR set, as there are some header issuesMark Murray2001-12-121-7/+7
| | | | | | | with namelists. use __FBSDID(). Notes: svn path=/head/; revision=87715
* Add #include <net/route.h> in order to get this to compile.Jonathan Lemon2001-11-221-0/+2
| | | | | | | | Spotted by: David Wolfskill Forgotten by: me Notes: svn path=/head/; revision=86784
* Display -tcp w/o load average so that all statistics fits on a 80x25 screen.Ruslan Ermilov2001-05-311-2/+2
| | | | Notes: svn path=/head/; revision=77515
* Show TCP checksum failures with -tcp display.Ruslan Ermilov2001-05-311-0/+3
| | | | | | | | PR: bin/27786 Submitted by: Brooks Davis <brooks@one-eyed-alien.net> Notes: svn path=/head/; revision=77514
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Quiet many compiler warnings.David E. O'Brien1998-10-081-2/+2
| | | | Notes: svn path=/head/; revision=40060
* Having done ICMP, UDP, and IP, could a TCP display be far behind?Garrett Wollman1997-09-271-0/+323
Notes: svn path=/head/; revision=29881