[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re:



On Sat, Apr 15, 2000 at 01:05:03PM +0530, Unix-Contractor, Wipro (CORP) wrote:
> to my surprise Linux is sending only 4 pkts & receiving 4 pkts, can some one
> explain me why this is happening ? 

Is it that hard to guess ? Your -w timeout is happening sooner than the
5 ICMP responses.

> 
> if any fix is available for this or is there any alternative is available?
> 

Just increase -w

$ ping -c  5 -w 4 astra
PING astra.sharmas.org (192.168.1.12) from 192.168.1.1 : 56(84) bytes of data.
64 bytes from 192.168.1.12: icmp_seq=0 ttl=255 time=0.6 ms
64 bytes from 192.168.1.12: icmp_seq=1 ttl=255 time=0.6 ms
64 bytes from 192.168.1.12: icmp_seq=2 ttl=255 time=0.6 ms
64 bytes from 192.168.1.12: icmp_seq=3 ttl=255 time=0.6 ms
64 bytes from 192.168.1.12: icmp_seq=4 ttl=255 time=0.6 ms

--- astra.sharmas.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.6/0.6/0.6 ms

> any suggestions & pointers will be appreciated.

If you have more questions, read the source. It's a single C file.

	-Arun