From owner-freebsd-bugs Sun Aug 3 10:21:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA03561 for bugs-outgoing; Sun, 3 Aug 1997 10:21:47 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id KAA03546 for ; Sun, 3 Aug 1997 10:21:42 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id TAA00954 for freebsd-bugs@hub.freebsd.org; Sun, 3 Aug 1997 19:21:41 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id TAA04574; Sun, 3 Aug 1997 19:11:05 +0200 (MET DST) Message-ID: <19970803191105.YT23746@uriah.heep.sax.de> Date: Sun, 3 Aug 1997 19:11:05 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-bugs@hub.freebsd.org Subject: Re: bin/4218: change in ping behavior: -c now counts _received_ packets References: <199708030800.BAA12082@hub.freebsd.org> <199708030912.CAA22377@implode.root.com> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199708030912.CAA22377@implode.root.com>; from David Greenman on Aug 3, 1997 02:12:04 -0700 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As David Greenman wrote: > Hmmm. FreeBSD 2.1.x and 2.2.x both do something a bit more complicated > than just wait for the packets to be received. ping will transmit up > to packets and wait for these to be received; it will wait for the > first received packet for up to 10 seconds, and a variable amount of time > (twice the maximum round trip time) if one or more have already been > received. Ah. I've only looked at the logic behind `nreceived', but missed the alarm handler. So the question arises: why has the alarm behaviour been changed at all? (And why is/was it not documented?) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)