summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-tng.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-15 23:36:28 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-15 23:36:28 +0100
commit35e5be0b0b4c7aea5a56d6a62333ab3a964a2972 (patch)
treedcf9f574eed732ed0d62ae9baf4980fb1fdaa8df /src/transport/gnunet-service-tng.c
parent196a0bf9699d9ecead4b50819bd64d3174795296 (diff)
notes
Diffstat (limited to 'src/transport/gnunet-service-tng.c')
-rw-r--r--src/transport/gnunet-service-tng.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index 555210585..c7bdfd77c 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -19,6 +19,15 @@
* @file transport/gnunet-service-transport.c
* @brief main for gnunet-service-transport
* @author Christian Grothoff
+ *
+ * TODO:
+ * - make *our* collected addresses available somehow somewhere
+ * => Choices: in peerstore or revive/keep peerinfo?
+ * - MTU information is missing for queues!
+ * - start supporting monitor logic (add functions to signal monitors!)
+ * - manage fragmentation/defragmentation, retransmission, track RTT, loss, etc.
+ * - ask ATS about bandwidth allocation
+ * -
*/
#include "platform.h"
#include "gnunet_util_lib.h"
@@ -133,6 +142,8 @@ struct Queue
* Network type offered by this queue.
*/
enum GNUNET_ATS_Network_Type nt;
+
+ // FIXME: add ATS-specific fields here!
};
@@ -167,6 +178,18 @@ struct Neighbour
*/
struct Queue *queue_tail;
+ /**
+ * Quota at which CORE is allowed to transmit to this peer
+ * according to ATS.
+ *
+ * FIXME: not yet used, tricky to get right given multiple queues!
+ * (=> Idea: let ATS set a quota per queue and we add them up here?)
+ * FIXME: how do we set this value initially when we tell CORE?
+ * Options: start at a minimum value or at literally zero (before ATS?)
+ * (=> Current thought: clean would be zero!)
+ */
+ struct GNUNET_BANDWIDTH_Value32NBO quota_out;
+
};