gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33058 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r33058 - gnunet/src/mesh
Date: Mon, 14 Apr 2014 13:09:45 +0200

Author: bartpolot
Date: 2014-04-14 13:09:45 +0200 (Mon, 14 Apr 2014)
New Revision: 33058

Modified:
   gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- use full peer IDs

Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c    2014-04-14 11:09:42 UTC 
(rev 33057)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c    2014-04-14 11:09:45 UTC 
(rev 33058)
@@ -859,7 +859,7 @@
 
 /**
  * Send a notification that a connection is broken, when a connection
- * isn't even created.
+ * isn't even known to the local peer.
  *
  * @param connection_id Connection ID.
  * @param id1 Peer that has disconnected, probably local peer.
@@ -870,7 +870,7 @@
 send_broken_unknown (struct GNUNET_MESH_Hash *connection_id,
                      const struct GNUNET_PeerIdentity *id1,
                      const struct GNUNET_PeerIdentity *id2,
-                     GNUNET_PEER_Id peer_id)
+                     const struct GNUNET_PeerIdentity *peer_id)
 {
   struct GNUNET_MESH_ConnectionBroken *msg;
   struct MeshPeer *neighbor;
@@ -887,7 +887,7 @@
     msg->peer2 = *id2;
   else
     memset (&msg->peer2, 0, sizeof (msg->peer2));
-  neighbor = GMP_get_short (peer_id);
+  neighbor = GMP_get (peer_id);
   GMP_queue_add (neighbor, msg,
                  GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN,
                  GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN, 2,
@@ -1612,8 +1612,8 @@
         return GNUNET_OK;
       }
       send_broken_unknown (cid, &my_full_id,
-                    GNUNET_PEER_resolve2 (path->peers[own_pos + 1]),
-                    path->peers[own_pos - 1]);
+                           GNUNET_PEER_resolve2 (path->peers[own_pos + 1]),
+                           peer);
       path_destroy (path);
       return GNUNET_OK;
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]