Bug 201585 - [patch] sockstat(1): add STATE field
Summary: [patch] sockstat(1): add STATE field
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: Normal Affects Many People
Assignee: Dag-Erling Smørgrav
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-07-15 14:19 UTC by Vladimir Laskov
Modified: 2018-05-23 11:47 UTC (History)
1 user (show)

See Also:


Attachments
patch (4.07 KB, patch)
2015-07-15 14:19 UTC, Vladimir Laskov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Laskov 2015-07-15 14:19:13 UTC
Created attachment 158798 [details]
patch

new feature - show field with tcp states

patch written by: Dag-Erling Smørgrav
patch tested by: Vladimir Laskov


netstat show tcp states, but do not show process name
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-07-16 13:09:28 UTC
A commit references this bug:

Author: des
Date: Thu Jul 16 13:09:23 UTC 2015
New revision: 285630
URL: https://svnweb.freebsd.org/changeset/base/285630

Log:
  Add a -s option which adds a column listing the connection state if
  applicable (currently only for TCP).

  PR:		201585
  MFC after:	3 weeks

Changes:
  head/usr.bin/sockstat/sockstat.1
  head/usr.bin/sockstat/sockstat.c
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-07-17 08:37:33 UTC
A commit references this bug:

Author: des
Date: Fri Jul 17 08:37:14 UTC 2015
New revision: 285651
URL: https://svnweb.freebsd.org/changeset/base/285651

Log:
  Move assignments around to avoid a false-positive uninitialized variable
  warning which broke the sparc64 build.

  PR:		201585
  MFC after:	3 weeks

Changes:
  head/usr.bin/sockstat/sockstat.c
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-08-26 22:50:57 UTC
A commit references this bug:

Author: tuexen
Date: Wed Aug 26 22:50:53 UTC 2015
New revision: 287178
URL: https://svnweb.freebsd.org/changeset/base/287178

Log:
  Print the status on the first line of a socket description, not at
  the last one. This doesn't matter for TCP, but it does for the upcoming
  SCTP support.

  PR:		201585
  MFC after:	3 weeks

Changes:
  head/usr.bin/sockstat/sockstat.c
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-08-26 22:52:58 UTC
A commit references this bug:

Author: tuexen
Date: Wed Aug 26 22:52:19 UTC 2015
New revision: 287179
URL: https://svnweb.freebsd.org/changeset/base/287179

Log:
  Remove a variable which is set but never used.

  PR:		201585
  MFC after:	3 weeks

Changes:
  head/usr.bin/sockstat/sockstat.c
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-08-26 23:46:03 UTC
A commit references this bug:

Author: tuexen
Date: Wed Aug 26 23:45:07 UTC 2015
New revision: 287182
URL: https://svnweb.freebsd.org/changeset/base/287182

Log:
  Add SCTP support.

  PR:		201585
  MFC after:	3 weeks

Changes:
  head/usr.bin/sockstat/sockstat.1
  head/usr.bin/sockstat/sockstat.c
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-08-29 09:11:13 UTC
A commit references this bug:

Author: tuexen
Date: Sat Aug 29 09:10:53 UTC 2015
New revision: 287281
URL: https://svnweb.freebsd.org/changeset/base/287281

Log:
  Report CLOSED as state for bound sockets for consistency with
  netstat and the way TCP is handled.

  PR:		201585
  MFC after:	3 weeks

Changes:
  head/usr.bin/sockstat/sockstat.c
Comment 7 Eitan Adler freebsd_committer freebsd_triage 2018-05-23 10:27:09 UTC
batch change of PRs untouched in 2018 marked "in progress" back to open.