aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/gnunet-service-tng.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index 206c59363..3e4d750a2 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -8650,16 +8650,6 @@ select_best_pending_from_link (struct PendingMessageScoreContext *sc,
8650 if (NULL != pos->qe) 8650 if (NULL != pos->qe)
8651 continue; /* not eligible */ 8651 continue; /* not eligible */
8652 sc->consideration_counter++; 8652 sc->consideration_counter++;
8653 /* determine if we have to reliability-box, if so add reliability box
8654 overhead */
8655 relb = GNUNET_NO;
8656 if ((GNUNET_NO == frag) &&
8657 (0 == (pos->prefs & GNUNET_MQ_PREF_UNRELIABLE)) &&
8658 (GNUNET_TRANSPORT_CC_RELIABLE != queue->tc->details.communicator.cc))
8659 {
8660 relb = GNUNET_YES;
8661 real_overhead += sizeof (struct TransportReliabilityBoxMessage);
8662 }
8663 /* determine if we have to fragment, if so add fragmentation 8653 /* determine if we have to fragment, if so add fragmentation
8664 overhead! */ 8654 overhead! */
8665 frag = GNUNET_NO; 8655 frag = GNUNET_NO;
@@ -8679,6 +8669,16 @@ select_best_pending_from_link (struct PendingMessageScoreContext *sc,
8679 } 8669 }
8680 real_overhead = overhead + sizeof (struct TransportFragmentBoxMessage); 8670 real_overhead = overhead + sizeof (struct TransportFragmentBoxMessage);
8681 } 8671 }
8672 /* determine if we have to reliability-box, if so add reliability box
8673 overhead */
8674 relb = GNUNET_NO;
8675 if ((GNUNET_NO == frag) &&
8676 (0 == (pos->prefs & GNUNET_MQ_PREF_UNRELIABLE)) &&
8677 (GNUNET_TRANSPORT_CC_RELIABLE != queue->tc->details.communicator.cc))
8678 {
8679 relb = GNUNET_YES;
8680 real_overhead += sizeof (struct TransportReliabilityBoxMessage);
8681 }
8682 8682
8683 /* Finally, compare to existing 'best' in sc to see if this 'pos' pending 8683 /* Finally, compare to existing 'best' in sc to see if this 'pos' pending
8684 message would beat it! */ 8684 message would beat it! */