From 4506659b691152e72a7da7f2b2a59ed4558fcbad Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Fri, 10 Jun 2022 17:28:48 +0200 Subject: [PATCH] Increase default RX and upload timeouts This should address the issue of users having to specify `-t 10000 -T 10000`. --- main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 32e68b7..4678709 100644 --- a/main.c +++ b/main.c @@ -23,6 +23,9 @@ #include #include "nmrpd.h" +#define NMRP_UL_TIMEOUT_S 30 * 60 +#define NMRP_RX_TIMEOUT_MS 10000 + void usage(FILE *fp) { fprintf(fp, @@ -132,8 +135,8 @@ int main(int argc, char **argv) int c, val, max; bool list = false, have_dest_mac = false; struct nmrpd_args args = { - .rx_timeout = 1000, - .ul_timeout = 15 * 60 * 1000, + .rx_timeout = (NMRP_RX_TIMEOUT_MS), + .ul_timeout = (NMRP_UL_TIMEOUT_S) * 1000, .tftpcmd = NULL, .file_local = NULL, .file_remote = NULL,