From 54a4e3ce8327c795635855e58c86caf096c364ff Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 24 Sep 2014 10:53:00 +0200 Subject: PING(8): Default to three packets In the standard RTEMS shell it is not possible to use CTRL-C, to stop the program. So use a default with finite run-time. --- freebsd/sbin/ping/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freebsd/sbin/ping/ping.c b/freebsd/sbin/ping/ping.c index f64245cf..7f0a2297 100644 --- a/freebsd/sbin/ping/ping.c +++ b/freebsd/sbin/ping/ping.c @@ -238,7 +238,7 @@ int rtems_bsd_command_ping(int argc, char *argv[]) icmp_type_rsp = ICMP_ECHOREPLY; phdr_len = 0; nmissedmax = 0; - npackets = 0; + npackets = 3; nreceived = 0; nrepeats = 0; ntransmitted = 0; -- cgit v1.2.3