aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-tng.c
diff options
context:
space:
mode:
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 @@
19 * @file transport/gnunet-service-transport.c 19 * @file transport/gnunet-service-transport.c
20 * @brief main for gnunet-service-transport 20 * @brief main for gnunet-service-transport
21 * @author Christian Grothoff 21 * @author Christian Grothoff
22 *
23 * TODO:
24 * - make *our* collected addresses available somehow somewhere
25 * => Choices: in peerstore or revive/keep peerinfo?
26 * - MTU information is missing for queues!
27 * - start supporting monitor logic (add functions to signal monitors!)
28 * - manage fragmentation/defragmentation, retransmission, track RTT, loss, etc.
29 * - ask ATS about bandwidth allocation
30 * -
22 */ 31 */
23#include "platform.h" 32#include "platform.h"
24#include "gnunet_util_lib.h" 33#include "gnunet_util_lib.h"
@@ -133,6 +142,8 @@ struct Queue
133 * Network type offered by this queue. 142 * Network type offered by this queue.
134 */ 143 */
135 enum GNUNET_ATS_Network_Type nt; 144 enum GNUNET_ATS_Network_Type nt;
145
146 // FIXME: add ATS-specific fields here!
136}; 147};
137 148
138 149
@@ -167,6 +178,18 @@ struct Neighbour
167 */ 178 */
168 struct Queue *queue_tail; 179 struct Queue *queue_tail;
169 180
181 /**
182 * Quota at which CORE is allowed to transmit to this peer
183 * according to ATS.
184 *
185 * FIXME: not yet used, tricky to get right given multiple queues!
186 * (=> Idea: let ATS set a quota per queue and we add them up here?)
187 * FIXME: how do we set this value initially when we tell CORE?
188 * Options: start at a minimum value or at literally zero (before ATS?)
189 * (=> Current thought: clean would be zero!)
190 */
191 struct GNUNET_BANDWIDTH_Value32NBO quota_out;
192
170}; 193};
171 194
172 195