summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-14 12:26:02 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-14 12:26:02 +0200
commit014b6c1b340b23697195410934cbe0632b68e8f1 (patch)
tree842a012bf90be9623768a133c64a550c42e6af81 /src/transport
parent5087e28bb336fca805a92af1b51c881f37f4f3c8 (diff)
-tng: fix max MTU value
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/test_communicator_basic.c9
1 files changed, 8 insertions, 1 deletions
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 (