gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 01/02: -tng: fix max MTU value


From: gnunet
Subject: [gnunet] 01/02: -tng: fix max MTU value
Date: Fri, 14 May 2021 12:29:08 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit 014b6c1b340b23697195410934cbe0632b68e8f1
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Fri May 14 12:26:02 2021 +0200

    -tng: fix max MTU value
---
 src/transport/test_communicator_basic.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

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 (

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]