[rtems-libbsd commit] PING(8): Default to three packets

Sebastian Huber sebh at rtems.org
Wed Sep 24 08:48:51 UTC 2014


Module:    rtems-libbsd
Branch:    master
Commit:    54a4e3ce8327c795635855e58c86caf096c364ff
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=54a4e3ce8327c795635855e58c86caf096c364ff

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Sep 24 10:53:00 2014 +0200

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/freebsd/sbin/ping/ping.c b/freebsd/sbin/ping/ping.c
index f64245c..7f0a229 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;



More information about the vc mailing list