Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2001 08:10:02 -0800 (PST)
From:      setantae <setantae@submonkey.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/32354: ping -c 0
Message-ID:  <200111281610.fASGA2h63305@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: setantae <setantae@submonkey.net>
To: root@topcat.zoonami.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/32354: ping -c 0
Date: Wed, 28 Nov 2001 16:02:34 +0000

 On Wed, Nov 28, 2001 at 03:47:23PM +0000, djones@zoonami.com wrote:
 >   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.
 
 It doesn't though, does it ?
 
      -c count
              Stop after sending (and receiving) count ECHO_RESPONSE packets.
 
 I think you'd be after :
 
 rhadamanth# ping -l 5 -c 5 archaia
 PING archaia.private.submonkey.net. (192.168.10.2): 56 data bytes
 64 bytes from 192.168.10.2: icmp_seq=0 ttl=255 time=1.387 ms
 64 bytes from 192.168.10.2: icmp_seq=1 ttl=255 time=1.566 ms
 64 bytes from 192.168.10.2: icmp_seq=2 ttl=255 time=1.882 ms
 64 bytes from 192.168.10.2: icmp_seq=3 ttl=255 time=2.110 ms
 64 bytes from 192.168.10.2: icmp_seq=4 ttl=255 time=2.406 ms
 
 --- archaia.private.submonkey.net. ping statistics ---
 6 packets transmitted, 5 packets received, 16% packet loss
 round-trip min/avg/max/stddev = 1.387/1.870/2.406/0.366 ms
 rhadamanth#
 
 Ceri

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.fASGA2h63305>