Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2001 08:10:03 -0800 (PST)
From:      Peter Pentchev <roam@ringlet.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/32354: ping -c 0
Message-ID:  <200111281610.fASGA3U63310@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/32354; it has been noted by GNATS.

From: Peter Pentchev <roam@ringlet.net>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111281610.fASGA3U63310>