NETSTAT

NETSTAT (1)

the destination of the route is a host. The D flag indicates that the route is dynamic. The U flag indicates that the route is up. The -noption disables the symbolic translation of the network and interface addresses, causing both to be displayed in their Internet dot notation. Note that the reference count will always be zero since the kernel routing functions do not yet track this statistic.

The network statistics display (-s) shows the current values of the statistics maintained by the kernel for each protocol. This display includes statistics for the ip, icmp, tcp, and udp protocols. The -pprotocol option will show only those statistics for the specified protocol. The -roption will show routing statistics.

The STREAMS display (-S) shows the number of failed requests for STREAMS buffers, by the size of the requested buffer, for each TCP/IP kernel STREAMS module or driver. Note that no entry will appear for the character driver w_, since it is not a STREAMS driver. The display is a matrix, containing a line for every kernel module or driver. The columns represent buffer lengths, in bytes, rounded up to the nearest power of two. Each failed request increments the counter for the associated buffer size. The counters are reset only when the system is rebooted.

The packet traffic display is a running summary of packet transmission statistics. This display is selected by calling netstat with a single numeric argument indicating the frequency with which the display is to be updated. No options can be used with this display. This display includes the numbers of inbound and outbound packets and errors for the most active interface and the total for all inter- faces. The first line of each screen of information contains a summary since the network was last brought up. Subsequent lines show values accumulated over the preceding interval.

DIAGNOSTICS

Exit status is zero for normal termination, a positive number for error termination.

The message can't open device in the STREAMS display indicates that netstat cannot open the device to obtain the requested statistics, either because the module or device has not been configured into the kernel or because all of the allocated minor devices are already in use.

FILES

hosts(4), networks(4), protocols(4), services(4)

SEE ALSO

named(1M), route(1M), routed(1M)

Issue 3

E-29