Deleted Added
full compact
netstat.1 (52666) netstat.1 (54263)
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
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 52666 1999-10-30 14:35:22Z phantom $
33.\" $FreeBSD: head/usr.bin/netstat/netstat.1 54263 1999-12-07 17:39:16Z shin $
34.\"
35.Dd April 18, 1994
36.Dt NETSTAT 1
37.Os BSD 4.2
38.Sh NAME
39.Nm netstat
40.Nd show network status
41.Sh SYNOPSIS
42.Nm netstat
43.Op Fl Aan
44.Op Fl f Ar address_family
45.Op Fl M Ar core
46.Op Fl N Ar system
47.Nm netstat
34.\"
35.Dd April 18, 1994
36.Dt NETSTAT 1
37.Os BSD 4.2
38.Sh NAME
39.Nm netstat
40.Nd show network status
41.Sh SYNOPSIS
42.Nm netstat
43.Op Fl Aan
44.Op Fl f Ar address_family
45.Op Fl M Ar core
46.Op Fl N Ar system
47.Nm netstat
48.Op Fl bdghimnrs
48.Op Fl bdghilmnrs
49.Op Fl f Ar address_family
50.Op Fl M Ar core
51.Op Fl N Ar system
52.Nm netstat
53.Op Fl bdn
54.Op Fl I Ar interface
55.Op Fl M Ar core
56.Op Fl N Ar system
57.Op Fl w Ar wait
58.Nm netstat
59.Op Fl p Ar protocol
60.Op Fl M Ar core
61.Op Fl N Ar system
49.Op Fl f Ar address_family
50.Op Fl M Ar core
51.Op Fl N Ar system
52.Nm netstat
53.Op Fl bdn
54.Op Fl I Ar interface
55.Op Fl M Ar core
56.Op Fl N Ar system
57.Op Fl w Ar wait
58.Nm netstat
59.Op Fl p Ar protocol
60.Op Fl M Ar core
61.Op Fl N Ar system
62.Nm netstat
63.Op Fl p Ar protocol
64.Op Fl i
65.Op Fl I Ar Interface
66.Nm netstat
67.Op Fl s
68.Op Fl f Ar address_family
69.Op Fl i
70.Op Fl I Ar Interface
62.Sh DESCRIPTION
63The
64.Nm netstat
65command symbolically displays the contents of various network-related
66data structures.
67There are a number of output formats,
68depending on the options for the information presented.
69The first form of the command displays a list of active sockets for
70each protocol.
71The second form presents the contents of one of the other network
72data structures according to the option selected.
73Using the third form, with a
74.Ar wait
75interval specified,
76.Nm netstat
77will continuously display the information regarding packet
78traffic on the configured network interfaces.
79The fourth form displays statistics about the named protocol.
71.Sh DESCRIPTION
72The
73.Nm netstat
74command symbolically displays the contents of various network-related
75data structures.
76There are a number of output formats,
77depending on the options for the information presented.
78The first form of the command displays a list of active sockets for
79each protocol.
80The second form presents the contents of one of the other network
81data structures according to the option selected.
82Using the third form, with a
83.Ar wait
84interval specified,
85.Nm netstat
86will continuously display the information regarding packet
87traffic on the configured network interfaces.
88The fourth form displays statistics about the named protocol.
89The fifth and sixth forms display per interface statistics for
90the specified protocol or address family.
80.Pp
81The options have the following meaning:
82.Bl -tag -width flag
83.It Fl A
84With the default display,
85show the address of any protocol control blocks associated with sockets; used
86for debugging.
87.It Fl a

--- 19 unchanged lines hidden (view full) ---

107Limit statistics or address control block reports to those
108of the specified
109.Ar address family .
110The following address families
111are recognized:
112.Ar inet ,
113for
114.Dv AF_INET ,
91.Pp
92The options have the following meaning:
93.Bl -tag -width flag
94.It Fl A
95With the default display,
96show the address of any protocol control blocks associated with sockets; used
97for debugging.
98.It Fl a

--- 19 unchanged lines hidden (view full) ---

118Limit statistics or address control block reports to those
119of the specified
120.Ar address family .
121The following address families
122are recognized:
123.Ar inet ,
124for
125.Dv AF_INET ,
126.Ar inet6 ,
127for
128.Dv AF_INET6 ,
115.Ar ipx ,
116for
117.Dv AF_IPX ,
118.Ar atalk ,
119for
120.Dv AF_APPLETALK (ddp) ,
121.Ar netgraph
122or

--- 20 unchanged lines hidden (view full) ---

143Show the state of the
144.Tn IMP
145host table (obsolete).
146.It Fl I Ar interface
147Show information about the specified interface;
148used with a
149.Ar wait
150interval as described below.
129.Ar ipx ,
130for
131.Dv AF_IPX ,
132.Ar atalk ,
133for
134.Dv AF_APPLETALK (ddp) ,
135.Ar netgraph
136or

--- 20 unchanged lines hidden (view full) ---

157Show the state of the
158.Tn IMP
159host table (obsolete).
160.It Fl I Ar interface
161Show information about the specified interface;
162used with a
163.Ar wait
164interval as described below.
165If the
166.Fl f Ar address_family
167option (with the
168.Fl s
169option) or the
170.Fl p Ar protocol
171option is present, show per-interface statistics on the
172.Ar interface
173for the specfied
174.Ar address_family
175or
176.Ar protocol,
177respectively.
151.It Fl i
152Show the state of interfaces which have been auto-configured
153(interfaces statically configured into a system, but not
154located at boot time are not shown).
155If the
156.Fl a
157options is also present, multicast addresses currently in use are shown
158for each Ethernet interface and for each IP interface address.
159Multicast addresses are shown on separate lines following the interface
160address with which they are associated.
178.It Fl i
179Show the state of interfaces which have been auto-configured
180(interfaces statically configured into a system, but not
181located at boot time are not shown).
182If the
183.Fl a
184options is also present, multicast addresses currently in use are shown
185for each Ethernet interface and for each IP interface address.
186Multicast addresses are shown on separate lines following the interface
187address with which they are associated.
188If the
189.Fl f Ar address_family
190option (with the
191.Fl s
192option) or the
193.Fl p Ar protocol
194option is present, show per-interface statistics on all interfaces
195for the specfied
196.Ar address_family
197or
198.Ar protocol,
199respectively.
161.It Fl M
162Extract values associated with the name list from the specified core
163instead of the default
164.Pa /dev/kmem .
165.It Fl m
166Show statistics recorded by the memory management routines
167(the network manages a private pool of memory buffers).
168.It Fl N

--- 25 unchanged lines hidden (view full) ---

194.It Fl r
195Show the routing tables.
196Use with
197.Fl a
198to show protocol-cloned routes.
199When
200.Fl s
201is also present, show routing statistics instead.
200.It Fl M
201Extract values associated with the name list from the specified core
202instead of the default
203.Pa /dev/kmem .
204.It Fl m
205Show statistics recorded by the memory management routines
206(the network manages a private pool of memory buffers).
207.It Fl N

--- 25 unchanged lines hidden (view full) ---

233.It Fl r
234Show the routing tables.
235Use with
236.Fl a
237to show protocol-cloned routes.
238When
239.Fl s
240is also present, show routing statistics instead.
241When
242.Fl l
243is also present,
244.Nm
245assumes more columns are there.
202.It Fl w Ar wait
203Show network interface statistics at intervals of
204.Ar wait
205seconds.
206.El
207.Pp
208The default display, for active sockets, shows the local
209and remote addresses, send and receive queue sizes (in bytes), protocol,

--- 102 unchanged lines hidden (view full) ---

312.Xr iostat 8 ,
313.Xr trpt 8 ,
314.Xr vmstat 8
315.Sh HISTORY
316The
317.Nm netstat
318command appeared in
319.Bx 4.2 .
246.It Fl w Ar wait
247Show network interface statistics at intervals of
248.Ar wait
249seconds.
250.El
251.Pp
252The default display, for active sockets, shows the local
253and remote addresses, send and receive queue sizes (in bytes), protocol,

--- 102 unchanged lines hidden (view full) ---

356.Xr iostat 8 ,
357.Xr trpt 8 ,
358.Xr vmstat 8
359.Sh HISTORY
360The
361.Nm netstat
362command appeared in
363.Bx 4.2 .
364.Pp
365IPv6 support was added by WIDE/KAME project.
320.Sh FILES
321.Bl -tag -width /dev/kmem -compact
322.It Pa /kernel
323default kernel namelist
324.It Pa /dev/kmem
325default memory file
326.El
327.Sh BUGS
328The notion of errors is ill-defined.
366.Sh FILES
367.Bl -tag -width /dev/kmem -compact
368.It Pa /kernel
369default kernel namelist
370.It Pa /dev/kmem
371default memory file
372.El
373.Sh BUGS
374The notion of errors is ill-defined.