aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet-new.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-29 14:10:03 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-29 14:10:03 +0100
commit271dd457b4b7f42b9353fc94da231a9196ee714a (patch)
treec4b7c9c9e5b96bf1e5d32a4a2c9935185e31e9b3 /src/cadet/gnunet-service-cadet-new.c
parentf2aa85678b5c93dbe869d3f6393fe164d74e787b (diff)
downloadgnunet-271dd457b4b7f42b9353fc94da231a9196ee714a.tar.gz
gnunet-271dd457b4b7f42b9353fc94da231a9196ee714a.zip
implement basics of connection management for tunnels (in particular destruction of bad connections, eventual selection of new ones
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new.c')
-rw-r--r--src/cadet/gnunet-service-cadet-new.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet-new.c b/src/cadet/gnunet-service-cadet-new.c
index d40d4f10e..55c7d1bdb 100644
--- a/src/cadet/gnunet-service-cadet-new.c
+++ b/src/cadet/gnunet-service-cadet-new.c
@@ -967,17 +967,18 @@ handle_info_tunnels (void *cls,
967 * Update the message with information about the connection. 967 * Update the message with information about the connection.
968 * 968 *
969 * @param cls a `struct GNUNET_CADET_LocalInfoTunnel` message to update 969 * @param cls a `struct GNUNET_CADET_LocalInfoTunnel` message to update
970 * @param c a connection about which we should store information in @a cls 970 * @param ct a connection about which we should store information in @a cls
971 */ 971 */
972static void 972static void
973iter_connection (void *cls, 973iter_connection (void *cls,
974 struct CadetConnection *c) 974 struct CadetTConnection *ct)
975{ 975{
976 struct GNUNET_CADET_LocalInfoTunnel *msg = cls; 976 struct GNUNET_CADET_LocalInfoTunnel *msg = cls;
977 struct CadetConnection *cc = ct->cc;
977 struct GNUNET_CADET_ConnectionTunnelIdentifier *h; 978 struct GNUNET_CADET_ConnectionTunnelIdentifier *h;
978 979
979 h = (struct GNUNET_CADET_ConnectionTunnelIdentifier *) &msg[1]; 980 h = (struct GNUNET_CADET_ConnectionTunnelIdentifier *) &msg[1];
980 h[msg->connections++] = *(GCC_get_id (c)); 981 h[msg->connections++] = *(GCC_get_id (cc));
981} 982}
982 983
983 984