Subject: bin/4615: ping options
To: None <gnats-bugs@gnats.netbsd.org>
From: David Jones <dej@inode.org>
List: netbsd-bugs
Date: 11/30/1997 20:28:32
>Number: 4615
>Category: bin
>Synopsis: Ping usage does not reflect -o option
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 30 17:50:00 1997
>Last-Modified:
>Originator: David Jones
>Organization:
INODE Community Networking
>Release: NetBSD 1.3 ALPHA
>Environment:
System: NetBSD endplay 1.2G NetBSD 1.2G (ENDPLAY) #3: Sat Jun 21 19:01:21 EDT 1997 dej@endplay:/usr/src/sys/arch/hp300/compile/ENDPLAY hp300
>Description:
The usage statement in ping does not mention the -o option.
>How-To-Repeat:
ping -junk
ping: illegal option -- j
Usage:
ping [-dDfnqrvRLP] [-c count] [-s size] [-l preload] [-p pattern]
[-i interval] [-i maxwait] [-t tos] [-T ttl] [-I addr] [-g gateway] host
However, the -o option to ping a host once is supported, so it should
be mentioned.
>Fix:
*** ping.c Mon Sep 15 07:16:43 1997
--- ping.c.new Sun Nov 30 20:36:02 1997
***************
*** 1625,1631 ****
usage(void)
{
(void)fprintf(stderr, "Usage: \n"
! "%s [-dDfnqrvRLP] [-c count] [-s size] [-l preload]"
" [-p pattern]\n"
" [-i interval] [-i maxwait] [-t tos] [-T ttl]"
" [-I addr] [-g gateway] host\n",
--- 1625,1631 ----
usage(void)
{
(void)fprintf(stderr, "Usage: \n"
! "%s [-dDfnoqrvRLP] [-c count] [-s size] [-l preload]"
" [-p pattern]\n"
" [-i interval] [-i maxwait] [-t tos] [-T ttl]"
" [-I addr] [-g gateway] host\n",
>Audit-Trail:
>Unformatted: