Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 1995 16:35:06 -0800
From:      David Greenman <davidg@Root.COM>
To:        dlr@netcom.com (dlr)
Cc:        questions@FreeBSD.org
Subject:   Re: ping under freebsd 
Message-ID:  <199503240035.QAA00365@corbin.Root.COM>
In-Reply-To: Your message of "Thu, 23 Mar 95 13:41:21 PST." <199503232141.NAA05443@netcom.netcom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>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:

Submitted by:   Denis Fortin
--------

-DG



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