one commit to ruin the day:
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 28 Oct 2011 08:30:40 +0000 (08:30 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 28 Oct 2011 08:30:40 +0000 (08:30 +0000)
give transport to the buildbots

src/transport/Makefile.am
src/transport/gnunet-service-transport_neighbours_3way.c

index 5a04a81bc705c73d919140c3e9f08abdcf224230..bc116171f4270139d5aa68742bd7025d34d01179 100644 (file)
@@ -129,7 +129,6 @@ gnunet_transport_LDADD = \
 gnunet_transport_DEPENDENCIES = \
   libgnunettransport.la                                
 
-# transport with 3way handshake
 gnunet_service_transport_SOURCES = \
  gnunet-service-transport_3way.c gnunet-service-transport.h \
  gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
@@ -146,24 +145,25 @@ gnunet_service_transport_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(GN_GLPK) \
   $(GN_LIBINTL)
-#
 
-gnunet_service_transport_SOURCES = \
- gnunet-service-transport.c gnunet-service-transport.h \
- gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
- gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
- gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
- gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
- gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
- gnunet-service-transport_validation.h gnunet-service-transport_validation.c 
-gnunet_service_transport_LDADD = \
-  $(top_builddir)/src/ats/libgnunetats.la \
-  $(top_builddir)/src/hello/libgnunethello.la \
-  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
-  $(top_builddir)/src/statistics/libgnunetstatistics.la \
-  $(top_builddir)/src/util/libgnunetutil.la \
-  $(GN_GLPK) \
-  $(GN_LIBINTL)
+
+#gnunet_service_transport_SOURCES = \
+# gnunet-service-transport.c gnunet-service-transport.h \
+# gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
+# gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
+# gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
+# gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
+# gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
+# gnunet-service-transport_validation.h gnunet-service-transport_validation.c 
+#gnunet_service_transport_LDADD = \
+#  $(top_builddir)/src/ats/libgnunetats.la \
+#  $(top_builddir)/src/hello/libgnunethello.la \
+#  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
+#  $(top_builddir)/src/statistics/libgnunetstatistics.la \
+#  $(top_builddir)/src/util/libgnunetutil.la \
+#  $(GN_GLPK) \
+#  $(GN_LIBINTL)
+
 
 plugin_LTLIBRARIES = \
   libgnunet_plugin_transport_tcp.la \
index a10d23240b63e95452f1d728e7a50354deec9fbc..b184162b20aeb77fafc99ab8dd7b18df2e3b37a3 100644 (file)
@@ -673,15 +673,18 @@ GST_neighbours_start (void *cls, GNUNET_TRANSPORT_NotifyConnect connect_cb,
   neighbours = GNUNET_CONTAINER_multihashmap_create (NEIGHBOUR_TABLE_SIZE);
 }
 
-/*
+
 static void
 send_disconnect_cont (void *cls,
     const struct GNUNET_PeerIdentity * target,
     int result)
 {
+#if DEBUG_TRANSPORT
   struct NeighbourMapEntry *n = cls;
-
-}*/
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending DISCONNECT message to peer `%4s': %i\n",
+              GNUNET_i2s (&n->id), result);
+#endif
+}
 
 static int
 send_disconnect (struct NeighbourMapEntry *n)
@@ -711,7 +714,7 @@ send_disconnect (struct NeighbourMapEntry *n)
   ret = send_with_plugin(&n->id, (const char *) &disconnect_msg, sizeof (disconnect_msg),
                           UINT32_MAX, GNUNET_TIME_UNIT_FOREVER_REL,
                           n->session, n->plugin_name, n->addr, n->addrlen,
-                          GNUNET_YES, NULL, NULL);
+                          GNUNET_YES, &send_disconnect_cont, n);
 
   if (ret == GNUNET_SYSERR)
     return GNUNET_SYSERR;
@@ -2051,10 +2054,9 @@ GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message,
   struct BlackListCheckContext * bcc = NULL;
 
 #if DEBUG_TRANSPORT
-#endif
-  GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
       "Received CONNECT message from peer `%s'\n", GNUNET_i2s (peer));
-
+#endif
 
   if (ntohs (message->size) != sizeof (struct SessionConnectMessage))
   {