Red Hat Bugzilla – Bug 7264
ping -c fails to operate as expected
Last modified: 2008-05-01 11:37:53 EDT
I frequently do ping -c 100 <hostname>; I expect it to send exactly
100 packets and tell me how many it got back, along with all the
statistics it reports. However, the change apparently introduced
with RedHat 6.0 causes it to wait until it receives 100 responses,
which is exactly the opposite of every single ping program I have
ever used, and exactly the opposite of the way I want it to work.
There is no option to revert this blatently broken behavior, either.
Also: for all related ping -c bugs reported:
Redhat-6.1, the ping-ank.patch is broken (probably also the kuznetsov patch).
Fix the patch by hand, rebuild the rpm and reinstall. The two lines to fix
% rpm -ivh netkit-base-0.10-37.src.rpm
% cd /usr/src/redhat/SOURCES
% vi ping-ank.patch
line 929: Change +725,12 to +725,13
line 937: Remove the leading -
line 1392: Change +1020,7 to +1020,8
line 1397: Remove the leading -
Save and exit
% cd /usr/src/rdhat/SPECS
% rpm -bb netkit-base.spec
% cd /usr/src/redhat/RPMS/i386
% rpm -Uvh --force netkit-base-0.10-37.i386.rpm
People who know this rpm stuff better, or redhat could issue a new patch to
this whole problem.
*** This bug has been marked as a duplicate of 8724 ***