There is a bug report about missing -W parameter in ping for
compatibility with iputils-ping:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566845

I've pushed a patch implementing this.  The most trivial way of testing
it works, at least.

iputils:

root@sid:~# ping -V
ping utility, iputils-sss20101006
root@sid:~# time ping -c 3 213.115.69.140
PING 213.115.69.140 (213.115.69.140) 56(84) bytes of data.

--- 213.115.69.140 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2015ms


real    0m12.019s
user    0m0.000s
sys     0m0.000s
root@sid:~# time ping -W 1 -c 3 213.115.69.140
PING 213.115.69.140 (213.115.69.140) 56(84) bytes of data.

--- 213.115.69.140 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2015ms


real    0m3.019s
user    0m0.000s
sys     0m0.000s
root@sid:~# 

old inetutils:

root@sid:~# ping --version
ping (GNU inetutils) 1.8
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Sergey Poznyakoff.
root@sid:~# time ping -c 3 213.115.69.140
PING 213.115.69.140 (213.115.69.140): 48 data bytes
--- 213.115.69.140 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

real    0m13.016s
user    0m0.004s
sys     0m0.000s
root@sid:~# 

new inetutils:

jas@latte:~/src/inetutils/ping master$ time sudo ./ping -c 3 213.115.69.140
PING 213.115.69.140 (213.115.69.140): 48 data bytes
--- 213.115.69.140 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

real    0m13.018s
user    0m0.000s
sys     0m0.008s
jas@latte:~/src/inetutils/ping master$ time sudo ./ping -W 1 -c 3 213.115.69.140
PING 213.115.69.140 (213.115.69.140): 48 data bytes
--- 213.115.69.140 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

real    0m4.013s
user    0m0.004s
sys     0m0.004s
jas@latte:~/src/inetutils/ping master$ 

/Simon

Reply via email to