Package: oping Version: 1.4.0-1 Severity: normal Tags: upstream oping does not communicate ping failure to the calling process like the other ping tools do. Especially in the presence of the -c option, oping should really exit non-zero if more than half the pings fail.
Compare:
shelter:~% ping -c1 192.168.255.254 || echo "************** Non-zero exit code:
$?" #90
PING 192.168.255.254 (192.168.255.254) 56(84) bytes of data.
--- 192.168.255.254 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
************** Non-zero exit code: 1
shelter:~% ping6 -c1 1::1 || echo "************** Non-zero exit code: $?"
#91
PING 1::1(1::1) 56 data bytes
--- 1::1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
************** Non-zero exit code: 1
shelter:~% oping -c1 192.168.255.254 || echo "************** Non-zero exit
code: $?" #92
PING 192.168.255.254 (192.168.255.254) 56 bytes of data.
echo reply from 192.168.255.254 (192.168.255.254): icmp_seq=1 timeout
--- 192.168.255.254 ping statistics ---
1 packets transmitted, 0 received, 100.00% packet loss, time 0.0ms
shelter:~% oping -c1 1::1 || echo "************** Non-zero exit code: $?"
#93
PING 1::1 (1::1) 56 bytes of data.
echo reply from 1::1 (1::1): icmp_seq=1 timeout
--- 1::1 ping statistics ---
1 packets transmitted, 0 received, 100.00% packet loss, time 0.0ms
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages oping depends on:
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libncurses5 5.7+20100313-2 shared libraries for terminal hand
ii liboping0 1.4.0-1 C/C++ library to generate ICMP ECH
oping recommends no packages.
oping suggests no packages.
-- no debconf information
--
.''`. martin f. krafft <[email protected]> Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduck http://vcs-pkg.org
`- Debian - when you have better things to do than fixing systems
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

