aboutsummaryrefslogtreecommitdiff
path: root/src/dv/test_transport_api_dv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dv/test_transport_api_dv.c')
-rw-r--r--src/dv/test_transport_api_dv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dv/test_transport_api_dv.c b/src/dv/test_transport_api_dv.c
index a38e2fa29..82b3cb235 100644
--- a/src/dv/test_transport_api_dv.c
+++ b/src/dv/test_transport_api_dv.c
@@ -394,12 +394,12 @@ send_other_messages (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
394 * @return connected transport distance 394 * @return connected transport distance
395 */ 395 */
396static uint32_t 396static uint32_t
397get_atsi_distance (const struct GNUNET_TRANSPORT_ATS_Information *atsi) 397get_atsi_distance (const struct GNUNET_ATS_Information *atsi)
398{ 398{
399 while ((ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR) && 399 while ((ntohl (atsi->type) != GNUNET_ATS_ARRAY_TERMINATOR) &&
400 (ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE)) 400 (ntohl (atsi->type) != GNUNET_ATS_QUALITY_NET_DISTANCE))
401 atsi++; 401 atsi++;
402 if (ntohl (atsi->type) == GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR) 402 if (ntohl (atsi->type) == GNUNET_ATS_ARRAY_TERMINATOR)
403 { 403 {
404 GNUNET_break (0); 404 GNUNET_break (0);
405 /* FIXME: we do not have distance data? Assume direct neighbor. */ 405 /* FIXME: we do not have distance data? Assume direct neighbor. */
@@ -411,7 +411,7 @@ get_atsi_distance (const struct GNUNET_TRANSPORT_ATS_Information *atsi)
411static int 411static int
412process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 412process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
413 const struct GNUNET_MessageHeader *message, 413 const struct GNUNET_MessageHeader *message,
414 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 414 const struct GNUNET_ATS_Information *atsi)
415{ 415{
416 struct TestMessageContext *pos = cls; 416 struct TestMessageContext *pos = cls;
417 struct GNUNET_TestMessage *msg = (struct GNUNET_TestMessage *) message; 417 struct GNUNET_TestMessage *msg = (struct GNUNET_TestMessage *) message;
@@ -527,7 +527,7 @@ static struct GNUNET_CORE_MessageHandler handlers[] = {
527 */ 527 */
528static void 528static void
529connect_notify_peer2 (void *cls, const struct GNUNET_PeerIdentity *peer, 529connect_notify_peer2 (void *cls, const struct GNUNET_PeerIdentity *peer,
530 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 530 const struct GNUNET_ATS_Information *atsi)
531{ 531{
532 struct TestMessageContext *pos = cls; 532 struct TestMessageContext *pos = cls;
533 533
@@ -580,7 +580,7 @@ init_notify_peer2 (void *cls, struct GNUNET_CORE_Handle *server,
580 */ 580 */
581static void 581static void
582connect_notify_peer1 (void *cls, const struct GNUNET_PeerIdentity *peer, 582connect_notify_peer1 (void *cls, const struct GNUNET_PeerIdentity *peer,
583 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 583 const struct GNUNET_ATS_Information *atsi)
584{ 584{
585 struct TestMessageContext *pos = cls; 585 struct TestMessageContext *pos = cls;
586 586
@@ -840,7 +840,7 @@ topology_callback (void *cls, const struct GNUNET_PeerIdentity *first,
840 */ 840 */
841static void 841static void
842all_connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer, 842all_connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
843 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 843 const struct GNUNET_ATS_Information *atsi)
844{ 844{
845 struct GNUNET_TESTING_Daemon *d = cls; 845 struct GNUNET_TESTING_Daemon *d = cls;
846 struct GNUNET_TESTING_Daemon *second_daemon; 846 struct GNUNET_TESTING_Daemon *second_daemon;