From 67f92e296735cd36163e4e0a15315a9cfed13563 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 22 Sep 2019 13:00:08 +0200 Subject: [PATCH] Allow setting the MTU in the test program. --- test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test.c b/test.c index 96ebb0c..2784649 100644 --- a/test.c +++ b/test.c @@ -31,6 +31,7 @@ double dropout; long total_out; long total_in; FILE *reference; +long mtu = 1300; char *reorder_data; size_t reorder_len; @@ -178,6 +179,10 @@ int main(int argc, char *argv[]) { read_size = atoi(getenv("READ_SIZE")); } + if(getenv("MTU")) { + mtu = atoi(getenv("MTU")); + } + char *reference_filename = getenv("REFERENCE"); if(reference_filename) { @@ -235,7 +240,7 @@ int main(int argc, char *argv[]) { return 1; } - utcp_set_mtu(u, 1300); + utcp_set_mtu(u, mtu); utcp_set_user_timeout(u, 10); if(!server) { -- 2.39.5