[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix mtu; neighbour send
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix mtu; neighbour send |
Date: |
Wed, 24 Feb 2021 10:49:02 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new e3c79b5a5 -fix mtu; neighbour send
e3c79b5a5 is described below
commit e3c79b5a5d77ee22e78d503cf2318d809551ee2c
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Wed Feb 24 10:47:42 2021 +0100
-fix mtu; neighbour send
---
src/transport/gnunet-communicator-tcp.c | 2 +-
src/transport/gnunet-service-tng.c | 7 +++----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/transport/gnunet-communicator-tcp.c
b/src/transport/gnunet-communicator-tcp.c
index ed82dba9f..273dbac48 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -1778,7 +1778,7 @@ try_handle_plaintext (struct Queue *queue)
queue->qh = GNUNET_TRANSPORT_communicator_mq_add (ch,
&queue->target,
foreign_addr,
- 0 /* no MTU */,
+ UINT32_MAX, /* no MTU */
GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED,
0, /* Priority */
queue->nt,
diff --git a/src/transport/gnunet-service-tng.c
b/src/transport/gnunet-service-tng.c
index 7e1953663..bfa5ca772 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -7765,8 +7765,8 @@ handle_validation_challenge (
/* Use route via neighbour */
n = lookup_neighbour (&sender);
if (NULL != n)
- for (struct Queue *q = n->queue_head; NULL != q; q = q->next_neighbour)
- queue_send_msg (q, NULL, &tvr, sizeof(tvr));
+ route_via_neighbour (n, &tvr.header,
+ RMO_ANYTHING_GOES | RMO_REDUNDANT);
}
finish_cmc_handling (cmc);
@@ -9550,8 +9550,7 @@ handle_add_queue_message (void *cls,
const char *addr;
uint16_t addr_len;
- if ((0 != ntohl (aqm->mtu)) &&
- (ntohl (aqm->mtu) <= sizeof(struct TransportFragmentBoxMessage)))
+ if (ntohl (aqm->mtu) <= sizeof(struct TransportFragmentBoxMessage))
{
/* MTU so small as to be useless for transmissions,
required for #fragment_message()! */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -fix mtu; neighbour send,
gnunet <=