=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/netstat.1,v retrieving revision 1.60 retrieving revision 1.61 diff -u -r1.60 -r1.61 --- src/usr.bin/netstat/netstat.1 2010/07/31 14:25:37 1.60 +++ src/usr.bin/netstat/netstat.1 2010/10/30 23:06:05 1.61 @@ -1,4 +1,4 @@ -.\" $OpenBSD: netstat.1,v 1.60 2010/07/31 14:25:37 sobrado Exp $ +.\" $OpenBSD: netstat.1,v 1.61 2010/10/30 23:06:05 bluhm Exp $ .\" $NetBSD: netstat.1,v 1.11 1995/10/03 21:42:43 thorpej Exp $ .\" .\" Copyright (c) 1983, 1990, 1992, 1993 @@ -30,7 +30,7 @@ .\" .\" from: @(#)netstat.1 8.8 (Berkeley) 4/18/94 .\" -.Dd $Mdocdate: July 31 2010 $ +.Dd $Mdocdate: October 30 2010 $ .Dt NETSTAT 1 .Os .Sh NAME @@ -60,6 +60,7 @@ .Op Fl N Ar system .Op Fl w Ar wait .Nm netstat +.Op Fl v .Op Fl M Ar core .Op Fl N Ar system .Fl P Ar pcbaddr @@ -93,7 +94,8 @@ .Nm will continuously display the information regarding packet traffic on the configured network interfaces. -The fourth form displays statistics about the protocol control block (PCB). +The fourth form displays internals of the protocol control block (PCB) +and the socket structure. The fifth form displays statistics about the named protocol. The sixth form displays per interface statistics for the specified address family. @@ -229,13 +231,15 @@ symbolically). This option may be used with any of the display formats. .It Fl P Ar pcbaddr -Display the contents of the protocol control block (PCB) located at -the kernel virtual address +Display the contents of the socket or protocol control block (PCB) +located at the kernel virtual address .Ar pcbaddr . PCB addresses can be obtained using the .Fl A flag. -This option can currently only be used to display TCP control blocks. +When used with the +.Fl v +option, also print socket, domain and protocol specific structures. .It Fl p Ar protocol Restrict the output to .Ar protocol , @@ -279,6 +283,9 @@ Show extra (verbose) detail for the routing tables .Pq Fl r , or avoid truncation of long addresses. +When used with the +.Fl P +option, also print socket, domain and protocol specific structures. .It Fl W Ar interface (IEEE 802.11 devices only) Show per-interface IEEE 802.11 wireless statistics.