[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] ping -W timeout
From: |
Simon Josefsson |
Subject: |
[bug-inetutils] ping -W timeout |
Date: |
Mon, 14 Nov 2011 10:48:24 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) |
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:
address@hidden:~# ping -V
ping utility, iputils-sss20101006
address@hidden:~# 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
address@hidden:~# 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
address@hidden:~#
old inetutils:
address@hidden:~# 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.
address@hidden:~# 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
address@hidden:~#
new inetutils:
address@hidden:~/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
address@hidden:~/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
address@hidden:~/src/inetutils/ping master$
/Simon
- [bug-inetutils] ping -W timeout,
Simon Josefsson <=