History log of /freebsd-10.2-release/usr.bin/sockstat/sockstat.1
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 285830 23-Jul-2015 gjb

- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.2.
- Update default pkg(8) configuration to use the quarterly branch.[1]

Discussed with: re, portmgr [1]
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 285826 23-Jul-2015 hrs

MFC r284636:

- Add SOCK_SEQPACKET support in UNIX-domain socket.
- Display zoneid using % notation in an IPv6 address.
- Use nitems().
- Use sstos{in,in6,un} macros to simplify casts.
- style(9).

Approved by: re (gjb)


# 284441 16-Jun-2015 tuexen

MFC r284351:
Simplify printaddr(). No functional change.

MFC r284352:
Allow more than one socket entry for a file descriptor. This is needed
for supporting 1-to-many style SCTP sockets. For other sochets, there
is no functional change.

MFC r284353:
Allow more than one local or remote address per socket. This is needed to
support SCTP (and MPTCP in the future). No functional change for existing
protocols.

MFC r284354:
Add support for SCTP.

MFC r284355:
When using -L the code skips a socket if the local or foreign
address is loopback. So it is shown if both are not loopback.
The man page says that it is shown if the local or foreign
address is not loopback. Change the man page to reflect the
code.


# 283738 29-May-2015 tuexen

MFC r281202:

The code says "or", not "either or". So fix the documentation.


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 235870 24-May-2012 thompsa

Allow the socket list to be limited to a specific jail id.

No objections: current@


# 230512 24-Jan-2012 jilles

sockstat: Also show sockets not associated with a file descriptor.

Sockets not associated with a file descriptor include TCP TIME_WAIT states
and sockets created via the socket(9) API such as from rpc.lockd and the NFS
client.

PR: bin/164081
MFC after: 2 weeks
No objection: des


# 228991 30-Dec-2011 uqs

Reencode files from latin1 to UTF-8.

This makes a tiny percentage of entries in calendars ugly for latin1
users, but fixes them for UTF-8 users.

This badly needs a solution involving locale-dependent re-encoding.


# 200779 21-Dec-2009 des

Note that sockstat(1) does not display kernel-owned sockets.

Submitted by: infofarmer@
MFC after: 2 weeks


# 195502 09-Jul-2009 trasz

Add manual page links to advertise procstat(1) a little better.

Approved by: re (kib)


# 179115 19-May-2008 bms

Add an -L option to ignore loopback Internet sockets.

MFC after: 2 weeks


# 164201 11-Nov-2006 keramida

Add support for filtering sockets by protocol type. The default
behavior of sockstat(1) will still be to show "udp", "tcp" and
"divert" protocols, but we can now provide a (comma-separated)
list of protocols, as in:

% sockstat -P tcp

to list only TCP sockets, or we can filter more than one protocol
by separating the protocol names with a comma:

% sockstat -P tcp,udp

Protocol names are parsed with getprotobyname(3), so any protocol
whose name is listed in `/etc/protocols' should work fine.

Submitted by: Josh Carroll <josh.carroll@psualum.com>
Approved by: des


# 140055 11-Jan-2005 ru

Scheduled mdoc(7) sweep.


# 134295 25-Aug-2004 roam

Do not display bogus entries for sockets in the TIME_WAIT or similar
states that no longer have a corresponding file descriptor - until now,
sockstat would mostly randomly match null kern.file.*.xf_data fields
with the first mostly-closed socket.

This bugfix is a RELENG_5 candidate.

Approved by: andre


# 107276 26-Nov-2002 ru

mdoc(7) police: markup polishing.

Approved by: re


# 101043 31-Jul-2002 des

Rewrite sockstat(1) in C.

Sponsored by: DARPA, NAI Labs


# 81588 13-Aug-2001 ru

Spell "FreeBSD" with "F" and "BSD" in uppercase.


# 81430 10-Aug-2001 ru

mdoc(7) police: fix markup.


# 81259 07-Aug-2001 des

Allow the user to specify port ranges against which to match inet sockets.

Suggested by: roam


# 79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


# 73880 06-Mar-2001 des

Add (and document) options for showing only listening or connected sockets.


# 71102 16-Jan-2001 ru

Prepare for mdoc(7)NG.


# 70022 14-Dec-2000 ru

mdoc(7) police: added missing .Os call.


# 68718 14-Nov-2000 ru

Spell the des's name correctly.


# 66790 07-Oct-2000 des

Document the fact that sockstat now lists Unix domain sockets, and the new
command-line options for selecting what to display.


# 58625 26-Mar-2000 charnier

Do not dot terminate list of references


# 57670 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


# 57494 26-Feb-2000 shin

Update sockstat to support INET6 socket printing.

Approved by: jkh

Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
Reviewed by: des


# 51015 06-Sep-1999 sheldonh

Add xrefs to the {f,net,sock}stat.1 manpages. While I'm in there, fix
the sockstat.1 document title, which still remembers when sockstat was
called lsock.

Reviewed by: mpp


# 50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48644 06-Jul-1999 des

Use -finet option to netstat(1), and don't discard anything.
Don't truncate the protocol field.
These two changes conspire to make sockstat(1) show divert sockets.

Submitted by: ru


# 45699 15-Apr-1999 des

Rename lsock(1) to sockstat(1).

Suggested by: Sheldon Hearn <sheldonh@iafrica.com>
Approved by: Peter Wemm <peter@netplex.com.au>