aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-service-transport.c8
-rw-r--r--src/transport/test_quota_compliance.c6
-rw-r--r--src/transport/test_transport_api.c6
-rw-r--r--src/transport/test_transport_api_reliability.c6
4 files changed, 10 insertions, 16 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 990b50477..8b7726894 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -3680,14 +3680,14 @@ check_pending_validation (void *cls,
3680 if (NULL != (prem = n->pre_connect_message_buffer)) 3680 if (NULL != (prem = n->pre_connect_message_buffer))
3681 { 3681 {
3682 n->pre_connect_message_buffer = NULL; 3682 n->pre_connect_message_buffer = NULL;
3683 /*
3683 struct GNUNET_TRANSPORT_ATS_Information * ats = GNUNET_malloc(2 * sizeof(struct GNUNET_TRANSPORT_ATS_Information)); 3684 struct GNUNET_TRANSPORT_ATS_Information * ats = GNUNET_malloc(2 * sizeof(struct GNUNET_TRANSPORT_ATS_Information));
3684 ats[0].type = htonl(GNUNET_TRANSPORT_LATENCY_LSB); 3685 ats[0].type = htonl(GNUNET_TRANSPORT_LATENCY_LSB);
3685 ats[0].value = htonl(n->latency.rel_value); 3686 ats[0].value = htonl(n->latency.rel_value);
3686 ats[1].type = htonl(GNUNET_TRANSPORT_DISTANCE); 3687 ats[1].type = htonl(GNUNET_TRANSPORT_DISTANCE);
3687 ats[1].value = htonl(n->distance); 3688 ats[1].value = htonl(n->distance);*/
3688 handle_payload_message (prem, n, ats, 2); 3689 handle_payload_message (prem, n, NULL, 0);
3689 fprintf(stderr,"ATS!"); 3690 //GNUNET_free (ats);
3690 GNUNET_free (ats);
3691 GNUNET_free (prem); 3691 GNUNET_free (prem);
3692 } 3692 }
3693 } 3693 }
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index cc13bac80..e4b728007 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -244,8 +244,7 @@ static void
244notify_receive_new (void *cls, 244notify_receive_new (void *cls,
245 const struct GNUNET_PeerIdentity *peer, 245 const struct GNUNET_PeerIdentity *peer,
246 const struct GNUNET_MessageHeader *message, 246 const struct GNUNET_MessageHeader *message,
247 struct GNUNET_TIME_Relative latency, 247 const struct GNUNET_TRANSPORT_ATS_Information *ats, uint32_t ats_count)
248 uint32_t distance)
249{ 248{
250 unsigned int s; 249 unsigned int s;
251 const struct TestMessage *hdr; 250 const struct TestMessage *hdr;
@@ -538,8 +537,7 @@ static void measure (unsigned long long quota_p1, unsigned long long quota_p2 )
538static void 537static void
539notify_connect (void *cls, 538notify_connect (void *cls,
540 const struct GNUNET_PeerIdentity *peer, 539 const struct GNUNET_PeerIdentity *peer,
541 struct GNUNET_TIME_Relative latency, 540 const struct GNUNET_TRANSPORT_ATS_Information *ats, uint32_t ats_count)
542 uint32_t distance)
543{ 541{
544 if (cls == &p1) 542 if (cls == &p1)
545 { 543 {
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index e429ad7a7..488471e7a 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -140,8 +140,7 @@ static void
140notify_receive (void *cls, 140notify_receive (void *cls,
141 const struct GNUNET_PeerIdentity *peer, 141 const struct GNUNET_PeerIdentity *peer,
142 const struct GNUNET_MessageHeader *message, 142 const struct GNUNET_MessageHeader *message,
143 struct GNUNET_TIME_Relative latency, 143 const struct GNUNET_TRANSPORT_ATS_Information *ats, uint32_t ats_count)
144 uint32_t distance)
145{ 144{
146 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ok is (%d)!\n", 145 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ok is (%d)!\n",
147 ok); 146 ok);
@@ -186,8 +185,7 @@ notify_ready (void *cls, size_t size, void *buf)
186static void 185static void
187notify_connect (void *cls, 186notify_connect (void *cls,
188 const struct GNUNET_PeerIdentity *peer, 187 const struct GNUNET_PeerIdentity *peer,
189 struct GNUNET_TIME_Relative latency, 188 const struct GNUNET_TRANSPORT_ATS_Information *ats, uint32_t ats_count)
190 uint32_t distance)
191{ 189{
192 if (cls == &p1) 190 if (cls == &p1)
193 { 191 {
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c
index 063d1d3bb..e67399f71 100644
--- a/src/transport/test_transport_api_reliability.c
+++ b/src/transport/test_transport_api_reliability.c
@@ -185,8 +185,7 @@ static void
185notify_receive (void *cls, 185notify_receive (void *cls,
186 const struct GNUNET_PeerIdentity *peer, 186 const struct GNUNET_PeerIdentity *peer,
187 const struct GNUNET_MessageHeader *message, 187 const struct GNUNET_MessageHeader *message,
188 struct GNUNET_TIME_Relative latency, 188 const struct GNUNET_TRANSPORT_ATS_Information *ats, uint32_t ats_count)
189 uint32_t distance)
190{ 189{
191 static int n; 190 static int n;
192 unsigned int s; 191 unsigned int s;
@@ -324,8 +323,7 @@ notify_ready (void *cls, size_t size, void *buf)
324static void 323static void
325notify_connect (void *cls, 324notify_connect (void *cls,
326 const struct GNUNET_PeerIdentity *peer, 325 const struct GNUNET_PeerIdentity *peer,
327 struct GNUNET_TIME_Relative latency, 326 const struct GNUNET_TRANSPORT_ATS_Information *ats, uint32_t ats_count)
328 uint32_t distance)
329{ 327{
330 if (cls == &p1) 328 if (cls == &p1)
331 { 329 {