Re: [PATCH iputils ping]: report outstanding packets before sending next packet
From: YOSHIFUJI Hideaki <hidden>
Date: 2012-01-09 15:20:46
Ole Bj�rn Hessen wrote:
Hello,
please accept following patch to ping to let ping report outstanding
packets before sending next packet. This is a sorely missed feature
from the old sun ping. Very useful together with the -D option:
ping -DO 10.122.145.180> file
# wait next day
^C
grep "no answer yet" file
[1325752664.026900] 64 bytes from 10.122.145.180: icmp_req=20 ttl=64 time=0.695 ms
[1325752665.026926] 64 bytes from 10.122.145.180: icmp_req=21 ttl=64 time=0.695 ms
[1325752666.026917] 64 bytes from 10.122.145.180: icmp_req=22 ttl=64 time=0.682 ms
[1325752667.026922] 64 bytes from 10.122.145.180: icmp_req=23 ttl=64 time=0.695 ms
[1325752669.026217] no answer yet for icmp_seq=24
[1325752670.026207] no answer yet for icmp_seq=25
...
[1325752697.026206] no answer yet for icmp_seq=52
[1325752698.026205] no answer yet for icmp_seq=53
[1325752698.026962] 64 bytes from 10.122.145.180: icmp_req=54 ttl=64 time=0.717 ms
[1325752699.026930] 64 bytes from 10.122.145.180: icmp_req=55 ttl=64 time=0.690 ms
[1325752700.026928] 64 bytes from 10.122.145.180: icmp_req=56 ttl=64 time=0.695 ms
Kind regards,
Ole Bjørn Hessen,
TelenorApplied, thanks. Please provide the "signed-off-by" line, next time. --yoshfuji