1.\" Copyright (c) 1983, 1990, 1992, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
--- 16 unchanged lines hidden (view full) ---
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)netstat.1 8.8 (Berkeley) 4/18/94
33.\" $FreeBSD: head/usr.bin/netstat/netstat.1 170492 2007-06-10 06:11:03Z ceri $
34.\"
35.Dd June 10, 2007
36.Dt NETSTAT 1
37.Os
38.Sh NAME
39.Nm netstat
40.Nd show network status
41.Sh DESCRIPTION
42The
43.Nm
44command symbolically displays the contents of various network-related
45data structures.
46There are a number of output formats,
47depending on the options for the information presented.
48.Bl -tag -width indent
49.It Xo
50.Bk -words
51.Nm
52.Op Fl AaLnSW
53.Op Fl f Ar protocol_family | Fl p Ar protocol
54.Op Fl M Ar core
55.Op Fl N Ar system
56.Ek
57.Xc
58Display a list of active sockets
59(protocol control blocks)
60for each network protocol,
--- 19 unchanged lines hidden (view full) ---
80the second count shows the amount of unaccepted incomplete connections,
81and the third count is the maximum number of queued connections.
82If
83.Fl S
84is also present,
85show network addresses as numbers (as with
86.Fl n )
87but show ports symbolically.
88.It Xo
89.Bk -words
90.Nm
91.Fl i | I Ar interface
92.Op Fl abdhntW
93.Op Fl f Ar address_family
94.Op Fl M Ar core
95.Op Fl N Ar system
--- 353 unchanged lines hidden (view full) ---
449.It Li s Ta Dv BIOCGSEESENT No status: see packets originating locally and
450remotely on the interface.
451.It Li a Ta Packet reception generates a signal
452.It Li l Ta Dv BIOCLOCK No status: descriptor has been locked
453.El
454.Pp
455For more information about these flags, please refer to
456.Xr bpf 4 .
457.Sh SEE ALSO
458.Xr fstat 1 ,
459.Xr nfsstat 1 ,
460.Xr ps 1 ,
461.Xr sockstat 1 ,
462.Xr bpf 4 ,
463.Xr inet 4 ,
464.Xr route 4 ,
--- 19 unchanged lines hidden ---
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
--- 16 unchanged lines hidden (view full) ---
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)netstat.1 8.8 (Berkeley) 4/18/94
33.\" $FreeBSD: head/usr.bin/netstat/netstat.1 170492 2007-06-10 06:11:03Z ceri $
34.\"
35.Dd June 10, 2007
36.Dt NETSTAT 1
37.Os
38.Sh NAME
39.Nm netstat
40.Nd show network status
41.Sh DESCRIPTION
42The
43.Nm
44command symbolically displays the contents of various network-related
45data structures.
46There are a number of output formats,
47depending on the options for the information presented.
48.Bl -tag -width indent
49.It Xo
50.Bk -words
51.Nm
52.Op Fl AaLnSW
53.Op Fl f Ar protocol_family | Fl p Ar protocol
54.Op Fl M Ar core
55.Op Fl N Ar system
56.Ek
57.Xc
58Display a list of active sockets
59(protocol control blocks)
60for each network protocol,
--- 19 unchanged lines hidden (view full) ---
80the second count shows the amount of unaccepted incomplete connections,
81and the third count is the maximum number of queued connections.
82If
83.Fl S
84is also present,
85show network addresses as numbers (as with
86.Fl n )
87but show ports symbolically.
88.It Xo
89.Bk -words
90.Nm
91.Fl i | I Ar interface
92.Op Fl abdhntW
93.Op Fl f Ar address_family
94.Op Fl M Ar core
95.Op Fl N Ar system
--- 353 unchanged lines hidden (view full) ---
449.It Li s Ta Dv BIOCGSEESENT No status: see packets originating locally and
450remotely on the interface.
451.It Li a Ta Packet reception generates a signal
452.It Li l Ta Dv BIOCLOCK No status: descriptor has been locked
453.El
454.Pp
455For more information about these flags, please refer to
456.Xr bpf 4 .
457.Sh SEE ALSO
458.Xr fstat 1 ,
459.Xr nfsstat 1 ,
460.Xr ps 1 ,
461.Xr sockstat 1 ,
462.Xr bpf 4 ,
463.Xr inet 4 ,
464.Xr route 4 ,
--- 19 unchanged lines hidden ---