From owner-freebsd-bugs Sun Aug 3 16:34:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA26075 for bugs-outgoing; Sun, 3 Aug 1997 16:34:12 -0700 (PDT) Received: from mail.webspan.net (root@mail.webspan.net [206.154.70.7]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA26070 for ; Sun, 3 Aug 1997 16:34:10 -0700 (PDT) Received: from orion.webspan.net (orion.webspan.net [206.154.70.5]) by mail.webspan.net (WEBSPAN/970608) with ESMTP id TAA11725; Sun, 3 Aug 1997 19:34:09 -0400 (EDT) Received: from orion.webspan.net (localhost [127.0.0.1]) by orion.webspan.net (WEBSPAN/970608) with ESMTP id TAA11071; Sun, 3 Aug 1997 19:34:08 -0400 (EDT) To: j@uriah.heep.sax.de (J Wunsch) cc: freebsd-bugs@hub.freebsd.org From: "Gary Palmer" Subject: Re: bin/4218: change in ping behavior: -c now counts _received_ packets In-reply-to: Your message of "Sun, 03 Aug 1997 01:00:02 PDT." <199708030800.BAA12082@hub.freebsd.org> Date: Sun, 03 Aug 1997 19:34:08 -0400 Message-ID: <11069.870651248@orion.webspan.net> Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk J Wunsch wrote in message ID <199708030800.BAA12082@hub.freebsd.org>: > As bkogawa@primenet.com wrote: > > > /sbin/ping -c now pings until pings are _received_, > > not until 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