delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/16/11:00:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <026301c30428$d601f000$13001aac@laloch>
From: "David Strobach" <cygwin-mlists AT nmt DOT cz>
To: <cygwin AT cygwin DOT com>
References: <018701c3041c$07096f00$13001aac AT laloch> <20030416134815 DOT GN11137 AT cygbert DOT vinschen DOT de> <qgoq9v4elcttj193c0eujtcka06u820u4t AT 4ax DOT com>
Subject: Re: inetutils ping not present but portable
Date: Wed, 16 Apr 2003 16:59:52 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

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

--

Thank you very much for suggestion.

David


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019