From 9c62a8c1a6ef8d468cc24f743515c482a0c9b767 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Mon, 7 Feb 2011 17:34:39 +0100 Subject: [PATCH] Set default number of retries to 8 to make the netperf command more robust --- apps/shell/shell-netperf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/shell/shell-netperf.c b/apps/shell/shell-netperf.c index eb9253a13..d68ba47f0 100644 --- a/apps/shell/shell-netperf.c +++ b/apps/shell/shell-netperf.c @@ -52,7 +52,7 @@ int snprintf(char *str, size_t size, const char *format, ...); /*---------------------------------------------------------------------------*/ #define DATALEN 90 -#define MAX_RETRIES 4 +#define MAX_RETRIES 8 #define CONTINUE_EVENT 128 @@ -658,6 +658,7 @@ PROCESS_THREAD(shell_netperf_process, ev, data) for(i = 0; i < num_packets; ++i) { if(construct_next_echo()) { + unicast_send(&unicast, &receiver); stats.sent++; }