This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: inetutils ping not present but portable


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]