int c, val, max;
bool list = false, have_dest_mac = false;
struct nmrpd_args args = {
- .rx_timeout = NMRPFLASH_DEF_RX_TIMEOUT * 1000,
+ .rx_timeout = 200 * 1000,
.ul_timeout = 5 * 60 * 1000,
.tftpcmd = NULL,
.file_local = NULL,
const char *file_remote = args->file_remote;
char *val, *end;
bool rollover;
- unsigned rx_timeout = MAX(args->rx_timeout / NMRPFLASH_DEF_RX_TIMEOUT, 1000);
+ const unsigned rx_timeout = MAX(args->rx_timeout / (args->blind ? 50 : 5), 2000);
+ const unsigned max_timeouts = args->blind ? 3 : 5;
sock = -1;
ret = -1;
if (ret < 0) {
goto cleanup;
} else if (!ret) {
- if (++timeouts < 5 || (!block && timeouts < 10)) {
+ if (++timeouts < max_timeouts || (!block && timeouts < (max_timeouts * 4))) {
continue;
} else if (args->blind) {
timeouts = 0;