aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-22 09:09:47 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-22 09:09:47 +0000
commitbdedd80eefe17fa6d0113799ee010e4f78b78b77 (patch)
treefa7c5031384bc1363aeecd8400458699ca996c75 /src/dv
parent33f4f49804f7940a8ed95b3185bed27ad406c204 (diff)
downloadgnunet-bdedd80eefe17fa6d0113799ee010e4f78b78b77.tar.gz
gnunet-bdedd80eefe17fa6d0113799ee010e4f78b78b77.zip
fix
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/gnunet-service-dv.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c
index f72d814ce..d3da3bbfd 100644
--- a/src/dv/gnunet-service-dv.c
+++ b/src/dv/gnunet-service-dv.c
@@ -716,9 +716,7 @@ start_consensus (void *cls,
716 * @param atsi_count number of entries in atsi 716 * @param atsi_count number of entries in atsi
717 */ 717 */
718static void 718static void
719handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer, 719handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer)
720 const struct GNUNET_ATS_Information *atsi,
721 unsigned int atsi_count)
722{ 720{
723 struct DirectNeighbor *neighbor; 721 struct DirectNeighbor *neighbor;
724 struct Route *route; 722 struct Route *route;
@@ -727,7 +725,8 @@ handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
727 /* Check for connect to self message */ 725 /* Check for connect to self message */
728 if (0 == memcmp (&my_identity, peer, sizeof (struct GNUNET_PeerIdentity))) 726 if (0 == memcmp (&my_identity, peer, sizeof (struct GNUNET_PeerIdentity)))
729 return; 727 return;
730 distance = get_atsi_distance (atsi, atsi_count); 728 fprintf (stderr, "FIX ATS DATA: %s:%u!\n", __FILE__, __LINE__);
729 distance = get_atsi_distance (NULL, 0);
731 neighbor = GNUNET_CONTAINER_multihashmap_get (direct_neighbors, 730 neighbor = GNUNET_CONTAINER_multihashmap_get (direct_neighbors,
732 &peer->hashPubKey); 731 &peer->hashPubKey);
733 if (NULL != neighbor) 732 if (NULL != neighbor)
@@ -1169,9 +1168,7 @@ start_consensus (void *cls,
1169 */ 1168 */
1170static int 1169static int
1171handle_dv_route_message (void *cls, const struct GNUNET_PeerIdentity *peer, 1170handle_dv_route_message (void *cls, const struct GNUNET_PeerIdentity *peer,
1172 const struct GNUNET_MessageHeader *message, 1171 const struct GNUNET_MessageHeader *message)
1173 const struct GNUNET_ATS_Information *atsi,
1174 unsigned int atsi_count)
1175{ 1172{
1176 const struct RouteMessage *rm; 1173 const struct RouteMessage *rm;
1177 const struct GNUNET_MessageHeader *payload; 1174 const struct GNUNET_MessageHeader *payload;