Package: inetutils-ping
Version: 2:1.9.4-7
Severity: normal

Dear Maintainer,

ping and ping6 from this packages say in their --help:

  -i, --interval=NUMBER      wait NUMBER seconds between sending each packet

and ping6(1) manpage:

       -i, --interval=number
              Wait number seconds between sending each packet.

and ping(1) manpage:

     -i, --interval wait
             Wait wait seconds between sending each packet.  The default is to 
wait for one second between each packet.
             This option is incompatible with the -f option.


Ignoring for a moment inconsistent style of documenation, I think the
wait is actually in milliseconds.

# time ping6 --numeric --interval=1000 --count=3 google.com
PING google.com (2a00:1450:400a:803::200e): 56 data bytes
64 bytes from 2a00:1450:400a:803::200e: icmp_seq=0 ttl=55 time=0.943 ms
64 bytes from 2a00:1450:400a:803::200e: icmp_seq=1 ttl=55 time=0.751 ms
64 bytes from 2a00:1450:400a:803::200e: icmp_seq=2 ttl=55 time=0.791 ms
--- google.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.751/0.828/0.943/0.083 ms

real    0m2.006s
user    0m0.002s
sys     0m0.000s
#


That is good and useful for subsecond pings counts, but documentation and
--help text seems not accurate. It is also worth nothing that it must be
an integer number of miliseconds, i.e. 0.5 will not work.

Also doing --interval=0 sends pings very quickly, which is almost
equivalent to -f, which is disabled for non users. IMHO, interval smaller
than 50ms should be protected by the same mechanism probably. Not that it
is a "real protection" (because one can just spawn 1000 of processes to
do it anyway), but I guess consistency would be useful :)




Thanks! :)



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-2-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages inetutils-ping depends on:
ii  libc6     2.28-8
ii  libidn11  1.33-2.2
ii  netbase   5.5

inetutils-ping recommends no packages.

inetutils-ping suggests no packages.

-- no debconf information

Reply via email to