Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: Sam Edge To: cygwin AT cygwin DOT com Subject: Re: inetutils ping not present but portable Date: Wed, 16 Apr 2003 15:14:51 +0100 Organization: . Reply-To: cygwin AT cygwin DOT com Message-ID: References: <018701c3041c$07096f00$13001aac AT laloch> <20030416134815 DOT GN11137 AT cygbert DOT vinschen DOT de> In-Reply-To: <20030416134815.GN11137@cygbert.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Posting-Agent: Hamster/2.0.0.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h3GEG2J19482 Corinna Vinschen wrote in <20030416134815 DOT GN11137 AT cygbert DOT vinschen DOT de> in gmane.os.cygwin on Wed, 16 Apr 2003 15:48:15 +0200: > On Wed, Apr 16, 2003 at 03:28:10PM +0200, David Strobach wrote: > > Is there any special reason for ping not to be present in inteutils port? I > > have successfully compiled ping from inetutils-1.4.2 with no changes to > > source code. > > ping isn't present in 1.3.2. Also ping is included by default in all > Windows systems. Well, /a/ ping is included, although it's a pretty poor version compared to most. (Very granular timing, lack of broadcast option, etc., etc.) A port of a POSIX-style source should be pretty straightforward but a problem is that it opens raw sockets to generate/receive the ICMP datagrams and so needs to be suid-root for normal user accounts to be able to use it. On NT/2k/XP Cygwin's suid doesn't (yet? cygserver?) work for normal user accounts so a ported ping command would only work from an Administrative one. Microsoft's ping.exe gets around this by using the system icmp.dll that provides a limited ICMP datagram send/receive facility without needing enhanced privileges. I've been thinking about writing a better ping.exe using this for a while now, but have never gotten around to it. -- Sam Edge -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/