Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Aug 1997 19:34:08 -0400
From:      "Gary Palmer" <gpalmer@FreeBSD.ORG>
To:        j@uriah.heep.sax.de (J Wunsch)
Cc:        freebsd-bugs@hub.freebsd.org
Subject:   Re: bin/4218: change in ping behavior: -c now counts _received_ packets 
Message-ID:  <11069.870651248@orion.webspan.net>
In-Reply-To: Your message of "Sun, 03 Aug 1997 01:00:02 PDT." <199708030800.BAA12082@hub.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
J Wunsch wrote in message ID
<199708030800.BAA12082@hub.freebsd.org>:
>  As bkogawa@primenet.com wrote:
>  
>  > /sbin/ping -c <count> now pings until <count> pings are _received_,
>  > not until <count> pings are sent.

>  I agree that this behaviour is not what one would usually expect from
>  -c, but it seems to be this way in all ping -c versions i've seen so
>  far.

>  What makes you think this has been changed recently?  You can easily
>  verify in CVS that it has been this way all the time for FreeBSD, at
>  least.  So, while you're constantly speaking about `reverting'
>  something, there isn't really something to revert.  Implementing it as
>  a count of _sent_ packets would be a plain paradigm change, so it
>  should probably be done with a different option.

If ping does now use the received packet count, then something did
infact change. mrtg's RTT measuring script uses -c to limit the
packets sent, preventing the script going into a slow death for a host
that is dead/unreachable. -c on FreeBSD has meant transmitted packets
for a year at least.

gpalmer@orion:~> ping -c 2 206.154.70.2
PING 206.154.70.2 (206.154.70.2): 56 data bytes

--- 206.154.70.2 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss

(FreeBSD 2.1.x)

Gary
--
Gary Palmer                                          FreeBSD Core Team Member
FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info



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