From 014b6c1b340b23697195410934cbe0632b68e8f1 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Fri, 14 May 2021 12:26:02 +0200 Subject: -tng: fix max MTU value --- src/transport/test_communicator_basic.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/transport') diff --git a/src/transport/test_communicator_basic.c b/src/transport/test_communicator_basic.c index 202bc0a5b..970093b83 100644 --- a/src/transport/test_communicator_basic.c +++ b/src/transport/test_communicator_basic.c @@ -774,11 +774,18 @@ add_queue_cb (void *cls, "Queue established, starting test...\n"); // start_short = GNUNET_TIME_absolute_get (); // my_tc = tc_h; - if (0 != mtu) /* Message header overhead */ + LOG (GNUNET_ERROR_TYPE_DEBUG, + "MTU: %llu, Overhead: %llu\n", + mtu, + sizeof(struct GNUNET_TRANSPORT_SendMessageTo) + + sizeof(struct GNUNET_MessageHeader)); + if (UINT32_MAX != mtu) /* Message header overhead */ long_message_size = mtu - sizeof(struct GNUNET_TRANSPORT_SendMessageTo) - sizeof(struct GNUNET_MessageHeader); else long_message_size = LONG_MESSAGE_SIZE; + LOG (GNUNET_ERROR_TYPE_DEBUG, + "Set message size to %llu\n", long_message_size); // phase = TP_BURST_SHORT; timeout[peer_nr] = GNUNET_TIME_relative_to_absolute ( GNUNET_TIME_relative_multiply ( -- cgit v1.2.3