Alfred M. Szmidt <[EMAIL PROTECTED]> 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
_______________________________________________
Bug-inetutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-inetutils