NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/40627: Manpage for netstat has flags not in alphabetical order.



>Number:         40627
>Category:       misc
>Synopsis:       Manpage for netstat has flags not in alphabetical order.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 13 10:25:00 +0000 2009
>Originator:     Malte Dehling
>Release:        NetBSD 4/5/HEAD
>Organization:
>Environment:
NetBSD venom.local 4.0_STABLE NetBSD 4.0_STABLE (X31.full) #3: Sat Mar 29 
17:59:46 CET 2008  
root%venom.local@localhost:/usr/obj/sys/arch/i386/compile/X31.full i386
>Description:
The manpage for netstat has all options in alphabetical order, except: -r and 
-s are in wrong order.
The mistake exists in NetBSD 4, 5 and is still in HEAD. Ofcourse it is also not 
very important :-)
>How-To-Repeat:
man netstat
>Fix:
apply the following patch (for HEAD) to src/usr.bin/netstat/netstat.1:

# diff -u netstat.1.orig netstat.1

--- netstat.1.orig      2009-02-13 11:01:03.000000000 +0100
+++ netstat.1   2009-02-13 11:02:37.000000000 +0100
@@ -249,14 +249,14 @@
 is unknown or if there is no statistics routine for it.
 .It Fl q
 Show software interrupt queue setting/statistics for all protocols.
-.It Fl s
-Show per-protocol statistics.
-If this option is repeated, counters with a value of zero are suppressed.
 .It Fl r
 Show the routing tables.
 When
 .Fl s
 is also present, show routing statistics instead.
+.It Fl s
+Show per-protocol statistics.
+If this option is repeated, counters with a value of zero are suppressed.
 .It Fl v
 Show extra (verbose) detail for the routing tables
 .Pq Fl r ,



Home | Main Index | Thread Index | Old Index