Support changing packet count on command line to unlimited

Bug #655411 reported by Michael Clark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iputils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Currently ping takes the last value supplied by '-c x' as the number of ECHO_REQUEST packets to send. If '-c' is not specified it defaults to 0 (false), and has no upper limit on ECHO_REQUEST packets sent. However, once a value for '-c' has been specified on the command line, such as in a bash alias, the value cannot become unlimited due to line 110 of ping_common.c - which checks for 'npackets <= 0'.

Could we change this to 'npackets < 0', to allow later options to change this back to the unlimited option?

Ubuntu 10.4, iputils package up to date as of today.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.