[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28524 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28524 - gnunet/src/mesh |
Date: |
Mon, 12 Aug 2013 15:37:13 +0200 |
Author: bartpolot
Date: 2013-08-12 15:37:12 +0200 (Mon, 12 Aug 2013)
New Revision: 28524
Modified:
gnunet/src/mesh/gnunet-service-mesh-enc.c
Log:
- fix
Modified: gnunet/src/mesh/gnunet-service-mesh-enc.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh-enc.c 2013-08-12 13:35:25 UTC (rev
28523)
+++ gnunet/src/mesh/gnunet-service-mesh-enc.c 2013-08-12 13:37:12 UTC (rev
28524)
@@ -1224,6 +1224,22 @@
/**
+ * Get the static string for a peer ID.
+ *
+ * @param peer Peer.
+ *
+ * @return Static string for it's ID.
+ */
+static const char *
+peer2s (const struct MeshPeer *peer)
+{
+ if (NULL == peer)
+ return "(NULL)";
+ return GNUNET_i2s (GNUNET_PEER_resolve2 (peer->id));
+}
+
+
+/**
* Get the previous hop in a connection
*
* @param c Connection.
@@ -1669,6 +1685,7 @@
t = connection->t;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Send connection create\n");
neighbor = connection_get_next_hop (connection);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " to %s\n", peer2s (neighbor));
queue_add (connection,
GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE,
sizeof (struct GNUNET_MESH_ConnectionCreate) +
@@ -1978,20 +1995,6 @@
/**
- * Get the static string for a peer ID.
- *
- * @param peer Peer.
- *
- * @return Static string for it's ID.
- */
-static const char *
-peer2s (const struct MeshPeer *peer)
-{
- return GNUNET_i2s (GNUNET_PEER_resolve2 (peer->id));
-}
-
-
-/**
* Retrieve the MeshPeer stucture associated with the peer, create one
* and insert it in the appropriate structures if the peer is not known yet.
*
@@ -3814,7 +3817,7 @@
return;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "destroying tunnel %s\n",
- peer2s (t->peer);
+ peer2s (t->peer));
if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_remove (tunnels, &t->id, t))
GNUNET_break (0);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28524 - gnunet/src/mesh,
gnunet <=