From owner-freebsd-questions Tue Mar 28 20:01:47 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA06962 for questions-outgoing; Tue, 28 Mar 1995 20:01:47 -0800 Received: from netcom.netcom.com (root@netcom.netcom.com [192.100.81.100]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA06936 for ; Tue, 28 Mar 1995 20:01:40 -0800 Received: by netcom.netcom.com (8.6.11/Netcom) id TAA17860; Tue, 28 Mar 1995 19:29:00 -0800 From: dlr@netcom.com (dlr) Message-Id: <199503290329.TAA17860@netcom.netcom.com> Subject: Re: ping under freebsd To: davidg@Root.COM Date: Tue, 28 Mar 1995 19:28:59 -0800 (PST) Cc: dlr@netcom.com, questions@FreeBSD.org In-Reply-To: <199503240035.QAA00365@corbin.Root.COM> from "David Greenman" at Mar 23, 95 04:35:06 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1151 Sender: questions-owner@FreeBSD.org Precedence: bulk > > >the problem I am at now is that bsd ping returns a zeroeven if the > >connection isn't established. > > This behavior was added just after the 2.0 release: > > -------- > revision 1.4 > date: 1994/11/29 16:09:56; author: davidg; state: Exp; lines: +4 -1 > In past releases of FreeBSD, I have used the exit status of "ping" to > determine whether a connection to a given machine is up or not. > > In FreeBSD 2.0 (and therefore, I assume, BSD 4.4) the exit code of ping > is always zero, even if no packets were received. > > I would like to propose the following change to /usr/src/sbin/ping/ping.c > to restore this useful behaviour: > Does this mean there is a fix for this? I never received the rest of the message...if there was any. I still haven come up with a resolution for a script theat will check to see if a network ppp connection is up and if it isn't up to reestablish it. Pinging for the host of my provider seems the easiest, but there are probably other alternatives. Does anyone else listening to this list have a script like this working with v2.0? dave dlr@netcom.com dave dlr@netcom.com dlr@asylum.leri.net