xref: /freebsd/usr.bin/sockstat/sockstat.1 (revision 7f3dea244c40159a41ab22da77a434d7c5b5e85a)
1.\"-
2.\" Copyright (c) 1999 Dag-Erling Co�dan Sm�rgrav
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer
10.\"    in this position and unchanged.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. The name of the author may not be used to endorse or promote products
15.\"    derived from this software without specific prior written permission.
16.\"
17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27.\"
28.\"      $Id: sockstat.1,v 1.1 1999/04/15 13:40:43 des Exp $
29.\"
30.Dd April 13, 1999
31.Dt LSOCK 1
32.Sh NAME
33.Nm sockstat
34.Nd list open Internet sockets
35.Sh SYNOPSIS
36.Nm
37.Sh DESCRIPTION
38The
39.Nm
40command lists open Internet sockets. The information listed for each
41socket is:
42.Bl -tag -width "FOREIGN ADDRESS"
43.It Li USER
44The user who owns the socket.
45.It Li COMMAND
46The command which holds the socket.
47.It Li PID
48The process ID of the command which holds the socket.
49.It Li FD
50The file descriptor number of the socket.
51.It Li PROTO
52The transport protocol associated with the socket.
53.It Li LOCAL ADDRESS
54The address the local end of the socket is bound to (see
55.Xr getsockname 2 ).
56.It Li FOREIGN ADDRESS
57The address the foreign end of the socket is bound to (see
58.Xr getpeername 2 ).
59.El
60.Sh SEE ALSO
61.Xr fstat 1 ,
62.Xr netstat 1 ,
63.Xr inet 4 .
64.Sh HISTORY
65The
66.Nm
67command appeared in
68.Fx 3.1 .
69.Sh AUTHORS
70The
71.Nm
72command and this manual page were written by
73.An Dag-Erling Sm�rgrav Aq des@freebsd.org .
74