we do not need this address in neighbours: was already added when CONNECT was receive...
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 26 Mar 2014 15:04:29 +0000 (15:04 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 26 Mar 2014 15:04:29 +0000 (15:04 +0000)
src/transport/gnunet-service-transport_neighbours.c

index a5deca66da211cbb0c864aae75d12309ce4607fa..0292b019eb3a9b333875283ab29a991d6b31cf1b 100644 (file)
@@ -2284,18 +2284,6 @@ handle_connect_blacklist_check_cont (void *cls,
               print_ack_state (n->ack_state),
               (GNUNET_OK == result) ? "OK" : "FAIL");
 
-  if (GNUNET_OK == result)
-  {
-    /* Blacklist agreed on connecting to a peer with this address, notify ATS */
-    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-        "Notifying ATS peer's `%s' %s address `%s' session %p\n",
-        GNUNET_i2s (peer),
-        (GNUNET_YES == GNUNET_HELLO_address_check_option(bcc->na.address,
-            GNUNET_HELLO_ADDRESS_INFO_INBOUND)) ? "inbound" : "outbound",
-        GST_plugins_a2s (bcc->na.address), bcc->na.session);
-    GST_ats_add_address (bcc->na.address, bcc->na.session, NULL, 0);
-  }
-
   switch (n->state)
   {
   case GNUNET_TRANSPORT_PS_NOT_CONNECTED:
@@ -2508,14 +2496,12 @@ GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message,
     connect_check_blacklist (peer, ts, address, session);
     break;
   case GNUNET_TRANSPORT_PS_CONNECTED:
-    /* we are already connected and can thus send the ACK immediately;
-       still, it can never hurt to have an alternative address, so also
-       tell ATS  about it */
+    /* we are already connected and can thus send the ACK immediately */
     GNUNET_assert (NULL != n->primary_address.address);
     GNUNET_assert (NULL != n->primary_address.session);
     n->ack_state = ACK_UNDEFINED;
     send_connect_ack_message (n->primary_address.address,
-                                     n->primary_address.session, ts);
+                              n->primary_address.session, ts);
     connect_check_blacklist (peer, ts, address, session);
     break;
   case GNUNET_TRANSPORT_PS_RECONNECT_ATS: