aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/sockstat/sockstat.1
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2001-03-06 13:48:38 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2001-03-06 13:48:38 +0000
commita0581bbcc2137a4f94dfb5b33c5f8393952224af (patch)
tree848b7aca7e9b1b915dd346c0f4b593226b04e05f /usr.bin/sockstat/sockstat.1
parent13d609b82e9052a7f940b9f4be1c934779064e48 (diff)
downloadsrc-a0581bbcc2137a4f94dfb5b33c5f8393952224af.tar.gz
src-a0581bbcc2137a4f94dfb5b33c5f8393952224af.zip
Add (and document) options for showing only listening or connected sockets.
Notes
Notes: svn path=/head/; revision=73880
Diffstat (limited to 'usr.bin/sockstat/sockstat.1')
-rw-r--r--usr.bin/sockstat/sockstat.125
1 files changed, 21 insertions, 4 deletions
diff --git a/usr.bin/sockstat/sockstat.1 b/usr.bin/sockstat/sockstat.1
index 1cc0bf4b62f8..eca1f759283f 100644
--- a/usr.bin/sockstat/sockstat.1
+++ b/usr.bin/sockstat/sockstat.1
@@ -35,7 +35,7 @@
.Nd list open sockets
.Sh SYNOPSIS
.Nm
-.Op Fl 46u
+.Op Fl 46clu
.Sh DESCRIPTION
The
.Nm
@@ -47,13 +47,30 @@ The following options are available:
Show AF_INET (IPv4) sockets.
.It Fl 6
Show AF_INET6 (IPv6) sockets.
+.It Fl c
+Show connected sockets.
+.It Fl l
+Show listening sockets.
.It Fl u
Show AF_LOCAL (Unix) sockets.
.El
.Pp
-If no option is specified,
+If neither
+.Fl 4 ,
+.Fl 6
+or
+.Fl u
+is specified,
.Nm
-will list sockets of all three types.
+will list sockets in all three domains.
+.Pp
+If neither
+.Fl c
+or
+.Fl l
+is specified,
+.Nm
+will list both listening and connected sockets.
.Pp
The information listed for each
socket is:
@@ -71,7 +88,7 @@ The transport protocol associated with the socket for Internet
sockets, or the type of socket (stream or datagram) for Unix sockets.
.It Li ADDRESS
(Unix sockets only)
-For listening sockets, this is the filename of the socket.
+For bound sockets, this is the filename of the socket.
For other sockets, it is the name, PID and file descriptor number of
the peer, or "(none)" if the socket is neither bound nor connected.
.It Li LOCAL ADDRESS