From owner-freebsd-bugs Wed Nov 28 8:10:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3BA9F37B417 for ; Wed, 28 Nov 2001 08:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fASGA3U63310; Wed, 28 Nov 2001 08:10:03 -0800 (PST) (envelope-from gnats) Date: Wed, 28 Nov 2001 08:10:03 -0800 (PST) Message-Id: <200111281610.fASGA3U63310@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: bin/32354: ping -c 0 Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/32354; it has been noted by GNATS. From: Peter Pentchev To: root@topcat.zoonami.com Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/32354: ping -c 0 Date: Wed, 28 Nov 2001 18:02:28 +0200 On Wed, Nov 28, 2001 at 03:47:23PM +0000, djones@zoonami.com wrote: > > >Number: 32354 > >Category: bin > >Synopsis: # "ping -l 5 -c 0 gateway", slightly unreasonably, gives an error. > >Originator: David Jones > >Release: FreeBSD 4.3-RELEASE i386 > >Organization: > Zoonami Limited > >Environment: > System: FreeBSD topcat.zoonami.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Thu Nov 1 14:13:13 GMT 2001 root@topcat.zoonami.com:/usr/src/sys/compile/GENERIC i386 > > > >Description: > At the command line: > > # ping -l 5 -c 0 gateway > > yields the error: > > ping: invalid count of packets to transmit: `0' > > whereas in this case I think -c 0 specifies something reasonable: > Send 5 packets as quickly as possible, then no more, then exit. > > Perhaps it could be changed to accept -c 0 if -l has been used? 'c' specifies the *total* number of packets to send. Try ping -l 5 -c 5 gateway, then try ping -l 5 -c 8 gateway. G'luck, Peter -- If I were you, who would be reading this sentence? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message