=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/netstat.1,v retrieving revision 1.44 retrieving revision 1.45 diff -u -r1.44 -r1.45 --- src/usr.bin/netstat/netstat.1 2005/06/08 04:47:04 1.44 +++ src/usr.bin/netstat/netstat.1 2005/06/16 16:03:32 1.45 @@ -1,4 +1,4 @@ -.\" $OpenBSD: netstat.1,v 1.44 2005/06/08 04:47:04 henning Exp $ +.\" $OpenBSD: netstat.1,v 1.45 2005/06/16 16:03:32 jaredy Exp $ .\" $NetBSD: netstat.1,v 1.11 1995/10/03 21:42:43 thorpej Exp $ .\" .\" Copyright (c) 1983, 1990, 1992, 1993 @@ -54,6 +54,10 @@ .Op Fl N Ar system .Op Fl w Ar wait .Nm netstat +.Op Fl M Ar core +.Op Fl N Ar system +.Fl P Ar pcbaddr +.Nm netstat .Op Fl s .Op Fl M Ar core .Op Fl N Ar system @@ -93,7 +97,9 @@ .It Fl A With the default display, show the address of any protocol control blocks associated with sockets; used -for debugging. +for debugging, e.g. with the +.Fl P +flag. .It Fl a With the default display, show the state of all sockets; normally sockets used by @@ -203,6 +209,14 @@ interprets addresses and attempts to display them 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 +.Ar pcbaddr . +PCB addresses can be obtained using the +.Fl A +flag. +This option can currently only be used to display TCP control blocks. .It Fl p Ar protocol Restrict the output to .Ar protocol ,