Subject: bin/26533: missing option in the usage of arp(8)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 08/04/2004 00:18:45
>Number:         26533
>Category:       bin
>Synopsis:       missing option in the usage of arp(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 03 15:20:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY.MP) #40: Tue Aug 3 13:07:11 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
	-v is missing in the usage of arp(8).

>How-To-Repeat:
	see usage
	
>Fix:
	* add -v to usage
	* sort options (description)

Index: arp/arp.8
===================================================================
RCS file: /cvs/cvsroot/src/usr.sbin/arp/arp.8,v
retrieving revision 1.16
diff -u -r1.16 arp.8
--- arp/arp.8	7 Aug 2003 11:25:12 -0000	1.16
+++ arp/arp.8	3 Aug 2004 13:43:48 -0000
@@ -81,6 +81,21 @@
 instead of a
 .Ar hostname ,
 it will delete all arp entries.
+.It Fl f
+Causes the file
+.Ar filename
+to be read and multiple entries to be set in the
+.Tn ARP
+tables.  Entries
+in the file should be of the form
+.Pp
+.Bd -filled -offset indent -compact
+.Ar hostname ether_addr
+.Op Ar temp
+.Op Ar pub
+.Ed
+.Pp
+with argument meanings as given above.
 .It Fl n
 Show network addresses as numbers (normally
 .Nm
@@ -105,21 +120,6 @@
 responding to requests for
 .Ar hostname
 even though the host address is not its own.
-.It Fl f
-Causes the file
-.Ar filename
-to be read and multiple entries to be set in the
-.Tn ARP
-tables.  Entries
-in the file should be of the form
-.Pp
-.Bd -filled -offset indent -compact
-.Ar hostname ether_addr
-.Op Ar temp
-.Op Ar pub
-.Ed
-.Pp
-with argument meanings as given above.
 .It Fl v
 Display verbose information when adding or deleting
 .Tn ARP
Index: arp/arp.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.sbin/arp/arp.c,v
retrieving revision 1.39
diff -u -r1.39 arp.c
--- arp/arp.c	14 Aug 2003 10:06:36 -0000	1.39
+++ arp/arp.c	3 Aug 2004 13:41:09 -0000
@@ -557,8 +557,8 @@
 
 	progname = getprogname();
 	(void)fprintf(stderr, "usage: %s [-n] hostname\n", progname);
-	(void)fprintf(stderr, "usage: %s [-n] -a\n", progname);
-	(void)fprintf(stderr, "usage: %s -d [-a|hostname]\n", progname);
+	(void)fprintf(stderr, "usage: %s [-nv] -a\n", progname);
+	(void)fprintf(stderr, "usage: %s [-v] -d [-a | hostname]\n", progname);
 	(void)fprintf(stderr,
 	    "usage: %s -s hostname ether_addr [temp] [pub]\n", progname);
 	(void)fprintf(stderr, "usage: %s -f filename\n", progname);

>Release-Note:
>Audit-Trail:
>Unformatted: