aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_manipulation_send_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_transport_api_manipulation_send_tcp.c')
-rw-r--r--src/transport/test_transport_api_manipulation_send_tcp.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/transport/test_transport_api_manipulation_send_tcp.c b/src/transport/test_transport_api_manipulation_send_tcp.c
index 3ec7f7bf3..5361e0aba 100644
--- a/src/transport/test_transport_api_manipulation_send_tcp.c
+++ b/src/transport/test_transport_api_manipulation_send_tcp.c
@@ -162,12 +162,10 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
162 162
163static void 163static void
164notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, 164notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
165 const struct GNUNET_MessageHeader *message, 165 const struct GNUNET_MessageHeader *message)
166 const struct GNUNET_ATS_Information *ats, uint32_t ats_count)
167{ 166{
168 struct PeerContext *p = cls; 167 struct PeerContext *p = cls;
169 struct PeerContext *t = NULL; 168 struct PeerContext *t = NULL;
170 int c;
171 169
172 if (0 == memcmp (peer, &p1->id, sizeof (struct GNUNET_PeerIdentity))) 170 if (0 == memcmp (peer, &p1->id, sizeof (struct GNUNET_PeerIdentity)))
173 t = p1; 171 t = p1;
@@ -223,19 +221,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
223 "Delayed message was not delayed correctly: took only %llu\n", 221 "Delayed message was not delayed correctly: took only %llu\n",
224 (long long unsigned int) dur_delayed.rel_value); 222 (long long unsigned int) dur_delayed.rel_value);
225 } 223 }
226 for (c = 0; c < ats_count; c++) 224
227 {
228 if (ntohl (ats[c].type) == GNUNET_ATS_QUALITY_NET_DISTANCE)
229 {
230 if (ntohl (ats[c].value) == 10)
231 ok += 0;
232 else
233 {
234 GNUNET_break (0);
235 ok += 1;
236 }
237 }
238 }
239 /* shutdown */ 225 /* shutdown */
240 end (); 226 end ();
241 } 227 }
@@ -322,8 +308,7 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
322 308
323 309
324static void 310static void
325notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, 311notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer)
326 const struct GNUNET_ATS_Information *ats, uint32_t ats_count)
327{ 312{
328 static int c; 313 static int c;
329 314