mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-09 17:25:00 +00:00
Set default number of retries to 8 to make the netperf command more robust
This commit is contained in:
@@ -52,7 +52,7 @@ int snprintf(char *str, size_t size, const char *format, ...);
|
|||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define DATALEN 90
|
#define DATALEN 90
|
||||||
#define MAX_RETRIES 4
|
#define MAX_RETRIES 8
|
||||||
|
|
||||||
#define CONTINUE_EVENT 128
|
#define CONTINUE_EVENT 128
|
||||||
|
|
||||||
@@ -658,6 +658,7 @@ PROCESS_THREAD(shell_netperf_process, ev, data)
|
|||||||
|
|
||||||
for(i = 0; i < num_packets; ++i) {
|
for(i = 0; i < num_packets; ++i) {
|
||||||
if(construct_next_echo()) {
|
if(construct_next_echo()) {
|
||||||
|
|
||||||
unicast_send(&unicast, &receiver);
|
unicast_send(&unicast, &receiver);
|
||||||
stats.sent++;
|
stats.sent++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user