Bug 642005 - arping -c option broken for even numbers, even worse when combined with -w
Summary: arping -c option broken for even numbers, even worse when combined with -w
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: iputils
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-11 18:57 UTC by Armin Haken
Modified: 2014-11-09 22:33 UTC (History)
2 users (show)

Fixed In Version: iputils-20071127-13.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-27 22:48:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Armin Haken 2010-10-11 18:57:03 UTC
Description of problem:
arping -c <N> stops after N/2 packets when N is even (behaves as expected when N is odd)
arping -c <N> -w <M> does not stop after N responses when N is odd, when N is even it stopns after N/2 responses

How reproducible:
consistent

Steps to Reproduce:
arping -c 5 -I <intf> <ipaddr>
causes 5 arp requests to be sent and prints a summary (baseline - expected)

arping -c 6 -I <intf> <ipaddr>
causes only 3 arp requests to be sent, no summary is printed

arping -c 6 -w 10 <intf > <ipaddr>
exits after 3 arp responses, same as without -w (I would expect 6 responses)

arping -c 5 -w 10 <intf> <ipaddr>
continues for 11 responses (10 seconds) - I would expect 5 responses

Version-Release number of selected component (if applicable):
iputils-sss20071127
  
Actual results:
see above

Expected results:
see above

Additional info:

Comment 1 Jiri Skala 2010-10-12 05:42:04 UTC
Thanks for reporting. I have the same observation on F-13. Counting is really strength but I'd like to point out that the last example works fine.
See man page -w option. Usage of this option disables -c.

Comment 2 Fedora Update System 2010-10-12 08:59:37 UTC
iputils-20071127-13.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/iputils-20071127-13.fc13

Comment 3 Fedora Update System 2010-10-12 08:59:44 UTC
iputils-20071127-13.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/iputils-20071127-13.fc12

Comment 4 Jiri Skala 2010-10-12 09:02:34 UTC
I'd like to correct comment #1. The option -w should finish when -c responses is received if it's reached befero timeout. Sorry for confusing.

Comment 5 Fedora Update System 2010-10-14 06:36:35 UTC
iputils-20071127-13.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update iputils'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/iputils-20071127-13.fc13

Comment 6 Fedora Update System 2010-10-27 22:48:42 UTC
iputils-20071127-13.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2010-11-23 21:51:11 UTC
iputils-20071127-13.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.