1994-05-27 12:33:43 +00:00
|
|
|
.\" Copyright (c) 1983, 1990, 1992, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" @(#)netstat.1 8.8 (Berkeley) 4/18/94
|
1999-08-28 01:08:13 +00:00
|
|
|
.\" $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
.\"
|
2001-06-15 18:25:38 +00:00
|
|
|
.Dd June 15, 2001
|
1994-05-27 12:33:43 +00:00
|
|
|
.Dt NETSTAT 1
|
2001-06-15 00:25:44 +00:00
|
|
|
.Os
|
1994-05-27 12:33:43 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm netstat
|
|
|
|
.Nd show network status
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2001-03-15 20:46:04 +00:00
|
|
|
.Op Fl AaLlnW
|
2001-06-15 18:25:38 +00:00
|
|
|
.Op Fl f Ar address_family | Fl p Ar protocol
|
1994-05-27 12:33:43 +00:00
|
|
|
.Op Fl M Ar core
|
|
|
|
.Op Fl N Ar system
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2001-06-23 09:18:57 +00:00
|
|
|
.Op Fl gilnsS
|
1994-05-27 12:33:43 +00:00
|
|
|
.Op Fl f Ar address_family
|
|
|
|
.Op Fl M Ar core
|
|
|
|
.Op Fl N Ar system
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2001-06-15 18:25:38 +00:00
|
|
|
.Fl i | I Ar interface
|
|
|
|
.Op Fl w Ar wait
|
|
|
|
.Op Fl abdgt
|
1994-05-27 12:33:43 +00:00
|
|
|
.Op Fl M Ar core
|
|
|
|
.Op Fl N Ar system
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2001-06-15 18:25:38 +00:00
|
|
|
.Fl s Op Fl s
|
2001-06-23 17:17:59 +00:00
|
|
|
.Op Fl z
|
2001-06-15 18:25:38 +00:00
|
|
|
.Op Fl f Ar address_family | Fl p Ar protocol
|
1994-05-27 12:33:43 +00:00
|
|
|
.Op Fl M Ar core
|
|
|
|
.Op Fl N Ar system
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2001-06-15 18:25:38 +00:00
|
|
|
.Fl i | I Ar interface Fl s
|
|
|
|
.Op Fl f Ar address_family | Fl p Ar protocol
|
|
|
|
.Op Fl M Ar core
|
|
|
|
.Op Fl N Ar system
|
2001-06-14 15:45:09 +00:00
|
|
|
.Nm
|
|
|
|
.Fl m
|
|
|
|
.Op Fl M Ar core
|
|
|
|
.Op Fl N Ar system
|
2001-06-23 09:18:57 +00:00
|
|
|
.Nm
|
|
|
|
.Fl r
|
|
|
|
.Op Fl Aaln
|
|
|
|
.Op Fl f Ar address_family
|
|
|
|
.Op Fl M Ar core
|
|
|
|
.Op Fl N Ar system
|
|
|
|
.Nm
|
|
|
|
.Fl rs
|
|
|
|
.Op Fl s
|
|
|
|
.Op Fl M Ar core
|
|
|
|
.Op Fl N Ar system
|
1994-05-27 12:33:43 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
1994-05-27 12:33:43 +00:00
|
|
|
command symbolically displays the contents of various network-related
|
|
|
|
data structures.
|
|
|
|
There are a number of output formats,
|
|
|
|
depending on the options for the information presented.
|
|
|
|
The first form of the command displays a list of active sockets for
|
|
|
|
each protocol.
|
|
|
|
The second form presents the contents of one of the other network
|
|
|
|
data structures according to the option selected.
|
|
|
|
Using the third form, with a
|
|
|
|
.Ar wait
|
|
|
|
interval specified,
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
1994-05-27 12:33:43 +00:00
|
|
|
will continuously display the information regarding packet
|
|
|
|
traffic on the configured network interfaces.
|
2001-06-15 18:25:38 +00:00
|
|
|
The fourth form displays statistics for
|
2001-06-23 09:18:57 +00:00
|
|
|
the specified protocol or address family.
|
2001-06-15 18:25:38 +00:00
|
|
|
The fifth form displays per-interface statistics for
|
1999-12-07 17:39:16 +00:00
|
|
|
the specified protocol or address family.
|
2001-06-15 18:25:38 +00:00
|
|
|
The sixth form displays
|
|
|
|
.Xr mbuf 9
|
|
|
|
statistics.
|
2001-06-23 09:18:57 +00:00
|
|
|
The seventh form displays routing table for the specified address family.
|
|
|
|
The eighth form displays routing statistics.
|
1994-05-27 12:33:43 +00:00
|
|
|
.Pp
|
|
|
|
The options have the following meaning:
|
|
|
|
.Bl -tag -width flag
|
|
|
|
.It Fl A
|
|
|
|
With the default display,
|
|
|
|
show the address of any protocol control blocks associated with sockets; used
|
|
|
|
for debugging.
|
|
|
|
.It Fl a
|
|
|
|
With the default display,
|
|
|
|
show the state of all sockets; normally sockets used by
|
|
|
|
server processes are not shown.
|
1999-08-11 22:25:55 +00:00
|
|
|
With the routing table display (option
|
net/route.c:
A route generated from an RTF_CLONING route had the RTF_WASCLONED flag
set but did not have a reference to the parent route, as documented in
the rtentry(9) manpage. This prevented such routes from being deleted
when their parent route is deleted.
Now, for example, if you delete an IP address from a network interface,
all ARP entries that were cloned from this interface route are flushed.
This also has an impact on netstat(1) output. Previously, dynamically
created ARP cache entries (RTF_STATIC flag is unset) were displayed as
part of the routing table display (-r). Now, they are only printed if
the -a option is given.
netinet/in.c, netinet/in_rmx.c:
When address is removed from an interface, also delete all routes that
point to this interface and address. Previously, for example, if you
changed the address on an interface, outgoing IP datagrams might still
use the old address. The only solution was to delete and re-add some
routes. (The problem is easily observed with the route(8) command.)
Note, that if the socket was already bound to the local address before
this address is removed, new datagrams generated from this socket will
still be sent from the old address.
PR: kern/20785, kern/21914
Reviewed by: wollman (the idea)
2001-03-15 14:52:12 +00:00
|
|
|
.Fl r ,
|
2001-05-07 12:29:36 +00:00
|
|
|
as described below), show protocol-cloned routes (routes
|
net/route.c:
A route generated from an RTF_CLONING route had the RTF_WASCLONED flag
set but did not have a reference to the parent route, as documented in
the rtentry(9) manpage. This prevented such routes from being deleted
when their parent route is deleted.
Now, for example, if you delete an IP address from a network interface,
all ARP entries that were cloned from this interface route are flushed.
This also has an impact on netstat(1) output. Previously, dynamically
created ARP cache entries (RTF_STATIC flag is unset) were displayed as
part of the routing table display (-r). Now, they are only printed if
the -a option is given.
netinet/in.c, netinet/in_rmx.c:
When address is removed from an interface, also delete all routes that
point to this interface and address. Previously, for example, if you
changed the address on an interface, outgoing IP datagrams might still
use the old address. The only solution was to delete and re-add some
routes. (The problem is easily observed with the route(8) command.)
Note, that if the socket was already bound to the local address before
this address is removed, new datagrams generated from this socket will
still be sent from the old address.
PR: kern/20785, kern/21914
Reviewed by: wollman (the idea)
2001-03-15 14:52:12 +00:00
|
|
|
generated by a
|
|
|
|
.Dv RTF_PRCLONING
|
2001-05-07 12:29:36 +00:00
|
|
|
parent route); normally these routes are
|
1999-08-11 22:25:55 +00:00
|
|
|
not shown.
|
1994-10-12 02:37:35 +00:00
|
|
|
.It Fl b
|
1996-02-29 07:44:37 +00:00
|
|
|
With the interface display (option
|
2001-06-15 18:25:38 +00:00
|
|
|
.Fl i ,
|
|
|
|
as described below),
|
1994-10-12 02:37:35 +00:00
|
|
|
show the number of bytes in and out.
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Fl d
|
|
|
|
With either interface display (option
|
|
|
|
.Fl i
|
|
|
|
or an interval, as described below),
|
|
|
|
show the number of dropped packets.
|
2001-07-15 08:06:20 +00:00
|
|
|
.It Fl f Ar address_family
|
1994-05-27 12:33:43 +00:00
|
|
|
Limit statistics or address control block reports to those
|
|
|
|
of the specified
|
|
|
|
.Ar address family .
|
|
|
|
The following address families
|
|
|
|
are recognized:
|
|
|
|
.Ar inet ,
|
|
|
|
for
|
|
|
|
.Dv AF_INET ,
|
1999-12-07 17:39:16 +00:00
|
|
|
.Ar inet6 ,
|
|
|
|
for
|
|
|
|
.Dv AF_INET6 ,
|
1996-04-13 21:23:57 +00:00
|
|
|
.Ar ipx ,
|
1994-05-27 12:33:43 +00:00
|
|
|
for
|
1996-04-13 21:23:57 +00:00
|
|
|
.Dv AF_IPX ,
|
1996-06-08 00:54:18 +00:00
|
|
|
.Ar atalk ,
|
|
|
|
for
|
|
|
|
.Dv AF_APPLETALK (ddp) ,
|
1999-10-21 09:06:11 +00:00
|
|
|
.Ar netgraph
|
|
|
|
or
|
|
|
|
.Ar ng
|
|
|
|
for
|
|
|
|
.Dv AF_NETGRAPH ,
|
1996-04-13 21:23:57 +00:00
|
|
|
.\".Ar ns ,
|
|
|
|
.\"for
|
|
|
|
.\".Dv AF_NS ,
|
|
|
|
.\".Ar iso ,
|
|
|
|
.\"for
|
|
|
|
.\".Dv AF_ISO ,
|
1994-05-27 12:33:43 +00:00
|
|
|
and
|
|
|
|
.Ar unix ,
|
|
|
|
for
|
|
|
|
.Dv AF_UNIX .
|
|
|
|
.It Fl g
|
|
|
|
Show information related to multicast (group address) routing.
|
|
|
|
By default, show the IP Multicast virtual-interface and routing tables.
|
|
|
|
If the
|
|
|
|
.Fl s
|
|
|
|
option is also present, show multicast routing statistics.
|
2001-07-15 08:06:20 +00:00
|
|
|
.It Fl I Ar interface
|
1994-05-27 12:33:43 +00:00
|
|
|
Show information about the specified interface;
|
|
|
|
used with a
|
|
|
|
.Ar wait
|
|
|
|
interval as described below.
|
1999-12-07 17:39:16 +00:00
|
|
|
If the
|
|
|
|
.Fl s
|
2001-06-15 18:25:38 +00:00
|
|
|
option is present, show per-interface protocol statistics on the
|
1999-12-07 17:39:16 +00:00
|
|
|
.Ar interface
|
2001-06-15 00:25:44 +00:00
|
|
|
for the specified
|
1999-12-07 17:39:16 +00:00
|
|
|
.Ar address_family
|
|
|
|
or
|
2001-02-01 16:38:02 +00:00
|
|
|
.Ar protocol ,
|
2001-06-15 18:25:38 +00:00
|
|
|
or for all protocol families.
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Fl i
|
|
|
|
Show the state of interfaces which have been auto-configured
|
|
|
|
(interfaces statically configured into a system, but not
|
|
|
|
located at boot time are not shown).
|
|
|
|
If the
|
|
|
|
.Fl a
|
|
|
|
options is also present, multicast addresses currently in use are shown
|
|
|
|
for each Ethernet interface and for each IP interface address.
|
|
|
|
Multicast addresses are shown on separate lines following the interface
|
|
|
|
address with which they are associated.
|
1999-12-07 17:39:16 +00:00
|
|
|
If the
|
|
|
|
.Fl s
|
|
|
|
option is present, show per-interface statistics on all interfaces
|
2001-06-15 00:25:44 +00:00
|
|
|
for the specified
|
1999-12-07 17:39:16 +00:00
|
|
|
.Ar address_family
|
|
|
|
or
|
2001-02-01 16:38:02 +00:00
|
|
|
.Ar protocol ,
|
2001-06-15 18:25:38 +00:00
|
|
|
or for all protocol families.
|
1999-12-13 20:08:44 +00:00
|
|
|
.It Fl L
|
2000-03-01 12:20:22 +00:00
|
|
|
Show the size of the various listen queues.
|
|
|
|
The first count shows the
|
1999-12-13 20:08:44 +00:00
|
|
|
number of unaccepted connections.
|
|
|
|
The second count shows the amount of unaccepted incomplete connections.
|
|
|
|
The third count is the maximum number of queued connections.
|
2000-03-11 14:33:13 +00:00
|
|
|
.It Fl l
|
|
|
|
Print full IPv6 address.
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Fl M
|
|
|
|
Extract values associated with the name list from the specified core
|
|
|
|
instead of the default
|
|
|
|
.Pa /dev/kmem .
|
|
|
|
.It Fl m
|
|
|
|
Show statistics recorded by the memory management routines
|
|
|
|
(the network manages a private pool of memory buffers).
|
|
|
|
.It Fl N
|
|
|
|
Extract the name list from the specified system instead of the default
|
1994-08-05 09:14:37 +00:00
|
|
|
.Pa /kernel .
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Fl n
|
2001-06-15 00:25:44 +00:00
|
|
|
Show network addresses and ports as numbers (normally
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2001-06-15 00:25:44 +00:00
|
|
|
interprets addresses and ports and attempts to display them
|
1994-05-27 12:33:43 +00:00
|
|
|
symbolically).
|
|
|
|
This option may be used with any of the display formats.
|
2001-07-15 08:06:20 +00:00
|
|
|
.It Fl p Ar protocol
|
1994-05-27 12:33:43 +00:00
|
|
|
Show statistics about
|
1999-10-30 14:35:22 +00:00
|
|
|
.Ar protocol ,
|
1994-05-27 12:33:43 +00:00
|
|
|
which is either a well-known name for a protocol or an alias for it. Some
|
|
|
|
protocol names and aliases are listed in the file
|
|
|
|
.Pa /etc/protocols .
|
1999-10-30 14:35:22 +00:00
|
|
|
The special protocol name
|
|
|
|
.Dq bdg
|
1999-04-26 16:11:50 +00:00
|
|
|
is used to show bridging statistics.
|
1994-05-27 12:33:43 +00:00
|
|
|
A null response typically means that there are no interesting numbers to
|
|
|
|
report.
|
|
|
|
The program will complain if
|
|
|
|
.Ar protocol
|
|
|
|
is unknown or if there is no statistics routine for it.
|
|
|
|
.It Fl r
|
|
|
|
Show the routing tables.
|
1999-08-11 22:25:55 +00:00
|
|
|
Use with
|
|
|
|
.Fl a
|
2001-05-07 12:29:36 +00:00
|
|
|
to show protocol-cloned routes.
|
1994-05-27 12:33:43 +00:00
|
|
|
When
|
|
|
|
.Fl s
|
|
|
|
is also present, show routing statistics instead.
|
1999-12-07 17:39:16 +00:00
|
|
|
When
|
|
|
|
.Fl l
|
|
|
|
is also present,
|
|
|
|
.Nm
|
2001-06-11 17:34:25 +00:00
|
|
|
assumes more columns are there and the maximum transmission unit
|
|
|
|
.Pq Dq mtu
|
|
|
|
are also displayed.
|
2001-06-15 18:25:38 +00:00
|
|
|
.It Fl S
|
|
|
|
Show network addresses as numbers (as with
|
|
|
|
.Fl n )
|
|
|
|
but show ports symbolically).
|
|
|
|
.It Fl s
|
|
|
|
Show per-protocol statistics.
|
|
|
|
If this option is repeated, counters with a value of zero are suppressed.
|
2001-03-15 20:46:04 +00:00
|
|
|
.It Fl W
|
|
|
|
In certain displays, avoid truncating addresses even if this causes
|
|
|
|
some fields to overflow.
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Fl w Ar wait
|
|
|
|
Show network interface statistics at intervals of
|
|
|
|
.Ar wait
|
|
|
|
seconds.
|
2001-06-23 17:17:59 +00:00
|
|
|
.It Fl z
|
|
|
|
Reset statistics.
|
1994-05-27 12:33:43 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The default display, for active sockets, shows the local
|
|
|
|
and remote addresses, send and receive queue sizes (in bytes), protocol,
|
|
|
|
and the internal state of the protocol.
|
1999-10-30 14:35:22 +00:00
|
|
|
Address formats are of the form
|
|
|
|
.Dq host.port
|
|
|
|
or
|
|
|
|
.Dq network.port
|
1994-05-27 12:33:43 +00:00
|
|
|
if a socket's address specifies a network but no specific host address.
|
|
|
|
When known the host and network addresses are displayed symbolically
|
|
|
|
according to the data bases
|
|
|
|
.Pa /etc/hosts
|
|
|
|
and
|
|
|
|
.Pa /etc/networks ,
|
|
|
|
respectively. If a symbolic name for an address is unknown, or if
|
|
|
|
the
|
|
|
|
.Fl n
|
|
|
|
option is specified, the address is printed numerically, according
|
|
|
|
to the address family.
|
|
|
|
For more information regarding
|
1999-10-30 14:35:22 +00:00
|
|
|
the Internet
|
|
|
|
.Dq dot format ,
|
1994-05-27 12:33:43 +00:00
|
|
|
refer to
|
|
|
|
.Xr inet 3 ) .
|
|
|
|
Unspecified,
|
1999-10-30 14:35:22 +00:00
|
|
|
or
|
|
|
|
.Dq wildcard ,
|
|
|
|
addresses and ports appear as
|
|
|
|
.Dq * .
|
1994-05-27 12:33:43 +00:00
|
|
|
.Pp
|
|
|
|
The interface display provides a table of cumulative
|
|
|
|
statistics regarding packets transferred, errors, and collisions.
|
|
|
|
The network addresses of the interface
|
1999-10-30 14:35:22 +00:00
|
|
|
and the maximum transmission unit
|
|
|
|
.Pq Dq mtu
|
|
|
|
are also displayed.
|
1994-05-27 12:33:43 +00:00
|
|
|
.Pp
|
|
|
|
The routing table display indicates the available routes and
|
|
|
|
their status. Each route consists of a destination host or network
|
|
|
|
and a gateway to use in forwarding packets. The flags field shows
|
|
|
|
a collection of information about the route stored as
|
|
|
|
binary choices. The individual flags are discussed in more
|
|
|
|
detail in the
|
|
|
|
.Xr route 8
|
|
|
|
and
|
|
|
|
.Xr route 4
|
|
|
|
manual pages.
|
|
|
|
The mapping between letters and flags is:
|
|
|
|
.Bl -column XXXX RTF_BLACKHOLE
|
2001-07-15 08:06:20 +00:00
|
|
|
1 RTF_PROTO1 Protocol specific routing flag #1
|
|
|
|
2 RTF_PROTO2 Protocol specific routing flag #2
|
1994-12-14 18:55:01 +00:00
|
|
|
3 RTF_PROTO3 Protocol specific routing flag #3
|
2001-07-15 08:06:20 +00:00
|
|
|
B RTF_BLACKHOLE Just discard pkts (during updates)
|
1996-06-15 17:08:40 +00:00
|
|
|
b RTF_BROADCAST The route represents a broadcast address
|
2001-07-15 08:06:20 +00:00
|
|
|
C RTF_CLONING Generate new routes on use
|
1994-12-14 18:55:01 +00:00
|
|
|
c RTF_PRCLONING Protocol-specified generate new routes on use
|
2001-07-15 08:06:20 +00:00
|
|
|
D RTF_DYNAMIC Created dynamically (by redirect)
|
1994-05-27 12:33:43 +00:00
|
|
|
G RTF_GATEWAY Destination requires forwarding by intermediary
|
2001-07-15 08:06:20 +00:00
|
|
|
H RTF_HOST Host entry (net otherwise)
|
1994-12-14 18:55:01 +00:00
|
|
|
L RTF_LLINFO Valid protocol to link address translation
|
2001-07-15 08:06:20 +00:00
|
|
|
M RTF_MODIFIED Modified dynamically (by redirect)
|
|
|
|
R RTF_REJECT Host or net unreachable
|
|
|
|
S RTF_STATIC Manually added
|
|
|
|
U RTF_UP Route usable
|
1994-12-14 18:55:01 +00:00
|
|
|
W RTF_WASCLONED Route was generated as a result of cloning
|
1994-05-27 12:33:43 +00:00
|
|
|
X RTF_XRESOLVE External daemon translates proto to link address
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Direct routes are created for each
|
|
|
|
interface attached to the local host;
|
|
|
|
the gateway field for such entries shows the address of the outgoing interface.
|
|
|
|
The refcnt field gives the
|
|
|
|
current number of active uses of the route. Connection oriented
|
|
|
|
protocols normally hold on to a single route for the duration of
|
|
|
|
a connection while connectionless protocols obtain a route while sending
|
|
|
|
to the same destination.
|
|
|
|
The use field provides a count of the number of packets
|
|
|
|
sent using that route. The interface entry indicates the network
|
|
|
|
interface utilized for the route.
|
|
|
|
.Pp
|
|
|
|
When
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
1994-05-27 12:33:43 +00:00
|
|
|
is invoked with the
|
|
|
|
.Fl w
|
|
|
|
option and a
|
|
|
|
.Ar wait
|
|
|
|
interval argument, it displays a running count of statistics related to
|
|
|
|
network interfaces.
|
|
|
|
An obsolescent version of this option used a numeric parameter
|
|
|
|
with no option, and is currently supported for backward compatibility.
|
1996-02-29 07:44:37 +00:00
|
|
|
By default, this display summarizes information for all interfaces.
|
|
|
|
Information for a specific interface may be displayed with the
|
1994-05-27 12:33:43 +00:00
|
|
|
.Fl I
|
|
|
|
option.
|
|
|
|
.Sh SEE ALSO
|
1999-09-06 13:14:24 +00:00
|
|
|
.Xr fstat 1 ,
|
1994-05-27 12:33:43 +00:00
|
|
|
.Xr nfsstat 1 ,
|
|
|
|
.Xr ps 1 ,
|
2001-07-06 16:46:48 +00:00
|
|
|
.Xr sockstat 1 ,
|
1999-09-06 13:14:24 +00:00
|
|
|
.Xr inet 4 ,
|
|
|
|
.Xr unix 4 ,
|
1994-05-27 12:33:43 +00:00
|
|
|
.Xr hosts 5 ,
|
|
|
|
.Xr networks 5 ,
|
|
|
|
.Xr protocols 5 ,
|
|
|
|
.Xr services 5 ,
|
1996-01-20 07:29:11 +00:00
|
|
|
.Xr iostat 8 ,
|
1994-05-27 12:33:43 +00:00
|
|
|
.Xr trpt 8 ,
|
1996-01-20 07:29:11 +00:00
|
|
|
.Xr vmstat 8
|
1994-05-27 12:33:43 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
1994-05-27 12:33:43 +00:00
|
|
|
command appeared in
|
|
|
|
.Bx 4.2 .
|
1999-12-07 17:39:16 +00:00
|
|
|
.Pp
|
|
|
|
IPv6 support was added by WIDE/KAME project.
|
1999-10-30 14:35:22 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /dev/kmem -compact
|
|
|
|
.It Pa /kernel
|
|
|
|
default kernel namelist
|
|
|
|
.It Pa /dev/kmem
|
|
|
|
default memory file
|
|
|
|
.El
|
1994-05-27 12:33:43 +00:00
|
|
|
.Sh BUGS
|
|
|
|
The notion of errors is ill-defined.
|