version 1.87, 2020/06/12 06:22:32 |
version 1.88, 2020/06/16 14:03:42 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm |
.Nm |
.Op Fl AaBln |
.Op Fl AaBln |
.Op Fl f Ar address_family |
|
.Op Fl p Ar protocol |
|
.Op Fl M Ar core |
.Op Fl M Ar core |
.Op Fl N Ar system |
.Op Fl N Ar system |
.Nm |
|
.Op Fl bdeFgilmnqrstu |
|
.Op Fl f Ar address_family |
|
.Op Fl p Ar protocol |
.Op Fl p Ar protocol |
.Op Fl M Ar core |
|
.Op Fl N Ar system |
|
.Op Fl T Ar rtable |
.Op Fl T Ar rtable |
.Nm |
.Nm |
.Op Fl bdehn |
.Fl W Ar interface |
|
.Nm |
|
.Fl m |
|
.Nm |
|
.Fl I Ar interface | Fl i |
|
.Op Fl bdehnqt |
|
.Nm |
|
.Fl w Ar wait |
|
.Op Fl bdehnqt |
.Op Fl c Ar count |
.Op Fl c Ar count |
.Op Fl I Ar interface |
.Op Fl I Ar interface |
.Op Fl M Ar core |
|
.Op Fl N Ar system |
|
.Op Fl w Ar wait |
|
.Nm |
.Nm |
.Op Fl v |
.Fl s |
.Op Fl M Ar core |
.Op Fl gru |
.Op Fl N Ar system |
.Op Fl f Ar address_family |
.Fl P Ar pcbaddr |
|
.Nm |
|
.Op Fl s |
|
.Op Fl M Ar core |
|
.Op Fl N Ar system |
|
.Op Fl p Ar protocol |
.Op Fl p Ar protocol |
.Nm |
.Nm |
.Op Fl a |
.Fl g |
|
.Op Fl lnu |
.Op Fl f Ar address_family |
.Op Fl f Ar address_family |
.Op Fl p Ar protocol |
|
.Op Fl i | I Ar interface |
|
.Nm |
.Nm |
.Op Fl W Ar interface |
.Fl R |
.Nm |
.Nm |
.Op Fl R |
.Fl r |
|
.Op Fl AFu |
|
.Op Fl f Ar address_family |
|
.Op Fl M Ar core |
|
.Op Fl N Ar system |
|
.Op Fl p Ar protocol |
|
.Op Fl T Ar rtable |
|
.Nm |
|
.Fl P Ar pcbaddr |
|
.Op Fl v |
|
.Op Fl M Ar core |
|
.Op Fl N Ar system |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm |
.Nm |
command symbolically displays the contents of various network-related |
command shows various aspects of network status. |
data structures. |
The default display shows information about |
There are a number of output formats, |
all active network connections and sockets. |
depending on the options for the information presented. |
|
.Pp |
.Pp |
The first form of the command displays a list of active sockets for |
The first form of the command displays a list of active sockets for |
each protocol. |
each protocol. |
The second form presents the contents of one of the other network |
The second form displays per-interface statistics for |
data structures according to the option selected. |
the specified wireless (802.11) device. |
Using the third form, with a |
The third form displays statistics related to memory use. |
.Ar wait |
The fourth form displays per-interface statistics. |
interval specified, |
The fifth form continuously displays the information regarding packet |
.Nm |
|
will continuously display the information regarding packet |
|
traffic on the configured network interfaces. |
traffic on the configured network interfaces. |
The fourth form displays internals of the protocol control block (PCB) |
The sixth form displays per-protocol statistics. |
|
The seventh form shows information related to multicast routing. |
|
The eighth form displays information about routing domains. |
|
The ninth form displays information about routing tables. |
|
The final form displays internals of the protocol control block (PCB) |
and the socket structure. |
and the socket structure. |
The fifth form displays statistics about the named protocol. |
The forms are shown in order of precedence: |
The sixth form displays per interface statistics for |
for example, if |
the specified address family. |
.Fl rg |
The final form displays per interface statistics for |
is specified, |
the specified wireless (802.11) device. |
then |
|
.Fl r |
|
is ignored in favour of |
|
.Fl g . |
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
|
|
.Ar wait |
.Ar wait |
seconds. |
seconds. |
.El |
.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. |
|
.Pp |
.Pp |
Address formats are of the form |
Address formats are of the form |
.Dq host.port |
.Dq host.port |