bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] ping -c 1 down.site.com never returns


From: rwhron
Subject: [bug-inetutils] ping -c 1 down.site.com never returns
Date: Wed, 24 Dec 2003 20:03:20 -0500
User-agent: Mutt/1.4.1i

ping -c 1 www.ibm.com never returns.  The site drops
icmp packets.

The "never returns" behaviour is not what I expected.  
I thought after a few seconds to see:

1 packets transmitted, 0 packets received, 100% packet loss

The actual behaviour is for ping to continue running until
it receives a packet or is interrupted.

inetutils-1.4.2/ping/ping.c has this line:

if (ping->ping_count && ping->ping_num_recv >= ping->ping_count)

I believe that is why "ping -c 1 pack.dropping.site.com" doesn't
return.

Can anyone think of an elegant solution?  Or is this the
desired behaviour?

-- 
Randy Hron
http://home.earthlink.net/~rwhron/kernel/bigbox.html





reply via email to

[Prev in Thread] Current Thread [Next in Thread]