aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-04-14 11:09:45 +0000
committerBart Polot <bart@net.in.tum.de>2014-04-14 11:09:45 +0000
commit460e081570826a49e7859f714bb5cec113a2ece0 (patch)
tree49cb0a035f442e4a351840ff6469886345947226 /src/mesh
parent7c0bed1e8bd20b2b960886461de8bf09c44c61be (diff)
downloadgnunet-460e081570826a49e7859f714bb5cec113a2ece0.tar.gz
gnunet-460e081570826a49e7859f714bb5cec113a2ece0.zip
- use full peer IDs
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index d0fc590cc..b5ea62054 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -859,7 +859,7 @@ send_broken (struct MeshConnection *c,
859 859
860/** 860/**
861 * Send a notification that a connection is broken, when a connection 861 * Send a notification that a connection is broken, when a connection
862 * isn't even created. 862 * isn't even known to the local peer.
863 * 863 *
864 * @param connection_id Connection ID. 864 * @param connection_id Connection ID.
865 * @param id1 Peer that has disconnected, probably local peer. 865 * @param id1 Peer that has disconnected, probably local peer.
@@ -870,7 +870,7 @@ static void
870send_broken_unknown (struct GNUNET_MESH_Hash *connection_id, 870send_broken_unknown (struct GNUNET_MESH_Hash *connection_id,
871 const struct GNUNET_PeerIdentity *id1, 871 const struct GNUNET_PeerIdentity *id1,
872 const struct GNUNET_PeerIdentity *id2, 872 const struct GNUNET_PeerIdentity *id2,
873 GNUNET_PEER_Id peer_id) 873 const struct GNUNET_PeerIdentity *peer_id)
874{ 874{
875 struct GNUNET_MESH_ConnectionBroken *msg; 875 struct GNUNET_MESH_ConnectionBroken *msg;
876 struct MeshPeer *neighbor; 876 struct MeshPeer *neighbor;
@@ -887,7 +887,7 @@ send_broken_unknown (struct GNUNET_MESH_Hash *connection_id,
887 msg->peer2 = *id2; 887 msg->peer2 = *id2;
888 else 888 else
889 memset (&msg->peer2, 0, sizeof (msg->peer2)); 889 memset (&msg->peer2, 0, sizeof (msg->peer2));
890 neighbor = GMP_get_short (peer_id); 890 neighbor = GMP_get (peer_id);
891 GMP_queue_add (neighbor, msg, 891 GMP_queue_add (neighbor, msg,
892 GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN, 892 GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN,
893 GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN, 2, 893 GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN, 2,
@@ -1612,8 +1612,8 @@ GMC_handle_create (void *cls, const struct GNUNET_PeerIdentity *peer,
1612 return GNUNET_OK; 1612 return GNUNET_OK;
1613 } 1613 }
1614 send_broken_unknown (cid, &my_full_id, 1614 send_broken_unknown (cid, &my_full_id,
1615 GNUNET_PEER_resolve2 (path->peers[own_pos + 1]), 1615 GNUNET_PEER_resolve2 (path->peers[own_pos + 1]),
1616 path->peers[own_pos - 1]); 1616 peer);
1617 path_destroy (path); 1617 path_destroy (path);
1618 return GNUNET_OK; 1618 return GNUNET_OK;
1619 } 1619 }