aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent196a0bf9699d9ecead4b50819bd64d3174795296 (diff)
downloadgnunet-35e5be0b0b4c7aea5a56d6a62333ab3a964a2972.tar.gz
gnunet-35e5be0b0b4c7aea5a56d6a62333ab3a964a2972.zip
notes
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_bandwidth_lib.h2
-rw-r--r--src/transport/gnunet-service-tng.c23
-rw-r--r--src/transport/transport.h2
3 files changed, 26 insertions, 1 deletions
diff --git a/src/include/gnunet_bandwidth_lib.h b/src/include/gnunet_bandwidth_lib.h
index 78610c48b..4395b878b 100644
--- a/src/include/gnunet_bandwidth_lib.h
+++ b/src/include/gnunet_bandwidth_lib.h
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/ 17*/
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
diff --git a/src/transport/transport.h b/src/transport/transport.h
index 129b1ce15..423d3cefa 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -800,6 +800,8 @@ struct GNUNET_TRANSPORT_AddQueueMessage
800 */ 800 */
801 uint32_t nt; 801 uint32_t nt;
802 802
803 // FIXME: add MTU?
804
803 /* followed by UTF-8 encoded, 0-terminated human-readable address */ 805 /* followed by UTF-8 encoded, 0-terminated human-readable address */
804}; 806};
805 807