[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] ping/ping6 default count
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-inetutils] ping/ping6 default count |
Date: |
Fri, 17 Nov 2006 15:58:57 +0200 |
Alfred M. Szmidt <address@hidden> wrote:
> Several implementations of ping do quit after N packets. There is
> really nothing traditional about it. And there is a way to force ping
> to send a unlimited number of packets, `ping -c 0 HOST'.
No, it needed the following patch:
Index: ping/ping.c
===================================================================
RCS file: /cvsroot/inetutils/inetutils/ping/ping.c,v
retrieving revision 1.29
diff -p -u -r1.29 ping.c
--- ping/ping.c 11 Nov 2006 01:31:15 -0000 1.29
+++ ping/ping.c 17 Nov 2006 13:55:55 -0000
@@ -149,7 +149,7 @@ main (int argc, char **argv)
break;
case 'c':
- count = ping_cvt_number (optarg, 0, 0);
+ count = ping_cvt_number (optarg, 0, 1);
break;
case 'd':
Regards,
Sergey