gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r17517 - in gnunet/src: ats ats-test chat core dht dv fs ho


From: gnunet
Subject: [GNUnet-SVN] r17517 - in gnunet/src: ats ats-test chat core dht dv fs hostlist include mesh nse testing topology transport vpn
Date: Mon, 17 Oct 2011 09:55:42 +0200

Author: grothoff
Date: 2011-10-17 09:55:41 +0200 (Mon, 17 Oct 2011)
New Revision: 17517

Modified:
   gnunet/src/ats-test/test_transport_ats_multiple_peers.c
   gnunet/src/ats/ats.h
   gnunet/src/ats/ats_api.c
   gnunet/src/ats/ats_api.h
   gnunet/src/ats/ats_api_performance.c
   gnunet/src/ats/ats_api_scheduling.c
   gnunet/src/ats/gnunet-service-ats_addresses.c
   gnunet/src/ats/gnunet-service-ats_addresses.h
   gnunet/src/ats/gnunet-service-ats_math.c
   gnunet/src/ats/gnunet-service-ats_math.h
   gnunet/src/ats/gnunet-service-ats_performance.c
   gnunet/src/ats/gnunet-service-ats_performance.h
   gnunet/src/ats/gnunet-service-ats_scheduling.c
   gnunet/src/ats/gnunet-service-ats_scheduling.h
   gnunet/src/ats/test_ats_api_bandwidth_consumption.c
   gnunet/src/ats/test_ats_api_scheduling.c
   gnunet/src/ats/test_ats_api_update_address.c
   gnunet/src/chat/gnunet-service-chat.c
   gnunet/src/core/core.h
   gnunet/src/core/core_api.c
   gnunet/src/core/core_api_iterate_peers.c
   gnunet/src/core/gnunet-core-list-connections.c
   gnunet/src/core/gnunet-service-core.c
   gnunet/src/core/gnunet-service-core_clients.c
   gnunet/src/core/gnunet-service-core_clients.h
   gnunet/src/core/gnunet-service-core_kx.c
   gnunet/src/core/gnunet-service-core_kx.h
   gnunet/src/core/gnunet-service-core_neighbours.c
   gnunet/src/core/gnunet-service-core_sessions.c
   gnunet/src/core/test_core_api.c
   gnunet/src/core/test_core_api_reliability.c
   gnunet/src/core/test_core_api_send_to_self.c
   gnunet/src/core/test_core_api_start_only.c
   gnunet/src/core/test_core_quota_compliance.c
   gnunet/src/dht/gnunet-service-dht_neighbours.c
   gnunet/src/dv/gnunet-service-dv.c
   gnunet/src/dv/plugin_transport_dv.c
   gnunet/src/dv/test_transport_api_dv.c
   gnunet/src/fs/gnunet-service-fs.c
   gnunet/src/fs/gnunet-service-fs_cp.c
   gnunet/src/fs/gnunet-service-fs_cp.h
   gnunet/src/hostlist/gnunet-daemon-hostlist.c
   gnunet/src/hostlist/hostlist-client.c
   gnunet/src/hostlist/hostlist-server.c
   gnunet/src/hostlist/test_gnunet_daemon_hostlist.c
   gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
   gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
   gnunet/src/include/gnunet_ats_service.h
   gnunet/src/include/gnunet_core_service.h
   gnunet/src/include/gnunet_mesh_service.h
   gnunet/src/include/gnunet_mesh_service_new.h
   gnunet/src/include/gnunet_transport_plugin.h
   gnunet/src/include/gnunet_transport_service.h
   gnunet/src/mesh/gnunet-service-mesh.c
   gnunet/src/mesh/mesh_api.c
   gnunet/src/mesh/mesh_api_new.c
   gnunet/src/mesh/test_mesh_api.c
   gnunet/src/mesh/test_mesh_local_1.c
   gnunet/src/mesh/test_mesh_local_2.c
   gnunet/src/mesh/test_mesh_small.c
   gnunet/src/mesh/test_mesh_small_unicast.c
   gnunet/src/mesh/test_mesh_small_unicast_far.c
   gnunet/src/nse/gnunet-service-nse.c
   gnunet/src/testing/test_testing_large_topology.c
   gnunet/src/testing/test_testing_topology.c
   gnunet/src/testing/testing.c
   gnunet/src/testing/testing_group.c
   gnunet/src/topology/gnunet-daemon-topology.c
   gnunet/src/transport/gnunet-service-transport.c
   gnunet/src/transport/gnunet-service-transport_blacklist.c
   gnunet/src/transport/gnunet-service-transport_clients.c
   gnunet/src/transport/gnunet-service-transport_neighbours.c
   gnunet/src/transport/gnunet-service-transport_neighbours.h
   gnunet/src/transport/gnunet-service-transport_validation.c
   gnunet/src/transport/gnunet-transport-connect-running-peers.c
   gnunet/src/transport/plugin_transport_http.c
   gnunet/src/transport/plugin_transport_tcp.c
   gnunet/src/transport/plugin_transport_udp.c
   gnunet/src/transport/plugin_transport_unix.c
   gnunet/src/transport/plugin_transport_wlan.c
   gnunet/src/transport/test_quota_compliance.c
   gnunet/src/transport/test_transport_api.c
   gnunet/src/transport/test_transport_api_disconnect.c
   gnunet/src/transport/test_transport_api_limited_sockets.c
   gnunet/src/transport/test_transport_api_reliability.c
   gnunet/src/transport/test_transport_api_timeout.c
   gnunet/src/transport/test_transport_api_unreliability.c
   gnunet/src/transport/test_transport_api_unreliability_constant.c
   gnunet/src/transport/test_transport_startonly.c
   gnunet/src/transport/test_transport_testing.c
   gnunet/src/transport/transport-testing.c
   gnunet/src/transport/transport.h
   gnunet/src/transport/transport_api.c
   gnunet/src/vpn/gnunet-daemon-exit.c
   gnunet/src/vpn/gnunet-daemon-vpn.c
   gnunet/src/vpn/gnunet-daemon-vpn.h
   gnunet/src/vpn/gnunet-service-dns.c
Log:
move GNUNET_TRANSPORT_ATS_ to GNUNET_ATS_

Modified: gnunet/src/ats/ats.h
===================================================================
--- gnunet/src/ats/ats.h        2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/ats/ats.h        2011-10-17 07:55:41 UTC (rev 17517)
@@ -77,7 +77,7 @@
   uint32_t session_id GNUNET_PACKED;
 
   /* followed by:
-     - struct GNUNET_TRANSPORT_ATS_Information [ats_count];
+     - struct GNUNET_ATS_Information [ats_count];
      - char address[address_length]
      - char plugin_name[plugin_name_length] (including '\0'-termination).
   */
@@ -126,7 +126,7 @@
   struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in;
 
   /* followed by:
-     - struct GNUNET_TRANSPORT_ATS_Information [ats_count];
+     - struct GNUNET_ATS_Information [ats_count];
      - char address[address_length]
      - char plugin_name[plugin_name_length] (including '\0'-termination).
   */
@@ -151,7 +151,7 @@
   struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in;
 
   /* followed by: 
-     - struct GNUNET_TRANSPORT_ATS_Information [ats_count];
+     - struct GNUNET_ATS_Information [ats_count];
      - char address[address_length]
      - char plugin_name[plugin_name_length] (including '\0'-termination).
   */

Modified: gnunet/src/ats/ats_api.c
===================================================================
--- gnunet/src/ats/ats_api.c    2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/ats/ats_api.c    2011-10-17 07:55:41 UTC (rev 17517)
@@ -523,7 +523,7 @@
 static struct AllocationRecord *
 create_allocation_record (const char *plugin_name, struct Session *session,
                           const void *plugin_addr, size_t plugin_addr_len,
-                          const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                          const struct GNUNET_ATS_Information *ats,
                           uint32_t ats_count)
 {
   struct AllocationRecord *ar;
@@ -539,7 +539,7 @@
   GNUNET_assert (ats_count > 0);
   GNUNET_array_grow (ar->ats, ar->ats_count, ats_count);
   memcpy (ar->ats, ats,
-          ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information));
+          ats_count * sizeof (struct GNUNET_ATS_Information));
   ar->connected = GNUNET_SYSERR; /* aka: not known / no change */
   return ar;
 }
@@ -587,7 +587,7 @@
                          const struct GNUNET_PeerIdentity *peer,
                          const char *plugin_name, struct Session *session,
                          const void *plugin_addr, size_t plugin_addr_len,
-                         const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                         const struct GNUNET_ATS_Information *ats,
                          uint32_t ats_count)
 {
   struct AllocationRecord *ar;
@@ -761,7 +761,7 @@
                            struct GNUNET_TIME_Absolute valid_until,
                            const char *plugin_name, struct Session *session,
                            const void *plugin_addr, size_t plugin_addr_len,
-                           const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                           const struct GNUNET_ATS_Information *ats,
                            uint32_t ats_count)
 {
   struct AllocationRecord *ar;

Modified: gnunet/src/ats/ats_api.h
===================================================================
--- gnunet/src/ats/ats_api.h    2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/ats/ats_api.h    2011-10-17 07:55:41 UTC (rev 17517)
@@ -37,7 +37,7 @@
   /**
    * Performance information associated with this address (array).
    */
-  struct GNUNET_TRANSPORT_ATS_Information *ats;
+  struct GNUNET_ATS_Information *ats;
 
   /**
    * Name of the plugin

Modified: gnunet/src/ats/ats_api_performance.c
===================================================================
--- gnunet/src/ats/ats_api_performance.c        2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/ats/ats_api_performance.c        2011-10-17 07:55:41 UTC (rev 
17517)
@@ -250,7 +250,7 @@
                    const struct GNUNET_MessageHeader *msg)
 {
   const struct PeerInformationMessage *pi;
-  const struct GNUNET_TRANSPORT_ATS_Information *atsi;
+  const struct GNUNET_ATS_Information *atsi;
   const char *address;
   const char *plugin_name;
   uint16_t address_length;
@@ -271,14 +271,14 @@
   ats_count = ntohl (pi->ats_count);
   address_length = ntohs (pi->address_length);
   plugin_name_length = ntohs (pi->plugin_name_length);
-  atsi = (const struct GNUNET_TRANSPORT_ATS_Information*) &pi[1];
+  atsi = (const struct GNUNET_ATS_Information*) &pi[1];
   address = (const char*) &atsi[ats_count];
   plugin_name = &address[address_length];
   if ( (address_length +
        plugin_name_length +
-       ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) +
+       ats_count * sizeof (struct GNUNET_ATS_Information) +
        sizeof (struct PeerInformationMessage) != ntohs (msg->size))  ||
-       (ats_count > GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_TRANSPORT_ATS_Information)) ||
+       (ats_count > GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_ATS_Information)) ||
        (plugin_name[plugin_name_length - 1] != '\0') )
   {
     GNUNET_break (0);

Modified: gnunet/src/ats/ats_api_scheduling.c
===================================================================
--- gnunet/src/ats/ats_api_scheduling.c 2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/ats/ats_api_scheduling.c 2011-10-17 07:55:41 UTC (rev 17517)
@@ -317,7 +317,7 @@
 {
   struct GNUNET_ATS_SchedulingHandle *sh = cls;
   const struct AddressSuggestionMessage *m;
-  const struct GNUNET_TRANSPORT_ATS_Information *atsi;
+  const struct GNUNET_ATS_Information *atsi;
   const char *address;
   const char *plugin_name;
   uint16_t address_length;
@@ -345,15 +345,15 @@
   m = (const struct AddressSuggestionMessage*) msg;
   ats_count = ntohl (m->ats_count);
   address_length = ntohs (m->address_length);
-  atsi = (const struct GNUNET_TRANSPORT_ATS_Information*) &m[1];
+  atsi = (const struct GNUNET_ATS_Information*) &m[1];
   address = (const char*) &atsi[ats_count];
   plugin_name = &address[address_length];
   plugin_name_length = ntohs (m->plugin_name_length);
   if ( (address_length +
        plugin_name_length +
-       ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) +
+       ats_count * sizeof (struct GNUNET_ATS_Information) +
        sizeof (struct AddressSuggestionMessage) != ntohs (msg->size))  ||
-       (ats_count > GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_TRANSPORT_ATS_Information)) ||
+       (ats_count > GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_ATS_Information)) ||
        (plugin_name[plugin_name_length - 1] != '\0') )
   {
     GNUNET_break (0);
@@ -525,23 +525,23 @@
                            const char *plugin_name,
                            const void *plugin_addr, size_t plugin_addr_len,
                           struct Session *session,
-                           const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                           const struct GNUNET_ATS_Information *ats,
                            uint32_t ats_count)
 {
   struct PendingMessage *p;
   struct AddressUpdateMessage *m;
-  struct GNUNET_TRANSPORT_ATS_Information *am;
+  struct GNUNET_ATS_Information *am;
   char *pm;
   size_t namelen;
   size_t msize;
 
   namelen = (plugin_name == NULL) ? 0 : strlen (plugin_name) + 1;              
                                
   msize = sizeof (struct AddressUpdateMessage) + plugin_addr_len + 
-    ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) + namelen;
+    ats_count * sizeof (struct GNUNET_ATS_Information) + namelen;
   if ( (msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) ||
        (plugin_addr_len  >= GNUNET_SERVER_MAX_MESSAGE_SIZE) ||
        (namelen  >= GNUNET_SERVER_MAX_MESSAGE_SIZE) ||
-       (ats_count >= GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_TRANSPORT_ATS_Information)) )
+       (ats_count >= GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_ATS_Information)) )
   {
     GNUNET_break (0);
     return;
@@ -557,8 +557,8 @@
   m->address_length = htons (plugin_addr_len);
   m->plugin_name_length = htons (namelen);
   m->session_id = htonl (get_session_id (sh, session));
-  am = (struct GNUNET_TRANSPORT_ATS_Information*) &m[1];
-  memcpy (am, ats, ats_count * sizeof (struct 
GNUNET_TRANSPORT_ATS_Information));
+  am = (struct GNUNET_ATS_Information*) &m[1];
+  memcpy (am, ats, ats_count * sizeof (struct GNUNET_ATS_Information));
   pm = (char *) &am[ats_count];
   memcpy (pm, plugin_addr, plugin_addr_len);
   memcpy (&pm[plugin_addr_len], plugin_name, namelen);

Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c       2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c       2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -46,7 +46,7 @@
 
   char * plugin;
 
-  struct GNUNET_TRANSPORT_ATS_Information * ats;
+  struct GNUNET_ATS_Information * ats;
 
   struct GNUNET_BANDWIDTH_Value32NBO bw_in;
 
@@ -144,18 +144,18 @@
                    const void *plugin_addr, size_t plugin_addr_len,
                    struct GNUNET_SERVER_Client *session_client,
                    uint32_t session_id,
-                   const struct GNUNET_TRANSPORT_ATS_Information *atsi,
+                   const struct GNUNET_ATS_Information *atsi,
                    uint32_t atsi_count)
 {
   struct ATS_Address * aa;
   struct ATS_Address * old;
 
   aa = GNUNET_malloc (sizeof (struct ATS_Address) + plugin_addr_len);
-  aa->ats = GNUNET_malloc(atsi_count * sizeof (struct 
GNUNET_TRANSPORT_ATS_Information));
+  aa->ats = GNUNET_malloc(atsi_count * sizeof (struct GNUNET_ATS_Information));
   aa->peer = *peer;
   aa->addr_len = plugin_addr_len;
   aa->ats_count = atsi_count;
-  memcpy (aa->ats, atsi, atsi_count * sizeof (struct 
GNUNET_TRANSPORT_ATS_Information));
+  memcpy (aa->ats, atsi, atsi_count * sizeof (struct GNUNET_ATS_Information));
   aa->addr = &aa[1];
   memcpy (&aa[1], plugin_addr, plugin_addr_len);
   aa->plugin = GNUNET_strdup (plugin_name);

Modified: gnunet/src/ats/gnunet-service-ats_addresses.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.h       2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/ats/gnunet-service-ats_addresses.h       2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -28,7 +28,6 @@
 #define GNUNET_SERVICE_ATS_ADDRESSES_H
 
 #include "gnunet_util_lib.h"
-#include "gnunet_transport_service.h" // FIXME...
 #include "gnunet_ats_service.h" 
 #include "ats.h"
 
@@ -53,7 +52,7 @@
                    const void *plugin_addr, size_t plugin_addr_len,
                    struct GNUNET_SERVER_Client *session_client,
                    uint32_t session_id,
-                   const struct GNUNET_TRANSPORT_ATS_Information *atsi,
+                   const struct GNUNET_ATS_Information *atsi,
                    uint32_t atsi_count);
 
 

Modified: gnunet/src/ats/gnunet-service-ats_math.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_math.c    2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/ats/gnunet-service-ats_math.c    2011-10-17 07:55:41 UTC (rev 
17517)
@@ -513,8 +513,8 @@
 struct ATS_Handle *
 ats_init (double D, double U, double R, int v_b_min, int v_n_min,
           int max_iterations, struct GNUNET_TIME_Relative max_duration,
-          GNUNET_TRANSPORT_ATS_AddressNotification address_not,
-          GNUNET_TRANSPORT_ATS_ResultCallback res_cb)
+          GNUNET_ATS_AddressNotification address_not,
+          GNUNET_ATS_ResultCallback res_cb)
 {
   struct ATS_Handle *ats = NULL;
 
@@ -850,7 +850,7 @@
     {
       ia[array_index] = row_index;
       ja[array_index] = c2;
-      if (qm[c - 1].atis_index == GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY)
+      if (qm[c - 1].atis_index == GNUNET_ATS_QUALITY_NET_DELAY)
       {
         double v0 = 0, v1 = 0, v2 = 0;
 
@@ -866,7 +866,7 @@
         value = 100.0 / ((v0 + 2 * v1 + 3 * v2) / 6.0);
         value = 1;
       }
-      if (qm[c - 1].atis_index == GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE)
+      if (qm[c - 1].atis_index == GNUNET_ATS_QUALITY_NET_DISTANCE)
       {
         double v0 = 0, v1 = 0, v2 = 0;
 
@@ -1243,7 +1243,7 @@
       GNUNET_assert (ats->mechanisms[c2].addr != NULL);
       GNUNET_assert (ats->mechanisms[c2].peer != NULL);
 
-      if (qm[c - 1].atis_index == GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY)
+      if (qm[c - 1].atis_index == GNUNET_ATS_QUALITY_NET_DELAY)
       {
         double v0 = 0, v1 = 0, v2 = 0;
 
@@ -1259,7 +1259,7 @@
         value = 100.0 / ((v0 + 2 * v1 + 3 * v2) / 6.0);
         //value = 1;
       }
-      if (qm[c - 1].atis_index == GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE)
+      if (qm[c - 1].atis_index == GNUNET_ATS_QUALITY_NET_DISTANCE)
       {
         double v0 = 0, v1 = 0, v2 = 0;
 

Modified: gnunet/src/ats/gnunet-service-ats_math.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_math.h    2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/ats/gnunet-service-ats_math.h    2011-10-17 07:55:41 UTC (rev 
17517)
@@ -67,13 +67,13 @@
 struct ATS_mechanism;
 struct ATS_peer;
 
-typedef void (*GNUNET_TRANSPORT_ATS_AddressNotification) (struct ATS_peer **
+typedef void (*GNUNET_ATS_AddressNotification) (struct ATS_peer **
                                                           peers, int *c_p,
                                                           struct ATS_mechanism
                                                           ** mechanisms,
                                                           int *c_m);
 
-typedef void (*GNUNET_TRANSPORT_ATS_ResultCallback) (void);
+typedef void (*GNUNET_ATS_ResultCallback) (void);
 
 enum ATS_problem_state
 {
@@ -211,9 +211,9 @@
    *  Callback functions
    */
 
-  GNUNET_TRANSPORT_ATS_AddressNotification addr_notification;
+  GNUNET_ATS_AddressNotification addr_notification;
 
-  GNUNET_TRANSPORT_ATS_ResultCallback result_cb;
+  GNUNET_ATS_ResultCallback result_cb;
 
 
     /**
@@ -452,8 +452,8 @@
 struct ATS_Handle *
 ats_init (double D, double U, double R, int v_b_min, int v_n_min,
           int max_iterations, struct GNUNET_TIME_Relative max_duration,
-          GNUNET_TRANSPORT_ATS_AddressNotification address_not,
-          GNUNET_TRANSPORT_ATS_ResultCallback res_cb);
+          GNUNET_ATS_AddressNotification address_not,
+          GNUNET_ATS_ResultCallback res_cb);
 
 void
 ats_shutdown (struct ATS_Handle *ats);

Modified: gnunet/src/ats/gnunet-service-ats_performance.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_performance.c     2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/ats/gnunet-service-ats_performance.c     2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -151,7 +151,7 @@
 GAS_performance_notify_clients (const struct GNUNET_PeerIdentity *peer,
                                const char *plugin_name,
                                const void *plugin_addr, size_t plugin_addr_len,
-                               const struct GNUNET_TRANSPORT_ATS_Information 
*atsi,
+                               const struct GNUNET_ATS_Information *atsi,
                                uint32_t atsi_count,                            
                                struct GNUNET_BANDWIDTH_Value32NBO 
bandwidth_out,
                                struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in)
@@ -159,14 +159,14 @@
   struct PerformanceClient *pc;
   struct PeerInformationMessage *msg;
   size_t plugin_name_length = strlen (plugin_name) + 1;
-  size_t msize = sizeof (struct PeerInformationMessage) + atsi_count * sizeof 
(struct GNUNET_TRANSPORT_ATS_Information) 
+  size_t msize = sizeof (struct PeerInformationMessage) + atsi_count * sizeof 
(struct GNUNET_ATS_Information) 
     + plugin_addr_len + plugin_name_length;
   char buf[msize];
-  struct GNUNET_TRANSPORT_ATS_Information *atsp;
+  struct GNUNET_ATS_Information *atsp;
   char *addrp;
 
   GNUNET_assert (msize < GNUNET_SERVER_MAX_MESSAGE_SIZE);
-  GNUNET_assert (atsi_count < GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_TRANSPORT_ATS_Information));
+  GNUNET_assert (atsi_count < GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_ATS_Information));
   msg = (struct PeerInformationMessage*) buf;
   msg->header.size = htons (msize);
   msg->header.type = htons (GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION);
@@ -176,8 +176,8 @@
   msg->plugin_name_length = htons (plugin_name_length);
   msg->bandwidth_out = bandwidth_out;
   msg->bandwidth_in = bandwidth_in;
-  atsp = (struct GNUNET_TRANSPORT_ATS_Information* ) &msg[1];
-  memcpy (atsp, atsi, sizeof (struct GNUNET_TRANSPORT_ATS_Information) * 
atsi_count);
+  atsp = (struct GNUNET_ATS_Information* ) &msg[1];
+  memcpy (atsp, atsi, sizeof (struct GNUNET_ATS_Information) * atsi_count);
   addrp = (char*) &atsp[atsi_count];
   memcpy (addrp, plugin_addr, plugin_addr_len);
   strcpy (&addrp[plugin_addr_len], plugin_name);

Modified: gnunet/src/ats/gnunet-service-ats_performance.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_performance.h     2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/ats/gnunet-service-ats_performance.h     2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -28,7 +28,7 @@
 #define GNUNET_SERVICE_ATS_PERFORMANCE_H
 
 #include "gnunet_util_lib.h"
-#include "gnunet_transport_service.h" // FIXME
+#include "gnunet_ats_service.h"
 #include "ats.h"
 
 /**
@@ -69,7 +69,7 @@
 GAS_performance_notify_clients (const struct GNUNET_PeerIdentity *peer,
                                const char *plugin_name,
                                const void *plugin_addr, size_t plugin_addr_len,
-                               const struct GNUNET_TRANSPORT_ATS_Information 
*atsi,
+                               const struct GNUNET_ATS_Information *atsi,
                                uint32_t atsi_count,                            
                                struct GNUNET_BANDWIDTH_Value32NBO 
bandwidth_out,
                                struct GNUNET_BANDWIDTH_Value32NBO 
bandwidth_in);

Modified: gnunet/src/ats/gnunet-service-ats_scheduling.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_scheduling.c      2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/ats/gnunet-service-ats_scheduling.c      2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -155,7 +155,7 @@
                                            const void *plugin_addr, size_t 
plugin_addr_len,
                                            struct GNUNET_SERVER_Client 
*session_client,
                                            uint32_t session_id,
-                                           const struct 
GNUNET_TRANSPORT_ATS_Information *atsi,
+                                           const struct GNUNET_ATS_Information 
*atsi,
                                            uint32_t atsi_count,                
                
                                            struct GNUNET_BANDWIDTH_Value32NBO 
bandwidth_out,
                                            struct GNUNET_BANDWIDTH_Value32NBO 
bandwidth_in)
@@ -163,14 +163,14 @@
   struct SchedulingClient *sc;
   struct AddressSuggestionMessage *msg;
   size_t plugin_name_length = strlen (plugin_name) + 1;
-  size_t msize = sizeof (struct AddressSuggestionMessage) + atsi_count * 
sizeof (struct GNUNET_TRANSPORT_ATS_Information) 
+  size_t msize = sizeof (struct AddressSuggestionMessage) + atsi_count * 
sizeof (struct GNUNET_ATS_Information) 
     + plugin_addr_len + plugin_name_length;
   char buf[msize];
-  struct GNUNET_TRANSPORT_ATS_Information *atsp;
+  struct GNUNET_ATS_Information *atsp;
   char *addrp;
 
   GNUNET_assert (msize < GNUNET_SERVER_MAX_MESSAGE_SIZE);
-  GNUNET_assert (atsi_count < GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_TRANSPORT_ATS_Information));
+  GNUNET_assert (atsi_count < GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_ATS_Information));
   msg = (struct AddressSuggestionMessage*) buf;
   msg->header.size = htons (msize);
   msg->header.type = htons (GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION);
@@ -181,8 +181,8 @@
   /* session ID is set only if 'client' is the same... */
   msg->bandwidth_out = bandwidth_out;
   msg->bandwidth_in = bandwidth_in;
-  atsp = (struct GNUNET_TRANSPORT_ATS_Information* ) &msg[1];
-  memcpy (atsp, atsi, sizeof (struct GNUNET_TRANSPORT_ATS_Information) * 
atsi_count);
+  atsp = (struct GNUNET_ATS_Information* ) &msg[1];
+  memcpy (atsp, atsi, sizeof (struct GNUNET_ATS_Information) * atsi_count);
   addrp = (char*) &atsp[atsi_count];
   memcpy (addrp, plugin_addr, plugin_addr_len);
   strcpy (&addrp[plugin_addr_len], plugin_name);
@@ -234,7 +234,7 @@
 
 {
   const struct AddressUpdateMessage * m;
-  const struct GNUNET_TRANSPORT_ATS_Information *atsi;
+  const struct GNUNET_ATS_Information *atsi;
   const char *address;
   const char *plugin_name;
   uint16_t address_length;
@@ -256,7 +256,7 @@
   ats_count = ntohl (m->ats_count);
   address_length = ntohs (m->address_length);
   plugin_name_length = ntohs (m->plugin_name_length);  
-  atsi = (const struct GNUNET_TRANSPORT_ATS_Information*) &m[1];
+  atsi = (const struct GNUNET_ATS_Information*) &m[1];
   address = (const char*) &atsi[ats_count];
   if (plugin_name_length != 0)
     plugin_name = &address[address_length];
@@ -264,9 +264,9 @@
     plugin_name = "";
   if ( (address_length +
        plugin_name_length +
-       ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) +
+       ats_count * sizeof (struct GNUNET_ATS_Information) +
        sizeof (struct AddressUpdateMessage) != ntohs (message->size))  ||
-       (ats_count > GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_TRANSPORT_ATS_Information)) ||
+       (ats_count > GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_ATS_Information)) ||
        (plugin_name[plugin_name_length - 1] != '\0') )
   {
     GNUNET_break (0);

Modified: gnunet/src/ats/gnunet-service-ats_scheduling.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_scheduling.h      2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/ats/gnunet-service-ats_scheduling.h      2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -70,7 +70,7 @@
                                            const void *plugin_addr, size_t 
plugin_addr_len,
                                            struct GNUNET_SERVER_Client 
*session_client,
                                            uint32_t session_id,
-                                           const struct 
GNUNET_TRANSPORT_ATS_Information *atsi,
+                                           const struct GNUNET_ATS_Information 
*atsi,
                                            uint32_t atsi_count,                
                
                                            struct GNUNET_BANDWIDTH_Value32NBO 
bandwidth_out,
                                            struct GNUNET_BANDWIDTH_Value32NBO 
bandwidth_in);

Modified: gnunet/src/ats/test_ats_api_bandwidth_consumption.c
===================================================================
--- gnunet/src/ats/test_ats_api_bandwidth_consumption.c 2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/ats/test_ats_api_bandwidth_consumption.c 2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -62,7 +62,7 @@
   void * addr;
   size_t addr_len;
 
-  struct GNUNET_TRANSPORT_ATS_Information * ats;
+  struct GNUNET_ATS_Information * ats;
   int ats_count;
 
   void  *session;
@@ -156,7 +156,7 @@
                     GNUNET_BANDWIDTH_Value32NBO
                     bandwidth_in,
                     const struct
-                    GNUNET_TRANSPORT_ATS_Information
+                    GNUNET_ATS_Information
                     * ats,
                     uint32_t ats_count)
 {
@@ -207,7 +207,7 @@
                     GNUNET_BANDWIDTH_Value32NBO
                     bandwidth_in,
                     const struct
-                    GNUNET_TRANSPORT_ATS_Information
+                    GNUNET_ATS_Information
                     * ats,
                     uint32_t ats_count)
 

Modified: gnunet/src/ats/test_ats_api_scheduling.c
===================================================================
--- gnunet/src/ats/test_ats_api_scheduling.c    2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/ats/test_ats_api_scheduling.c    2011-10-17 07:55:41 UTC (rev 
17517)
@@ -58,7 +58,7 @@
   void * addr;
   size_t addr_len;
 
-  struct GNUNET_TRANSPORT_ATS_Information * ats;
+  struct GNUNET_ATS_Information * ats;
   int ats_count;
 
   void  *session;
@@ -73,7 +73,7 @@
 
 struct Address addr[2];
 struct PeerContext p[2];
-struct GNUNET_TRANSPORT_ATS_Information atsi[2];
+struct GNUNET_ATS_Information atsi[2];
 
 static void
 stop_arm ()
@@ -133,7 +133,7 @@
                     GNUNET_BANDWIDTH_Value32NBO
                     bandwidth_in,
                     const struct
-                    GNUNET_TRANSPORT_ATS_Information
+                    GNUNET_ATS_Information
                     * ats,
                     uint32_t ats_count)
 

Modified: gnunet/src/ats/test_ats_api_update_address.c
===================================================================
--- gnunet/src/ats/test_ats_api_update_address.c        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/ats/test_ats_api_update_address.c        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -73,7 +73,7 @@
   /**
    * Performance information associated with this address (array).
    */
-  struct GNUNET_TRANSPORT_ATS_Information *ats;
+  struct GNUNET_ATS_Information *ats;
 
   /**
    * Name of the plugin
@@ -121,7 +121,7 @@
             const char *plugin_name, const void *plugin_addr,
             size_t plugin_addr_len, struct Session *session,
             struct GNUNET_BANDWIDTH_Value32NBO bandwidth,
-            const struct GNUNET_TRANSPORT_ATS_Information *ats,
+            const struct GNUNET_ATS_Information *ats,
             uint32_t ats_count)
 {
   struct ExpectedValues *ex = cls;
@@ -179,7 +179,7 @@
   ar->session = NULL;
   ar->plugin_addr = "address1";
   ar->plugin_addr_len = strlen (ar->plugin_addr) + 1;
-  ar->ats = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_ATS_Information));
+  ar->ats = GNUNET_malloc (sizeof (struct GNUNET_ATS_Information));
 
   GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Initial ATS information\n");
   ar->ats_count = 1;

Modified: gnunet/src/ats-test/test_transport_ats_multiple_peers.c
===================================================================
--- gnunet/src/ats-test/test_transport_ats_multiple_peers.c     2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/ats-test/test_transport_ats_multiple_peers.c     2011-10-17 
07:55:41 UTC (rev 17517)
@@ -605,7 +605,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   send_task = GNUNET_SCHEDULER_add_now (&send_task_f, NULL);

Modified: gnunet/src/chat/gnunet-service-chat.c
===================================================================
--- gnunet/src/chat/gnunet-service-chat.c       2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/chat/gnunet-service-chat.c       2011-10-17 07:55:41 UTC (rev 
17517)
@@ -988,7 +988,7 @@
 handle_p2p_join_notification (void *cls,
                               const struct GNUNET_PeerIdentity *other,
                               const struct GNUNET_MessageHeader *message,
-                              const struct GNUNET_TRANSPORT_ATS_Information
+                              const struct GNUNET_ATS_Information
                               *atsi)
 {
   const struct P2PJoinNotificationMessage *p2p_jnmsg;
@@ -1104,7 +1104,7 @@
 handle_p2p_leave_notification (void *cls,
                                const struct GNUNET_PeerIdentity *other,
                                const struct GNUNET_MessageHeader *message,
-                               const struct GNUNET_TRANSPORT_ATS_Information
+                               const struct GNUNET_ATS_Information
                                *atsi)
 {
   const struct P2PLeaveNotificationMessage *p2p_lnmsg;
@@ -1185,7 +1185,7 @@
 handle_p2p_message_notification (void *cls,
                                  const struct GNUNET_PeerIdentity *other,
                                  const struct GNUNET_MessageHeader *message,
-                                 const struct GNUNET_TRANSPORT_ATS_Information
+                                 const struct GNUNET_ATS_Information
                                  *atsi)
 {
   const struct P2PReceiveNotificationMessage *p2p_rnmsg;
@@ -1335,7 +1335,7 @@
 static int
 handle_p2p_sync_request (void *cls, const struct GNUNET_PeerIdentity *other,
                          const struct GNUNET_MessageHeader *message,
-                         const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                         const struct GNUNET_ATS_Information *atsi)
 {
   struct ChatClient *entry;
   struct GNUNET_CORE_TransmitHandle *th;
@@ -1377,7 +1377,7 @@
 handle_p2p_confirmation_receipt (void *cls,
                                  const struct GNUNET_PeerIdentity *other,
                                  const struct GNUNET_MessageHeader *message,
-                                 const struct GNUNET_TRANSPORT_ATS_Information
+                                 const struct GNUNET_ATS_Information
                                  *atsi)
 {
   const struct P2PConfirmationReceiptMessage *p2p_crmsg;
@@ -1518,7 +1518,7 @@
  */
 static void
 peer_connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
-                      const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                      const struct GNUNET_ATS_Information *atsi)
 {
   struct ConnectedPeer *cp;
   struct GNUNET_CORE_TransmitHandle *th;

Modified: gnunet/src/core/core.h
===================================================================
--- gnunet/src/core/core.h      2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/core/core.h      2011-10-17 07:55:41 UTC (rev 17517)
@@ -125,7 +125,7 @@
    * First of the ATS information blocks (we must have at least
    * one due to the 0-termination requirement).
    */
-  struct GNUNET_TRANSPORT_ATS_Information ats;
+  struct GNUNET_ATS_Information ats;
 
 };
 
@@ -171,7 +171,7 @@
    * First of the ATS information blocks (we must have at least
    * one due to the 0-termination requirement).
    */
-  struct GNUNET_TRANSPORT_ATS_Information ats;
+  struct GNUNET_ATS_Information ats;
 
 };
 
@@ -232,7 +232,7 @@
    * First of the ATS information blocks (we must have at least
    * one due to the 0-termination requirement).
    */
-  struct GNUNET_TRANSPORT_ATS_Information ats;
+  struct GNUNET_ATS_Information ats;
 
 };
 

Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c  2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/core/core_api.c  2011-10-17 07:55:41 UTC (rev 17517)
@@ -864,8 +864,8 @@
     ats_count = ntohl (cnm->ats_count);
     if ((msize !=
          sizeof (struct ConnectNotifyMessage) +
-         ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)) ||
-        (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR !=
+         ats_count * sizeof (struct GNUNET_ATS_Information)) ||
+        (GNUNET_ATS_ARRAY_TERMINATOR !=
          ntohl ((&cnm->ats)[ats_count].type)))
     {
       GNUNET_break (0);
@@ -945,9 +945,9 @@
     ats_count = ntohl (ntm->ats_count);
     if ((msize <
          sizeof (struct NotifyTrafficMessage) +
-         ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) +
+         ats_count * sizeof (struct GNUNET_ATS_Information) +
          sizeof (struct GNUNET_MessageHeader)) ||
-        (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR !=
+        (GNUNET_ATS_ARRAY_TERMINATOR !=
          ntohl ((&ntm->ats)[ats_count].type)))
     {
       GNUNET_break (0);
@@ -970,7 +970,7 @@
     if ((GNUNET_NO == h->inbound_hdr_only) &&
         (msize !=
          ntohs (em->size) + sizeof (struct NotifyTrafficMessage) +
-         +ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)))
+         +ats_count * sizeof (struct GNUNET_ATS_Information)))
     {
       GNUNET_break (0);
       reconnect_later (h);
@@ -1014,9 +1014,9 @@
     ats_count = ntohl (ntm->ats_count);
     if ((msize <
          sizeof (struct NotifyTrafficMessage) +
-         ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) +
+         ats_count * sizeof (struct GNUNET_ATS_Information) +
          sizeof (struct GNUNET_MessageHeader)) ||
-        (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR !=
+        (GNUNET_ATS_ARRAY_TERMINATOR !=
          ntohl ((&ntm->ats)[ats_count].type)))
     {
       GNUNET_break (0);
@@ -1039,7 +1039,7 @@
     if ((GNUNET_NO == h->outbound_hdr_only) &&
         (msize !=
          ntohs (em->size) + sizeof (struct NotifyTrafficMessage) +
-         ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)))
+         ats_count * sizeof (struct GNUNET_ATS_Information)))
     {
       GNUNET_break (0);
       reconnect_later (h);

Modified: gnunet/src/core/core_api_iterate_peers.c
===================================================================
--- gnunet/src/core/core_api_iterate_peers.c    2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/core/core_api_iterate_peers.c    2011-10-17 07:55:41 UTC (rev 
17517)
@@ -101,8 +101,8 @@
   ats_count = ntohl (connect_message->ats_count);
   if ((msize !=
        sizeof (struct ConnectNotifyMessage) +
-       ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)) ||
-      (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR !=
+       ats_count * sizeof (struct GNUNET_ATS_Information)) ||
+      (GNUNET_ATS_ARRAY_TERMINATOR !=
        ntohl ((&connect_message->ats)[ats_count].type)))
   {
     GNUNET_break (0);

Modified: gnunet/src/core/gnunet-core-list-connections.c
===================================================================
--- gnunet/src/core/gnunet-core-list-connections.c      2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/core/gnunet-core-list-connections.c      2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -123,7 +123,7 @@
  */
 static void
 connected_peer_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
-                         const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                         const struct GNUNET_ATS_Information *atsi)
 {
   struct PrintContext *pc;
 

Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c       2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/core/gnunet-service-core.c       2011-10-17 07:55:41 UTC (rev 
17517)
@@ -490,7 +490,7 @@
   /**
    * Performance data for the peer.
    */
-  struct GNUNET_TRANSPORT_ATS_Information *ats;
+  struct GNUNET_ATS_Information *ats;
 
   /**
    * Identity of the neighbour.
@@ -957,7 +957,7 @@
 {
   struct PeerStatusNotifyMessage *psnm;
   char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
-  struct GNUNET_TRANSPORT_ATS_Information *ats;
+  struct GNUNET_ATS_Information *ats;
   size_t size;
 
   if ((!n->is_connected) || (n->status != PEER_STATE_KEY_CONFIRMED))
@@ -968,7 +968,7 @@
 #endif
   size =
       sizeof (struct PeerStatusNotifyMessage) +
-      n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+      n->ats_count * sizeof (struct GNUNET_ATS_Information);
   if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
   {
     GNUNET_break (0);
@@ -976,7 +976,7 @@
     GNUNET_array_grow (n->ats, n->ats_count, 0);
     size =
         sizeof (struct PeerStatusNotifyMessage) +
-        n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+        n->ats_count * sizeof (struct GNUNET_ATS_Information);
   }
   psnm = (struct PeerStatusNotifyMessage *) buf;
   psnm->header.size = htons (size);
@@ -988,7 +988,7 @@
   psnm->ats_count = htonl (n->ats_count);
   ats = &psnm->ats;
   memcpy (ats, n->ats,
-          n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information));
+          n->ats_count * sizeof (struct GNUNET_ATS_Information));
   ats[n->ats_count].type = htonl (0);
   ats[n->ats_count].value = htonl (0);
   send_to_all_clients (&psnm->header, GNUNET_YES,
@@ -1245,12 +1245,12 @@
   struct Neighbour *n = value;
   size_t size;
   char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
-  struct GNUNET_TRANSPORT_ATS_Information *ats;
+  struct GNUNET_ATS_Information *ats;
   struct ConnectNotifyMessage *cnm;
 
   size =
       sizeof (struct ConnectNotifyMessage) +
-      (n->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+      (n->ats_count) * sizeof (struct GNUNET_ATS_Information);
   if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
   {
     GNUNET_break (0);
@@ -1258,7 +1258,7 @@
     GNUNET_array_grow (n->ats, n->ats_count, 0);
     size =
         sizeof (struct ConnectNotifyMessage) +
-        (n->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+        (n->ats_count) * sizeof (struct GNUNET_ATS_Information);
   }
   cnm = (struct ConnectNotifyMessage *) buf;
   cnm->header.size = htons (size);
@@ -1266,8 +1266,8 @@
   cnm->ats_count = htonl (n->ats_count);
   ats = &cnm->ats;
   memcpy (ats, n->ats,
-          sizeof (struct GNUNET_TRANSPORT_ATS_Information) * n->ats_count);
-  ats[n->ats_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
+          sizeof (struct GNUNET_ATS_Information) * n->ats_count);
+  ats[n->ats_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
   ats[n->ats_count].value = htonl (0);
   if (n->status == PEER_STATE_KEY_CONFIRMED)
   {
@@ -1464,7 +1464,7 @@
   struct GNUNET_SERVER_TransmitContext *tc = cls;
   struct Neighbour *n = value;
   char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
-  struct GNUNET_TRANSPORT_ATS_Information *ats;
+  struct GNUNET_ATS_Information *ats;
   size_t size;
   struct ConnectNotifyMessage *cnm;
 
@@ -1473,7 +1473,7 @@
     return GNUNET_OK;
   size =
       sizeof (struct ConnectNotifyMessage) +
-      (n->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+      (n->ats_count) * sizeof (struct GNUNET_ATS_Information);
   if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
   {
     GNUNET_break (0);
@@ -1481,7 +1481,7 @@
     GNUNET_array_grow (n->ats, n->ats_count, 0);
     size =
         sizeof (struct PeerStatusNotifyMessage) +
-        n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+        n->ats_count * sizeof (struct GNUNET_ATS_Information);
   }
   cnm = (struct ConnectNotifyMessage *) buf;
   cnm->header.size = htons (size);
@@ -1489,8 +1489,8 @@
   cnm->ats_count = htonl (n->ats_count);
   ats = &cnm->ats;
   memcpy (ats, n->ats,
-          n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information));
-  ats[n->ats_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
+          n->ats_count * sizeof (struct GNUNET_ATS_Information));
+  ats[n->ats_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
   ats[n->ats_count].value = htonl (0);
 #if DEBUG_CORE_CLIENT
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message to client.\n",
@@ -3089,7 +3089,7 @@
  */
 static void
 handle_set_key (struct Neighbour *n, const struct SetKeyMessage *m,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count);
 
 
@@ -3166,7 +3166,7 @@
  */
 static void
 update_neighbour_performance (struct Neighbour *n,
-                              const struct GNUNET_TRANSPORT_ATS_Information
+                              const struct GNUNET_ATS_Information
                               *ats, uint32_t ats_count)
 {
   uint32_t i;
@@ -3203,7 +3203,7 @@
  */
 static void
 handle_ping (struct Neighbour *n, const struct PingMessage *m,
-             const struct GNUNET_TRANSPORT_ATS_Information *ats,
+             const struct GNUNET_ATS_Information *ats,
              uint32_t ats_count)
 {
   struct PingMessage t;
@@ -3295,14 +3295,14 @@
  */
 static void
 handle_pong (struct Neighbour *n, const struct PongMessage *m,
-             const struct GNUNET_TRANSPORT_ATS_Information *ats,
+             const struct GNUNET_ATS_Information *ats,
              uint32_t ats_count)
 {
   struct PongMessage t;
   struct ConnectNotifyMessage *cnm;
   struct GNUNET_CRYPTO_AesInitializationVector iv;
   char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
-  struct GNUNET_TRANSPORT_ATS_Information *mats;
+  struct GNUNET_ATS_Information *mats;
   size_t size;
 
 #if DEBUG_HANDSHAKE
@@ -3393,7 +3393,7 @@
     update_neighbour_performance (n, ats, ats_count);
     size =
         sizeof (struct ConnectNotifyMessage) +
-        (n->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+        (n->ats_count) * sizeof (struct GNUNET_ATS_Information);
     if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
     {
       GNUNET_break (0);
@@ -3401,7 +3401,7 @@
       GNUNET_array_grow (n->ats, n->ats_count, 0);
       size =
           sizeof (struct PeerStatusNotifyMessage) +
-          n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+          n->ats_count * sizeof (struct GNUNET_ATS_Information);
     }
     cnm = (struct ConnectNotifyMessage *) buf;
     cnm->header.size = htons (size);
@@ -3410,8 +3410,8 @@
     cnm->peer = n->peer;
     mats = &cnm->ats;
     memcpy (mats, n->ats,
-            n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information));
-    mats[n->ats_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
+            n->ats_count * sizeof (struct GNUNET_ATS_Information));
+    mats[n->ats_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
     mats[n->ats_count].value = htonl (0);
     send_to_all_clients (&cnm->header, GNUNET_NO,
                          GNUNET_CORE_OPTION_SEND_CONNECT);
@@ -3445,7 +3445,7 @@
  */
 static void
 handle_set_key (struct Neighbour *n, const struct SetKeyMessage *m,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   struct SetKeyMessage *m_cpy;
@@ -3619,10 +3619,10 @@
 {
   size_t size =
       msize + sizeof (struct NotifyTrafficMessage) +
-      (sender->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+      (sender->ats_count) * sizeof (struct GNUNET_ATS_Information);
   char buf[size];
   struct NotifyTrafficMessage *ntm;
-  struct GNUNET_TRANSPORT_ATS_Information *ats;
+  struct GNUNET_ATS_Information *ats;
 
   GNUNET_assert (GNUNET_YES == sender->is_connected);
   GNUNET_break (sender->status == PEER_STATE_KEY_CONFIRMED);
@@ -3633,7 +3633,7 @@
     GNUNET_array_grow (sender->ats, sender->ats_count, 0);
     size =
         msize + sizeof (struct NotifyTrafficMessage) +
-        (sender->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+        (sender->ats_count) * sizeof (struct GNUNET_ATS_Information);
   }
 #if DEBUG_CORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -3649,8 +3649,8 @@
   ntm->peer = sender->peer;
   ats = &ntm->ats;
   memcpy (ats, sender->ats,
-          sizeof (struct GNUNET_TRANSPORT_ATS_Information) * 
sender->ats_count);
-  ats[sender->ats_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
+          sizeof (struct GNUNET_ATS_Information) * sender->ats_count);
+  ats[sender->ats_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
   ats[sender->ats_count].value = htonl (0);
   memcpy (&ats[sender->ats_count + 1], m, msize);
   send_to_client (client, &ntm->header, GNUNET_YES);
@@ -3748,7 +3748,7 @@
  */
 static void
 handle_encrypted_message (struct Neighbour *n, const struct EncryptedMessage 
*m,
-                          const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                          const struct GNUNET_ATS_Information *ats,
                           uint32_t ats_count)
 {
   size_t size = ntohs (m->header.size);
@@ -3908,7 +3908,7 @@
 static void
 handle_transport_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                           const struct GNUNET_MessageHeader *message,
-                          const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                          const struct GNUNET_ATS_Information *ats,
                           uint32_t ats_count)
 {
   struct Neighbour *n;
@@ -4171,7 +4171,7 @@
 static void
 handle_transport_notify_connect (void *cls,
                                  const struct GNUNET_PeerIdentity *peer,
-                                 const struct GNUNET_TRANSPORT_ATS_Information
+                                 const struct GNUNET_ATS_Information
                                  *ats, uint32_t ats_count)
 {
   struct Neighbour *n;

Modified: gnunet/src/core/gnunet-service-core_clients.c
===================================================================
--- gnunet/src/core/gnunet-service-core_clients.c       2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/core/gnunet-service-core_clients.c       2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -616,7 +616,7 @@
 void
 GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
                                           const struct GNUNET_PeerIdentity 
*neighbour,
-                                          const struct 
GNUNET_TRANSPORT_ATS_Information *atsi,
+                                          const struct GNUNET_ATS_Information 
*atsi,
                                           unsigned int atsi_count,
                                           const struct GSC_TypeMap *tmap_old,
                                           const struct GSC_TypeMap *tmap_new)
@@ -624,7 +624,7 @@
   struct ConnectNotifyMessage *cnm;
   size_t size;
   char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
-  struct GNUNET_TRANSPORT_ATS_Information *a;
+  struct GNUNET_ATS_Information *a;
   struct DisconnectNotifyMessage dcm;
   int old_match;
   int new_match;
@@ -640,7 +640,7 @@
     /* send connect */  
     size =
       sizeof (struct ConnectNotifyMessage) +
-      (atsi_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+      (atsi_count) * sizeof (struct GNUNET_ATS_Information);
     if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
       {
        GNUNET_break (0);
@@ -654,8 +654,8 @@
     cnm->ats_count = htonl (atsi_count);
     a = &cnm->ats;
     memcpy (a, atsi,
-           sizeof (struct GNUNET_TRANSPORT_ATS_Information) * atsi_count);
-    a[atsi_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
+           sizeof (struct GNUNET_ATS_Information) * atsi_count);
+    a[atsi_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
     a[atsi_count].value = htonl (0);
 #if DEBUG_CORE
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
@@ -690,7 +690,7 @@
  */
 void
 GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity 
*neighbour,
-                                           const struct 
GNUNET_TRANSPORT_ATS_Information *atsi,
+                                           const struct GNUNET_ATS_Information 
*atsi,
                                            unsigned int atsi_count,
                                            const struct GSC_TypeMap *tmap_old,
                                            const struct GSC_TypeMap *tmap_new)
@@ -719,17 +719,17 @@
  */
 void
 GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
-                            const struct GNUNET_TRANSPORT_ATS_Information 
*atsi,
+                            const struct GNUNET_ATS_Information *atsi,
                             unsigned int atsi_count,
                             const struct GNUNET_MessageHeader *msg,
                             uint16_t msize,
                             int options)
 {
   size_t size = msize + sizeof (struct NotifyTrafficMessage) +
-      atsi_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+      atsi_count * sizeof (struct GNUNET_ATS_Information);
   char buf[size];
   struct NotifyTrafficMessage *ntm;
-  struct GNUNET_TRANSPORT_ATS_Information *a;
+  struct GNUNET_ATS_Information *a;
 
   if (0 == options)
   {
@@ -759,8 +759,8 @@
   ntm->peer = *sender;
   a = &ntm->ats;
   memcpy (a, atsi,
-          sizeof (struct GNUNET_TRANSPORT_ATS_Information) * atsi_count);
-  a[atsi_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
+          sizeof (struct GNUNET_ATS_Information) * atsi_count);
+  a[atsi_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
   a[atsi_count].value = htonl (0);
   memcpy (&a[atsi_count + 1], msg, msize);
   send_to_all_clients (&ntm->header, GNUNET_YES, 

Modified: gnunet/src/core/gnunet-service-core_clients.h
===================================================================
--- gnunet/src/core/gnunet-service-core_clients.h       2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/core/gnunet-service-core_clients.h       2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -60,7 +60,7 @@
 void
 GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
                                           const struct GNUNET_PeerIdentity 
*neighbour,
-                                          const struct 
GNUNET_TRANSPORT_ATS_Information *atsi,
+                                          const struct GNUNET_ATS_Information 
*atsi,
                                           unsigned int atsi_count,
                                           const struct GSC_TypeMap *tmap_old,
                                           const struct GSC_TypeMap *tmap_new);
@@ -79,7 +79,7 @@
  */
 void
 GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity 
*neighbour,
-                                           const struct 
GNUNET_TRANSPORT_ATS_Information *atsi,
+                                           const struct GNUNET_ATS_Information 
*atsi,
                                            unsigned int atsi_count,
                                            const struct GSC_TypeMap *tmap_old,
                                            const struct GSC_TypeMap *tmap_new);
@@ -100,7 +100,7 @@
  */
 void
 GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
-                            const struct GNUNET_TRANSPORT_ATS_Information 
*atsi,
+                            const struct GNUNET_ATS_Information *atsi,
                             unsigned int atsi_count,
                             const struct GNUNET_MessageHeader *msg,
                             uint16_t msize,

Modified: gnunet/src/core/gnunet-service-core_kx.c
===================================================================
--- gnunet/src/core/gnunet-service-core_kx.c    2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/core/gnunet-service-core_kx.c    2011-10-17 07:55:41 UTC (rev 
17517)
@@ -1301,7 +1301,7 @@
   /**
    * Performance information for the connection.
    */
-  const struct GNUNET_TRANSPORT_ATS_Information *atsi;
+  const struct GNUNET_ATS_Information *atsi;
 
   /**
    * Sender of the message.
@@ -1327,7 +1327,7 @@
 void
 GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx, 
                                 const struct GNUNET_MessageHeader *msg,
-                                const struct GNUNET_TRANSPORT_ATS_Information 
*atsi,
+                                const struct GNUNET_ATS_Information *atsi,
                                 uint32_t atsi_count)
 {
   const struct EncryptedMessage *m;

Modified: gnunet/src/core/gnunet-service-core_kx.h
===================================================================
--- gnunet/src/core/gnunet-service-core_kx.h    2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/core/gnunet-service-core_kx.h    2011-10-17 07:55:41 UTC (rev 
17517)
@@ -96,7 +96,7 @@
 void
 GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx, 
                                 const struct GNUNET_MessageHeader *msg,
-                                const struct GNUNET_TRANSPORT_ATS_Information 
*atsi,
+                                const struct GNUNET_ATS_Information *atsi,
                                 uint32_t atsi_count);
 
 

Modified: gnunet/src/core/gnunet-service-core_neighbours.c
===================================================================
--- gnunet/src/core/gnunet-service-core_neighbours.c    2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/core/gnunet-service-core_neighbours.c    2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -309,7 +309,7 @@
 static void
 handle_transport_notify_connect (void *cls,
                                  const struct GNUNET_PeerIdentity *peer,
-                                 const struct GNUNET_TRANSPORT_ATS_Information
+                                 const struct GNUNET_ATS_Information
                                  *ats, uint32_t ats_count)
 {
   struct Neighbour *n;
@@ -383,7 +383,7 @@
 static void
 handle_transport_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                           const struct GNUNET_MessageHeader *message,
-                          const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                          const struct GNUNET_ATS_Information *ats,
                           uint32_t ats_count)
 {
   struct Neighbour *n;

Modified: gnunet/src/core/gnunet-service-core_sessions.c
===================================================================
--- gnunet/src/core/gnunet-service-core_sessions.c      2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/core/gnunet-service-core_sessions.c      2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -632,7 +632,7 @@
   struct GNUNET_SERVER_TransmitContext *tc = cls;
   struct Session *session = value;
   struct ConnectNotifyMessage cnm;
-  struct GNUNET_TRANSPORT_ATS_Information *a;
+  struct GNUNET_ATS_Information *a;
  
   /* FIXME: code duplication with clients... */
   cnm.header.size = htons (sizeof (struct ConnectNotifyMessage));
@@ -641,7 +641,7 @@
   cnm.peer = session->peer;
   a = &cnm.ats;
   // FIXME: full ats...
-  a[0].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
+  a[0].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
   a[0].value = htonl (0);
   GNUNET_SERVER_transmit_context_append_message (tc, &cnm.header);
   return GNUNET_OK;

Modified: gnunet/src/core/test_core_api.c
===================================================================
--- gnunet/src/core/test_core_api.c     2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/core/test_core_api.c     2011-10-17 07:55:41 UTC (rev 17517)
@@ -165,7 +165,7 @@
 
 static void
 connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   struct PeerContext *pc = cls;
 
@@ -218,7 +218,7 @@
 static int
 inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
@@ -229,7 +229,7 @@
 static int
 outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
                  const struct GNUNET_MessageHeader *message,
-                 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                 const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Core notifies about outbound data for `%4s'.\n",
@@ -242,7 +242,7 @@
 static int
 process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
                const struct GNUNET_MessageHeader *message,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n",
               GNUNET_i2s (peer));

Modified: gnunet/src/core/test_core_api_reliability.c
===================================================================
--- gnunet/src/core/test_core_api_reliability.c 2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/core/test_core_api_reliability.c 2011-10-17 07:55:41 UTC (rev 
17517)
@@ -225,7 +225,7 @@
 
 static void
 connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   struct PeerContext *pc = cls;
 
@@ -270,7 +270,7 @@
 static int
 inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
 #if VERBOSE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -283,7 +283,7 @@
 static int
 outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
                  const struct GNUNET_MessageHeader *message,
-                 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                 const struct GNUNET_ATS_Information *atsi)
 {
 #if VERBOSE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -300,7 +300,7 @@
 static int
 process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
                const struct GNUNET_MessageHeader *message,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   static int n;
   unsigned int s;

Modified: gnunet/src/core/test_core_api_send_to_self.c
===================================================================
--- gnunet/src/core/test_core_api_send_to_self.c        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/core/test_core_api_send_to_self.c        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -90,7 +90,7 @@
 static int
 receive (void *cls, const struct GNUNET_PeerIdentity *other,
          const struct GNUNET_MessageHeader *message,
-         const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+         const struct GNUNET_ATS_Information *atsi)
 {
   if (die_task != GNUNET_SCHEDULER_NO_TASK)
     GNUNET_SCHEDULER_cancel (die_task);
@@ -134,7 +134,7 @@
 
 static void
 connect_cb (void *cls, const struct GNUNET_PeerIdentity *peer,
-            const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+            const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected to peer %s.\n",
               GNUNET_i2s (peer));

Modified: gnunet/src/core/test_core_api_start_only.c
===================================================================
--- gnunet/src/core/test_core_api_start_only.c  2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/core/test_core_api_start_only.c  2011-10-17 07:55:41 UTC (rev 
17517)
@@ -67,7 +67,7 @@
 
 static void
 connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
 }
 
@@ -81,7 +81,7 @@
 static int
 inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   return GNUNET_OK;
 }
@@ -90,7 +90,7 @@
 static int
 outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
                  const struct GNUNET_MessageHeader *message,
-                 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                 const struct GNUNET_ATS_Information *atsi)
 {
   return GNUNET_OK;
 }

Modified: gnunet/src/core/test_core_quota_compliance.c
===================================================================
--- gnunet/src/core/test_core_quota_compliance.c        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/core/test_core_quota_compliance.c        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -358,7 +358,7 @@
 
 static void
 connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   struct PeerContext *pc = cls;
 
@@ -418,7 +418,7 @@
 static int
 inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
 #if DEBUG_TRANSMISSION
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -433,7 +433,7 @@
 static int
 outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
                  const struct GNUNET_MessageHeader *message,
-                 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                 const struct GNUNET_ATS_Information *atsi)
 {
 #if DEBUG_TRANSMISSION
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -450,7 +450,7 @@
 static int
 process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
                const struct GNUNET_MessageHeader *message,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   static int n;
   const struct TestMessage *hdr;

Modified: gnunet/src/dht/gnunet-service-dht_neighbours.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht_neighbours.c      2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/dht/gnunet-service-dht_neighbours.c      2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -603,7 +603,7 @@
  */
 static void
 handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                     const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                     const struct GNUNET_ATS_Information *atsi)
 {
   struct PeerInfo *ret;
   int peer_bucket;
@@ -1515,7 +1515,7 @@
 handle_dht_p2p_put (void *cls,
                    const struct GNUNET_PeerIdentity *peer,
                    const struct GNUNET_MessageHeader *message,
-                   const struct GNUNET_TRANSPORT_ATS_Information
+                   const struct GNUNET_ATS_Information
                    *atsi)
 {
   const struct PeerPutMessage *put;
@@ -1735,7 +1735,7 @@
 static int
 handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer,
                    const struct GNUNET_MessageHeader *message,
-                   const struct GNUNET_TRANSPORT_ATS_Information
+                   const struct GNUNET_ATS_Information
                    *atsi)
 {
   struct PeerGetMessage *get;
@@ -1870,7 +1870,7 @@
 static int
 handle_dht_p2p_result (void *cls, const struct GNUNET_PeerIdentity *peer,
                       const struct GNUNET_MessageHeader *message,
-                      const struct GNUNET_TRANSPORT_ATS_Information
+                      const struct GNUNET_ATS_Information
                       *atsi)
 {
   const struct PeerResultMessage *prm;

Modified: gnunet/src/dv/gnunet-service-dv.c
===================================================================
--- gnunet/src/dv/gnunet-service-dv.c   2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/dv/gnunet-service-dv.c   2011-10-17 07:55:41 UTC (rev 17517)
@@ -1347,12 +1347,12 @@
  * @return connected transport distance
  */
 static uint32_t
-get_atsi_distance (const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+get_atsi_distance (const struct GNUNET_ATS_Information *atsi)
 {
-  while ((ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR) &&
-         (ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE))
+  while ((ntohl (atsi->type) != GNUNET_ATS_ARRAY_TERMINATOR) &&
+         (ntohl (atsi->type) != GNUNET_ATS_QUALITY_NET_DISTANCE))
     atsi++;
-  if (ntohl (atsi->type) == GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR)
+  if (ntohl (atsi->type) == GNUNET_ATS_ARRAY_TERMINATOR)
   {
     GNUNET_break (0);
     /* FIXME: we do not have distance data? Assume direct neighbor. */
@@ -1368,12 +1368,12 @@
  * @return connection latency
  */
 static struct GNUNET_TIME_Relative
-get_atsi_latency (const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+get_atsi_latency (const struct GNUNET_ATS_Information *atsi)
 {
-  while ((ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR) &&
-         (ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY))
+  while ((ntohl (atsi->type) != GNUNET_ATS_ARRAY_TERMINATOR) &&
+         (ntohl (atsi->type) != GNUNET_ATS_QUALITY_NET_DELAY))
     atsi++;
-  if (ntohl (atsi->type) == GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR)
+  if (ntohl (atsi->type) == GNUNET_ATS_ARRAY_TERMINATOR)
   {
     GNUNET_break (0);
     /* how can we not have latency data? */
@@ -1398,7 +1398,7 @@
 static int
 handle_dv_data_message (void *cls, const struct GNUNET_PeerIdentity *peer,
                         const struct GNUNET_MessageHeader *message,
-                        const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                        const struct GNUNET_ATS_Information *atsi)
 {
   const p2p_dv_MESSAGE_Data *incoming = (const p2p_dv_MESSAGE_Data *) message;
   const struct GNUNET_MessageHeader *packed_message;
@@ -2075,12 +2075,12 @@
 static int
 handle_dv_gossip_message (void *cls, const struct GNUNET_PeerIdentity *peer,
                           const struct GNUNET_MessageHeader *message,
-                          const struct GNUNET_TRANSPORT_ATS_Information *atsi);
+                          const struct GNUNET_ATS_Information *atsi);
 
 static int
 handle_dv_disconnect_message (void *cls, const struct GNUNET_PeerIdentity 
*peer,
                               const struct GNUNET_MessageHeader *message,
-                              const struct GNUNET_TRANSPORT_ATS_Information
+                              const struct GNUNET_ATS_Information
                               *atsi);
 /** End forward declarations **/
 
@@ -2649,19 +2649,19 @@
                       "%s: learned about peer %llu from which we have a 
previous unknown message, processing!\n",
                       my_short_id, referrer_peer_id);
 #endif
-          struct GNUNET_TRANSPORT_ATS_Information atsi[3];
+          struct GNUNET_ATS_Information atsi[3];
 
-          atsi[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
+          atsi[0].type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
           atsi[0].value = htonl (referrer->pending_messages[i].distance);
-          atsi[1].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY);
+          atsi[1].type = htonl (GNUNET_ATS_QUALITY_NET_DELAY);
           atsi[1].value =
               htonl ((uint32_t) referrer->pending_messages[i].
                      latency.rel_value);
-          atsi[2].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
+          atsi[2].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
           atsi[2].value = htonl (0);
           handle_dv_data_message (NULL, &referrer->pending_messages[i].sender,
                                   referrer->pending_messages[i].message,
-                                  (const struct 
GNUNET_TRANSPORT_ATS_Information
+                                  (const struct GNUNET_ATS_Information
                                    *) &atsi);
           GNUNET_free (referrer->pending_messages[i].message);
           referrer->pending_messages[i].sender_id = 0;
@@ -2732,7 +2732,7 @@
 static int
 handle_dv_disconnect_message (void *cls, const struct GNUNET_PeerIdentity 
*peer,
                               const struct GNUNET_MessageHeader *message,
-                              const struct GNUNET_TRANSPORT_ATS_Information
+                              const struct GNUNET_ATS_Information
                               *atsi)
 {
   struct DirectNeighbor *referrer;
@@ -2781,7 +2781,7 @@
 static int
 handle_dv_gossip_message (void *cls, const struct GNUNET_PeerIdentity *peer,
                           const struct GNUNET_MessageHeader *message,
-                          const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                          const struct GNUNET_ATS_Information *atsi)
 {
   struct DirectNeighbor *referrer;
   p2p_dv_MESSAGE_NeighborInfo *enc_message =
@@ -3082,7 +3082,7 @@
  */
 static void
 handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                     const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                     const struct GNUNET_ATS_Information *atsi)
 {
   struct DirectNeighbor *neighbor;
   struct DistantNeighbor *about;

Modified: gnunet/src/dv/plugin_transport_dv.c
===================================================================
--- gnunet/src/dv/plugin_transport_dv.c 2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/dv/plugin_transport_dv.c 2011-10-17 07:55:41 UTC (rev 17517)
@@ -162,16 +162,16 @@
                    distance);
   GNUNET_free_non_null (my_id);
 #endif
-  struct GNUNET_TRANSPORT_ATS_Information ats[2];
+  struct GNUNET_ATS_Information ats[2];
 
-  ats[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
+  ats[0].type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
   ats[0].value = htonl (distance);
-  ats[1].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
+  ats[1].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
   ats[1].value = htonl (0);
 
   plugin->env->receive (plugin->env->cls, sender,
                         (struct GNUNET_MessageHeader *) msg,
-                        (const struct GNUNET_TRANSPORT_ATS_Information *) &ats,
+                        (const struct GNUNET_ATS_Information *) &ats,
                         2, NULL, sender_address, sender_address_len);
 
 }

Modified: gnunet/src/dv/test_transport_api_dv.c
===================================================================
--- gnunet/src/dv/test_transport_api_dv.c       2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/dv/test_transport_api_dv.c       2011-10-17 07:55:41 UTC (rev 
17517)
@@ -394,12 +394,12 @@
  * @return connected transport distance
  */
 static uint32_t
-get_atsi_distance (const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+get_atsi_distance (const struct GNUNET_ATS_Information *atsi)
 {
-  while ((ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR) &&
-         (ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE))
+  while ((ntohl (atsi->type) != GNUNET_ATS_ARRAY_TERMINATOR) &&
+         (ntohl (atsi->type) != GNUNET_ATS_QUALITY_NET_DISTANCE))
     atsi++;
-  if (ntohl (atsi->type) == GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR)
+  if (ntohl (atsi->type) == GNUNET_ATS_ARRAY_TERMINATOR)
   {
     GNUNET_break (0);
     /* FIXME: we do not have distance data? Assume direct neighbor. */
@@ -411,7 +411,7 @@
 static int
 process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
                const struct GNUNET_MessageHeader *message,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   struct TestMessageContext *pos = cls;
   struct GNUNET_TestMessage *msg = (struct GNUNET_TestMessage *) message;
@@ -527,7 +527,7 @@
  */
 static void
 connect_notify_peer2 (void *cls, const struct GNUNET_PeerIdentity *peer,
-                      const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                      const struct GNUNET_ATS_Information *atsi)
 {
   struct TestMessageContext *pos = cls;
 
@@ -580,7 +580,7 @@
  */
 static void
 connect_notify_peer1 (void *cls, const struct GNUNET_PeerIdentity *peer,
-                      const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                      const struct GNUNET_ATS_Information *atsi)
 {
   struct TestMessageContext *pos = cls;
 
@@ -840,7 +840,7 @@
  */
 static void
 all_connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
-                     const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                     const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_TESTING_Daemon *d = cls;
   struct GNUNET_TESTING_Daemon *second_daemon;

Modified: gnunet/src/fs/gnunet-service-fs.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs.c   2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/fs/gnunet-service-fs.c   2011-10-17 07:55:41 UTC (rev 17517)
@@ -226,7 +226,7 @@
 static int
 handle_p2p_put (void *cls, const struct GNUNET_PeerIdentity *other,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   struct GSF_ConnectedPeer *cp;
 
@@ -296,7 +296,7 @@
 static int
 handle_p2p_get (void *cls, const struct GNUNET_PeerIdentity *other,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   struct GSF_PendingRequest *pr;
 
@@ -439,7 +439,7 @@
  */
 static void
 peer_connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
-                      const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                      const struct GNUNET_ATS_Information *atsi)
 {
   struct GSF_ConnectedPeer *cp;
 

Modified: gnunet/src/fs/gnunet-service-fs_cp.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_cp.c        2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/fs/gnunet-service-fs_cp.c        2011-10-17 07:55:41 UTC (rev 
17517)
@@ -331,14 +331,14 @@
  * @return connection latency
  */
 static struct GNUNET_TIME_Relative
-get_latency (const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+get_latency (const struct GNUNET_ATS_Information *atsi)
 {
   if (atsi == NULL)
     return GNUNET_TIME_UNIT_SECONDS;
-  while ((ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR) &&
-         (ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY))
+  while ((ntohl (atsi->type) != GNUNET_ATS_ARRAY_TERMINATOR) &&
+         (ntohl (atsi->type) != GNUNET_ATS_QUALITY_NET_DELAY))
     atsi++;
-  if (ntohl (atsi->type) == GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR)
+  if (ntohl (atsi->type) == GNUNET_ATS_ARRAY_TERMINATOR)
   {
     /* We sometime have no latency data, i.e. if the address came from 
        peerinfo and we never had a chance to play transport-level 
@@ -358,7 +358,7 @@
  */
 static void
 update_atsi (struct GSF_ConnectedPeer *cp,
-             const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+             const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_TIME_Relative latency;
 
@@ -584,7 +584,7 @@
  */
 struct GSF_ConnectedPeer *
 GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer,
-                           const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                           const struct GNUNET_ATS_Information *atsi)
 {
   struct GSF_ConnectedPeer *cp;
   char *fn;
@@ -669,7 +669,7 @@
 GSF_handle_p2p_migration_stop_ (void *cls,
                                 const struct GNUNET_PeerIdentity *other,
                                 const struct GNUNET_MessageHeader *message,
-                                const struct GNUNET_TRANSPORT_ATS_Information
+                                const struct GNUNET_ATS_Information
                                 *atsi)
 {
   struct GSF_ConnectedPeer *cp;

Modified: gnunet/src/fs/gnunet-service-fs_cp.h
===================================================================
--- gnunet/src/fs/gnunet-service-fs_cp.h        2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/fs/gnunet-service-fs_cp.h        2011-10-17 07:55:41 UTC (rev 
17517)
@@ -39,7 +39,7 @@
   /**
    * Transport performance data.
    */
-  struct GNUNET_TRANSPORT_ATS_Information *atsi;
+  struct GNUNET_ATS_Information *atsi;
 
   /**
    * List of the last clients for which this peer successfully
@@ -172,7 +172,7 @@
  */
 struct GSF_ConnectedPeer *
 GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer,
-                           const struct GNUNET_TRANSPORT_ATS_Information 
*atsi);
+                           const struct GNUNET_ATS_Information *atsi);
 
 
 /**
@@ -267,7 +267,7 @@
 GSF_handle_p2p_migration_stop_ (void *cls,
                                 const struct GNUNET_PeerIdentity *other,
                                 const struct GNUNET_MessageHeader *message,
-                                const struct GNUNET_TRANSPORT_ATS_Information
+                                const struct GNUNET_ATS_Information
                                 *atsi);
 
 

Modified: gnunet/src/hostlist/gnunet-daemon-hostlist.c
===================================================================
--- gnunet/src/hostlist/gnunet-daemon-hostlist.c        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/hostlist/gnunet-daemon-hostlist.c        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -140,7 +140,7 @@
 static int
 advertisement_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
                        const struct GNUNET_MessageHeader *message,
-                       const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                       const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_assert (NULL != client_adv_handler);
   return (*client_adv_handler) (cls, peer, message, atsi);
@@ -156,7 +156,7 @@
  */
 static void
 connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
-                 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                 const struct GNUNET_ATS_Information *atsi)
 {
   if (0 == memcmp (&me, peer, sizeof (struct GNUNET_PeerIdentity)))
     return;

Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c       2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/hostlist/hostlist-client.c       2011-10-17 07:55:41 UTC (rev 
17517)
@@ -1110,7 +1110,7 @@
  */
 static void
 handler_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                 const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_assert (stat_connection_count < UINT_MAX);
   stat_connection_count++;
@@ -1148,7 +1148,7 @@
 static int
 handler_advertisement (void *cls, const struct GNUNET_PeerIdentity *peer,
                        const struct GNUNET_MessageHeader *message,
-                       const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                       const struct GNUNET_ATS_Information *atsi)
 {
   size_t size;
   size_t uri_size;

Modified: gnunet/src/hostlist/hostlist-server.c
===================================================================
--- gnunet/src/hostlist/hostlist-server.c       2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/hostlist/hostlist-server.c       2011-10-17 07:55:41 UTC (rev 
17517)
@@ -365,7 +365,7 @@
  */
 static void
 connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
-                 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                 const struct GNUNET_ATS_Information *atsi)
 {
   size_t size;
 

Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist.c   2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist.c   2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -97,7 +97,7 @@
  */
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   if (peer == NULL)

Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c  2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c  2011-10-17 
07:55:41 UTC (rev 17517)
@@ -298,7 +298,7 @@
 static int
 ad_arrive_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
                    const struct GNUNET_MessageHeader *message,
-                   const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                   const struct GNUNET_ATS_Information *atsi)
 {
   char *hostname;
   char *expected_uri;

Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c 2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c 2011-10-17 
07:55:41 UTC (rev 17517)
@@ -108,7 +108,7 @@
  */
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   if (peer == NULL)

Modified: gnunet/src/include/gnunet_ats_service.h
===================================================================
--- gnunet/src/include/gnunet_ats_service.h     2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/include/gnunet_ats_service.h     2011-10-17 07:55:41 UTC (rev 
17517)
@@ -22,19 +22,429 @@
  * @brief automatic transport selection and outbound bandwidth determination
  * @author Christian Grothoff
  * @author Matthias Wachs
- *
- * TODO:
- * - move GNUNET_TRANSPORT_ATS* in here and rename...
  */
 #ifndef GNUNET_ATS_SERVICE_H
 #define GNUNET_ATS_SERVICE_H
 
 #include "gnunet_constants.h"
 #include "gnunet_util_lib.h"
-#include "gnunet_transport_service.h"
-#include "gnunet_transport_plugin.h"
 
 
+/**
+ * Enum defining all known property types for ATS Enum values are used
+ * in the GNUNET_ATS_Information struct as
+ * (key,value)-pairs.
+ *
+ * Cost are always stored in uint32_t, so all units used to define costs
+ * have to be normalized to fit in uint32_t [0 .. 4.294.967.295]
+ */
+enum GNUNET_ATS_Property
+{
+
+  /**
+   * End of the array.
+   * @deprecated
+   */
+  GNUNET_ATS_ARRAY_TERMINATOR = 0,
+
+  /**
+   * Actual traffic on this connection from the other peer to this peer.
+   * 
+   * Unit: [bytes/second]
+   */
+  GNUNET_ATS_UTILIZATION_UP,
+
+  /**
+   * Actual traffic on this connection from this peer to the other peer.
+   * 
+   * Unit: [bytes/second]
+   */
+  GNUNET_ATS_UTILIZATION_DOWN,
+
+  /**
+   * Delay
+   * Time between when the time packet is sent and the packet arrives
+   *
+   * Unit: [ms]
+   *
+   * Examples:
+   *
+   * LAN   :    1
+   * WLAN  :    2
+   * Dialup:  500
+   */
+  GNUNET_ATS_QUALITY_NET_DELAY,
+ 
+  /**
+   * Distance on network layer (required for distance-vector routing).
+   *
+   * Unit: [DV-hops]
+   */
+  GNUNET_ATS_QUALITY_NET_DISTANCE,
+ 
+  /**
+   * Network overhead on WAN (Wide-Area Network)
+   *
+   * How many bytes are sent on the WAN when 1 kilobyte (1024 bytes)
+   * of application data is transmitted?
+   * A factor used with connect cost, bandwidth cost and energy cost
+   * to describe the overhead produced by the transport protocol
+   *
+   * Unit: [bytes/kb]
+   *
+   * Interpretation: less is better
+   *
+   * Examples:
+   *
+   * TCP/IPv4 over Ethernet: 1024 + 38 + 20 + 20 = 1102 [bytes/kb]
+   * TCP/IPv6 over Ethernet: 1024 + 38 + 20 + 40 = 1122 [bytes/kb]
+   * UDP/IPv4 over Ethernet: 1024 + 38 + 20 + 8  = 1090 [bytes/kb]
+   * UDP/IPv6 over Ethernet: 1024 + 38 + 40 + 8  = 1110 [bytes/kb]
+   */
+  GNUNET_ATS_COST_WAN,
+ 
+  /**
+   * Network overhead on LAN (Local-Area Network)
+   *
+   * How many bytes are sent on the LAN when 1 kilobyte (1024 bytes)
+   * of application data is transmitted?
+   * A factor used with connect cost, bandwidth cost and energy cost
+   * to describe the overhead produced by the transport protocol
+   *
+   * Unit: [bytes/kb]
+   *
+   * Interpretation: less is better
+   *
+   * Examples:
+   *
+   * TCP/IPv4 over Ethernet: 1024 + 38 + 20 + 20 = 1102 [bytes/kb]
+   * TCP/IPv6 over Ethernet: 1024 + 38 + 20 + 40 = 1122 [bytes/kb]
+   * UDP/IPv4 over Ethernet: 1024 + 38 + 20 + 8  = 1090 [bytes/kb]
+   * UDP/IPv6 over Ethernet: 1024 + 38 + 40 + 8  = 1110 [bytes/kb]
+   */
+  GNUNET_ATS_COST_LAN,
+  
+  /**
+   * Network overhead on WLAN (Wireless Local Area Network)
+   *
+   * How many bytes are sent on the LAN when 1 kilobyte (1024 bytes)
+   * of application data is transmitted?
+   * A factor used with connect cost, bandwidth cost and energy cost
+   * to describe the overhead produced by the transport protocol
+   *
+   * Unit: [bytes/kb]
+   *
+   * Interpretation: less is better
+   *
+   * Examples:
+   *
+   * TCP/IPv4 over Ethernet: 1024 + 38 + 20 + 20 = 1102 [bytes/kb]
+   * TCP/IPv6 over Ethernet: 1024 + 38 + 20 + 40 = 1122 [bytes/kb]
+   * UDP/IPv4 over Ethernet: 1024 + 38 + 20 + 8  = 1090 [bytes/kb]
+   * UDP/IPv6 over Ethernet: 1024 + 38 + 40 + 8  = 1110 [bytes/kb]
+   */
+  GNUNET_ATS_COST_WLAN
+ 
+
+
+  /* Cost related values */
+  /* =================== */
+
+  /**
+   * Volume based cost in financial units to transmit data
+   *
+   * Note: This value is not bound to a specific currency or unit and only
+   * used locally.
+   * "cent" just refers the smallest amount of money in the respective
+   * currency.
+   *
+   * Unit: [cent/MB]
+   *
+   * Interpretation: less is better
+   *
+   * Examples:
+   * LAN:  0 [cent/MB]
+   * 2G : 10 [cent/MB]
+   */
+  // GNUNET_ATS_COST_FINANCIAL_PER_VOLUME = 1,
+
+  /**
+   * Time based cost in financial units to transmit data
+   *
+   * Note: This value is not bound to a specific currency or unit and only
+   * used locally.
+   * "cent" just refers the smallest amount of money in the respective
+   * currency.
+   *
+   * Unit: [cent/h]
+   *
+   * Interpretation: less is better
+   *
+   * Examples:
+   * LAN   :  0 [cent/h]
+   * Dialup: 10 [cent/h]
+   */
+  // GNUNET_ATS_COST_FINANCIAL_PER_TIME = 2,
+
+  /**
+   * Computational costs
+   *
+   * Effort of preparing data to be sent with this transport
+   * Includes encoding, encryption and conversion of data
+   * Partial values can be summed up: c_sum = c_enc + c_enc + c_conv
+   * Resulting values depend on local system properties, e.g. CPU
+   *
+   * Unit: [ms/GB]
+   *
+   * Interpretation: less is better
+   *
+   * Examples:
+   *
+   * HTTPS with AES CBC-256:   7,382
+   * HTTPS with AES CBC-128:   5,279
+   * HTTPS with RC4-1024:      2,652
+   */
+  // GNUNET_ATS_COST_COMPUTATIONAL = 3,
+
+  /**
+   * Energy consumption
+   *
+   * Energy consumption using this transport when sending with a certain
+   * power at a certain bitrate. This is only an approximation based on:
+   * Energy consumption E = P / D
+   *
+   * with:
+   * Power P in Watt (J/s)
+   * Datarate D in MBit/s
+   *
+   * Conversion between power P and dBm used by WLAN in radiotap's dBm TX 
power:
+   *
+   * Lp(dbm) = 10 log10 (P/ 1mW)
+   *
+   * => P = 1 mW  * 10^(Lp(dbm)/10)
+   *
+   * Unit: [mJ/MB]
+   *
+   * Interpretation: less is better
+   *
+   * Examples:
+   *
+   * LAN:       0
+   * WLAN:      89 (600 mW @ 802.11g /w 54 MBit/s)
+   * Bluetooth: 267 (100 mW @ BT2.0 EDR /w 3 MBit/s)
+   */
+  // GNUNET_ATS_COST_ENERGY_CONSUMPTION = 4,
+
+  /**
+   * Connect cost
+   * How many bytes are transmitted to initiate a new connection using
+   * this transport?
+   *
+   * Unit: [bytes]
+   *
+   * Interpretation: less is better
+   *
+   * Examples:
+   *
+   * UDP (No connection)      :
+   *     0 bytes
+   * TCP (TCP 3-Way handshake):
+   *   220 bytes Ethernet,  172 bytes TCP/IP,  122 bytes TCP
+   * HTTP (TCP + Header)      :
+   *   477 bytes Ethernet,  429 bytes TCP/IP,  374 bytes TCP,  278 bytes HTTP
+   * HTTPS  HTTP+TLS Handshake:
+   *  2129 bytes Ethernet, 1975 bytes TCP/IP, 1755 bytes TCP, 1403 bytes HTTPS
+   *
+   * */
+  // GNUNET_ATS_COST_CONNECT = 5,
+
+  /**
+   * Bandwidth cost
+   *
+   * How many bandwidth is available to consume?
+   * Used to calculate which impact sending data with this transport has
+   *
+   * Unit: [kB/s]
+   *
+   * Interpretation: more is better
+   *
+   * Examples:
+   * LAN:     12,800  (100 MBit/s)
+   * WLAN:    6,912   (54 MBit/s)
+   * Dial-up: 8       (64 Kbit/s)
+   *
+   */
+  // GNUNET_ATS_COST_BANDWITH_AVAILABLE = 6,
+
+  /**
+   *  Network overhead
+   *
+   * How many bytes are sent over the wire when 1 kilobyte (1024 bytes)
+   * of application data is transmitted?
+   * A factor used with connect cost, bandwidth cost and energy cost
+   * to describe the overhead produced by the transport protocol
+   *
+   * Unit: [bytes/kb]
+   *
+   * Interpretation: less is better
+   *
+   * Examples:
+   *
+   * TCP/IPv4 over Ethernet: 1024 + 38 + 20 + 20 = 1102 [bytes/kb]
+   * TCP/IPv6 over Ethernet: 1024 + 38 + 20 + 40 = 1122 [bytes/kb]
+   * UDP/IPv4 over Ethernet: 1024 + 38 + 20 + 8  = 1090 [bytes/kb]
+   * UDP/IPv6 over Ethernet: 1024 + 38 + 40 + 8  = 1110 [bytes/kb]
+   */
+  // GNUNET_ATS_COST_NETWORK_OVERHEAD = 7,
+
+
+  /* Quality related values */
+  /* ====================== */
+
+  /* Physical layer quality properties */
+
+  /**
+   * Signal strength on physical layer
+   *
+   * Unit: [dBm]
+   */
+  // GNUNET_ATS_QUALITY_PHY_SIGNAL_STRENGTH = 1025,
+
+  /**
+   * Collision rate on physical layer
+   *
+   * Unit: [B/s]
+   */
+  // GNUNET_ATS_QUALITY_PHY_COLLISION_RATE = 1026,
+
+  /**
+   * Error rate on physical layer
+   *
+   * Unit: [B/s]
+   */
+  // GNUNET_ATS_QUALITY_PHY_ERROR_RATE = 1027,
+
+  /**
+   * Jitter
+   * Time variations of the delay
+   * 1st derivative of a delay function
+   *
+   * Unit: [ms]
+   */
+  // GNUNET_ATS_QUALITY_NET_JITTER = 1029,
+
+  /**
+   * Error rate on network layer
+   *
+   * Unit: [B/s]
+   *
+   * Examples:
+   *
+   * LAN       :    0
+   * WLAN      :  400
+   * Bluetooth :  100
+   * Note: This numbers are just assumptions as an example, not
+   * measured or somehow determined
+   */
+  // GNUNET_ATS_QUALITY_NET_ERRORRATE = 1030,
+
+  /**
+   * Drop rate on network layer
+   * Bytes actively dismissed by a network component during transmission
+   * Reasons for dropped data can be full queues, congestion, quota 
violations...
+   *
+   * Unit: [B/s]
+   *
+   * Examples:
+   *
+   * LAN       :    0
+   * WLAN      :  400
+   * Bluetooth :  100
+   * Note: This numbers are just assumptions as an example, not
+   * measured or somehow determined
+   */
+  // GNUNET_ATS_QUALITY_NET_DROPRATE = 1031,
+
+  /**
+   * Loss rate on network layer
+   * Bytes lost during transmission
+   * Reasons can be collisions, ...
+   *
+   * Unit: [B/s]
+   *
+   * Examples:
+   *
+   * LAN       :    0
+   * WLAN      :   40
+   * Bluetooth :   10
+   * Note: This numbers are just assumptions as an example, not measured
+   * or somehow determined
+   */
+  // GNUNET_ATS_QUALITY_NET_LOSSRATE = 1032,
+
+  /**
+   * Throughput on network layer
+   *
+   * Unit: [kB/s]
+   *
+   * Examples:
+   *
+   * LAN   : 3400
+   * WLAN  : 1200
+   * Dialup:     4
+   *
+   */
+  // GNUNET_ATS_QUALITY_NET_THROUGHPUT = 1033,
+
+
+  /* Availability related values */
+  /* =========================== */
+
+  /**
+   * Is a peer reachable?
+   */
+  // GNUNET_ATS_AVAILABILITY_REACHABLE = 2048,
+
+  /**
+   * Is there a connection established to a peer using this transport
+   */
+  // GNUNET_ATS_AVAILABILITY_CONNECTED = 2049
+};
+
+
+/**
+ * struct used to communicate the transport's properties like cost and
+ * quality of service as well as high-level constraints on resource
+ * consumption.
+ *
+ *                             +---+
+ *  +-----------+ Constraints  |   |  Plugin properties +---------+
+ *  | Highlevel |------------> |ATS| <------------------|Transport|
+ *  | Component | ATS struct   |   |    ATS struct      | Plugin  |
+ *  +-----------+              |   |                    +---------+
+ *                             +---+
+ *
+ * This structure will be used by transport plugins to communicate
+ * costs to ATS or by higher level components to tell ATS their
+ * constraints.  Always a pair of (GNUNET_ATS_Property,
+ * uint32_t value).  Value is always uint32_t, so all units used to
+ * define costs have to be normalized to fit uint32_t.
+ */
+struct GNUNET_ATS_Information
+{
+  /**
+   * ATS property type, in network byte order.
+   */
+  uint32_t type;
+
+  /**
+   * ATS property value, in network byte order.
+   */
+  uint32_t value;
+};
+
+
+
 /* ******************************** Scheduling API 
***************************** */
 
 /**
@@ -79,7 +489,7 @@
                                                       
GNUNET_BANDWIDTH_Value32NBO
                                                       bandwidth_in,
                                                      const struct
-                                                     
GNUNET_TRANSPORT_ATS_Information
+                                                     GNUNET_ATS_Information
                                                      * ats,
                                                      uint32_t ats_count);
 
@@ -142,7 +552,7 @@
                            const char *plugin_name,
                            const void *plugin_addr, size_t plugin_addr_len,
                           struct Session *session,
-                           const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                           const struct GNUNET_ATS_Information *ats,
                            uint32_t ats_count);
 
 
@@ -200,7 +610,7 @@
                                                    GNUNET_BANDWIDTH_Value32NBO
                                                    bandwidth_in,
                                                    const struct
-                                                   
GNUNET_TRANSPORT_ATS_Information
+                                                   GNUNET_ATS_Information
                                                    * ats,
                                                    uint32_t ats_count);
 

Modified: gnunet/src/include/gnunet_core_service.h
===================================================================
--- gnunet/src/include/gnunet_core_service.h    2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/include/gnunet_core_service.h    2011-10-17 07:55:41 UTC (rev 
17517)
@@ -62,7 +62,7 @@
                                                  const struct
                                                  GNUNET_PeerIdentity * peer,
                                                  const struct
-                                                 
GNUNET_TRANSPORT_ATS_Information
+                                                 GNUNET_ATS_Information
                                                  * atsi);
 
 
@@ -95,7 +95,7 @@
                                             const struct GNUNET_MessageHeader *
                                             message,
                                             const struct
-                                            GNUNET_TRANSPORT_ATS_Information *
+                                            GNUNET_ATS_Information *
                                             atsi);
 
 

Modified: gnunet/src/include/gnunet_mesh_service.h
===================================================================
--- gnunet/src/include/gnunet_mesh_service.h    2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/include/gnunet_mesh_service.h    2011-10-17 07:55:41 UTC (rev 
17517)
@@ -75,7 +75,7 @@
                                             const struct GNUNET_MessageHeader *
                                             message,
                                             const struct
-                                            GNUNET_TRANSPORT_ATS_Information *
+                                            GNUNET_ATS_Information *
                                             atsi);
 
 
@@ -189,7 +189,7 @@
                                                   const struct
                                                   GNUNET_PeerIdentity * peer,
                                                   const struct
-                                                  
GNUNET_TRANSPORT_ATS_Information
+                                                  GNUNET_ATS_Information
                                                   * atsi);
 
 

Modified: gnunet/src/include/gnunet_mesh_service_new.h
===================================================================
--- gnunet/src/include/gnunet_mesh_service_new.h        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/include/gnunet_mesh_service_new.h        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -75,7 +75,7 @@
                                             const struct GNUNET_MessageHeader *
                                             message,
                                             const struct
-                                            GNUNET_TRANSPORT_ATS_Information *
+                                            GNUNET_ATS_Information *
                                             atsi);
 
 
@@ -124,7 +124,7 @@
                                                               
GNUNET_PeerIdentity
                                                               * initiator,
                                                               const struct
-                                                              
GNUNET_TRANSPORT_ATS_Information
+                                                              
GNUNET_ATS_Information
                                                               * atsi);
 
 
@@ -208,7 +208,7 @@
                                                 const struct 
GNUNET_PeerIdentity
                                                 * peer,
                                                 const struct
-                                                
GNUNET_TRANSPORT_ATS_Information
+                                                GNUNET_ATS_Information
                                                 * atsi);
 
 

Modified: gnunet/src/include/gnunet_transport_plugin.h
===================================================================
--- gnunet/src/include/gnunet_transport_plugin.h        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/include/gnunet_transport_plugin.h        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -114,7 +114,7 @@
                                                                     
GNUNET_MessageHeader
                                                                     * message,
                                                                     const 
struct
-                                                                    
GNUNET_TRANSPORT_ATS_Information
+                                                                    
GNUNET_ATS_Information
                                                                     * ats,
                                                                     uint32_t
                                                                     ats_count,

Modified: gnunet/src/include/gnunet_transport_service.h
===================================================================
--- gnunet/src/include/gnunet_transport_service.h       2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/include/gnunet_transport_service.h       2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -35,12 +35,8 @@
 #endif
 #endif
 
-#include "gnunet_bandwidth_lib.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_crypto_lib.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
+#include "gnunet_ats_service.h"
 
 /**
  * Version number of the transport API.
@@ -49,349 +45,6 @@
 
 
 /**
- * Enum defining all known property types for ATS Enum values are used
- * in the GNUNET_TRANSPORT_ATS_Information struct as
- * (key,value)-pairs.
- *
- * Cost are always stored in uint32_t, so all units used to define costs
- * have to be normalized to fit in uint32_t [0 .. 4.294.967.295]
- *
- * To keep the elements ordered
- *    1..1024 : Values with a relation to cost
- * 1025..2048 : Values with a relation to quality
- * 2049..3072 : Values with a relation to availability
- *
- */
-enum GNUNET_TRANSPORT_ATS_Property
-{
-
-  /**
-   * End of the array.
-   */
-  GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR = 0,
-
-  /* Cost related values */
-  /* =================== */
-
-  /**
-   * Volume based cost in financial units to transmit data
-   *
-   * Note: This value is not bound to a specific currency or unit and only
-   * used locally.
-   * "cent" just refers the smallest amount of money in the respective
-   * currency.
-   *
-   * Unit: [cent/MB]
-   *
-   * Interpretation: less is better
-   *
-   * Examples:
-   * LAN:  0 [cent/MB]
-   * 2G : 10 [cent/MB]
-   */
-  GNUNET_TRANSPORT_ATS_COST_FINANCIAL_PER_VOLUME = 1,
-
-  /**
-   * Time based cost in financial units to transmit data
-   *
-   * Note: This value is not bound to a specific currency or unit and only
-   * used locally.
-   * "cent" just refers the smallest amount of money in the respective
-   * currency.
-   *
-   * Unit: [cent/h]
-   *
-   * Interpretation: less is better
-   *
-   * Examples:
-   * LAN   :  0 [cent/h]
-   * Dialup: 10 [cent/h]
-   */
-  GNUNET_TRANSPORT_ATS_COST_FINANCIAL_PER_TIME = 2,
-
-  /**
-   * Computational costs
-   *
-   * Effort of preparing data to be sent with this transport
-   * Includes encoding, encryption and conversion of data
-   * Partial values can be summed up: c_sum = c_enc + c_enc + c_conv
-   * Resulting values depend on local system properties, e.g. CPU
-   *
-   * Unit: [ms/GB]
-   *
-   * Interpretation: less is better
-   *
-   * Examples:
-   *
-   * HTTPS with AES CBC-256:   7,382
-   * HTTPS with AES CBC-128:   5,279
-   * HTTPS with RC4-1024:      2,652
-   */
-  GNUNET_TRANSPORT_ATS_COST_COMPUTATIONAL = 3,
-
-  /**
-   * Energy consumption
-   *
-   * Energy consumption using this transport when sending with a certain
-   * power at a certain bitrate. This is only an approximation based on:
-   * Energy consumption E = P / D
-   *
-   * with:
-   * Power P in Watt (J/s)
-   * Datarate D in MBit/s
-   *
-   * Conversion between power P and dBm used by WLAN in radiotap's dBm TX 
power:
-   *
-   * Lp(dbm) = 10 log10 (P/ 1mW)
-   *
-   * => P = 1 mW  * 10^(Lp(dbm)/10)
-   *
-   * Unit: [mJ/MB]
-   *
-   * Interpretation: less is better
-   *
-   * Examples:
-   *
-   * LAN:       0
-   * WLAN:      89 (600 mW @ 802.11g /w 54 MBit/s)
-   * Bluetooth: 267 (100 mW @ BT2.0 EDR /w 3 MBit/s)
-   */
-  GNUNET_TRANSPORT_ATS_COST_ENERGY_CONSUMPTION = 4,
-
-  /**
-   * Connect cost
-   * How many bytes are transmitted to initiate a new connection using
-   * this transport?
-   *
-   * Unit: [bytes]
-   *
-   * Interpretation: less is better
-   *
-   * Examples:
-   *
-   * UDP (No connection)      :
-   *     0 bytes
-   * TCP (TCP 3-Way handshake):
-   *   220 bytes Ethernet,  172 bytes TCP/IP,  122 bytes TCP
-   * HTTP (TCP + Header)      :
-   *   477 bytes Ethernet,  429 bytes TCP/IP,  374 bytes TCP,  278 bytes HTTP
-   * HTTPS  HTTP+TLS Handshake:
-   *  2129 bytes Ethernet, 1975 bytes TCP/IP, 1755 bytes TCP, 1403 bytes HTTPS
-   *
-   * */
-  GNUNET_TRANSPORT_ATS_COST_CONNECT = 5,
-
-  /**
-   * Bandwidth cost
-   *
-   * How many bandwidth is available to consume?
-   * Used to calculate which impact sending data with this transport has
-   *
-   * Unit: [kB/s]
-   *
-   * Interpretation: more is better
-   *
-   * Examples:
-   * LAN:     12,800  (100 MBit/s)
-   * WLAN:    6,912   (54 MBit/s)
-   * Dial-up: 8       (64 Kbit/s)
-   *
-   */
-  GNUNET_TRANSPORT_ATS_COST_BANDWITH_AVAILABLE = 6,
-
-  /**
-   *  Network overhead
-   *
-   * How many bytes are sent over the wire when 1 kilobyte (1024 bytes)
-   * of application data is transmitted?
-   * A factor used with connect cost, bandwidth cost and energy cost
-   * to describe the overhead produced by the transport protocol
-   *
-   * Unit: [bytes/kb]
-   *
-   * Interpretation: less is better
-   *
-   * Examples:
-   *
-   * TCP/IPv4 over Ethernet: 1024 + 38 + 20 + 20 = 1102 [bytes/kb]
-   * TCP/IPv6 over Ethernet: 1024 + 38 + 20 + 40 = 1122 [bytes/kb]
-   * UDP/IPv4 over Ethernet: 1024 + 38 + 20 + 8  = 1090 [bytes/kb]
-   * UDP/IPv6 over Ethernet: 1024 + 38 + 40 + 8  = 1110 [bytes/kb]
-   */
-  GNUNET_TRANSPORT_ATS_COST_NETWORK_OVERHEAD = 7,
-
-
-  /* Quality related values */
-  /* ====================== */
-
-  /* Physical layer quality properties */
-
-  /**
-   * Signal strength on physical layer
-   *
-   * Unit: [dBm]
-   */
-  GNUNET_TRANSPORT_ATS_QUALITY_PHY_SIGNAL_STRENGTH = 1025,
-
-  /**
-   * Collision rate on physical layer
-   *
-   * Unit: [B/s]
-   */
-  GNUNET_TRANSPORT_ATS_QUALITY_PHY_COLLISION_RATE = 1026,
-
-  /**
-   * Error rate on physical layer
-   *
-   * Unit: [B/s]
-   */
-  GNUNET_TRANSPORT_ATS_QUALITY_PHY_ERROR_RATE = 1027,
-
-  /* Network layer quality properties */
-
-  /**
-   * Delay
-   * Time between when the time packet is sent and the packet arrives
-   *
-   * Unit: [ms]
-   *
-   * Examples:
-   *
-   * LAN   :    1
-   * WLAN  :    2
-   * Dialup:  500
-   */
-  GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY = 1028,
-
-  /**
-   * Jitter
-   * Time variations of the delay
-   * 1st derivative of a delay function
-   *
-   * Unit: [ms]
-   */
-  GNUNET_TRANSPORT_ATS_QUALITY_NET_JITTER = 1029,
-
-  /**
-   * Error rate on network layer
-   *
-   * Unit: [B/s]
-   *
-   * Examples:
-   *
-   * LAN       :    0
-   * WLAN      :  400
-   * Bluetooth :  100
-   * Note: This numbers are just assumptions as an example, not
-   * measured or somehow determined
-   */
-  GNUNET_TRANSPORT_ATS_QUALITY_NET_ERRORRATE = 1030,
-
-  /**
-   * Drop rate on network layer
-   * Bytes actively dismissed by a network component during transmission
-   * Reasons for dropped data can be full queues, congestion, quota 
violations...
-   *
-   * Unit: [B/s]
-   *
-   * Examples:
-   *
-   * LAN       :    0
-   * WLAN      :  400
-   * Bluetooth :  100
-   * Note: This numbers are just assumptions as an example, not
-   * measured or somehow determined
-   */
-  GNUNET_TRANSPORT_ATS_QUALITY_NET_DROPRATE = 1031,
-
-  /**
-   * Loss rate on network layer
-   * Bytes lost during transmission
-   * Reasons can be collisions, ...
-   *
-   * Unit: [B/s]
-   *
-   * Examples:
-   *
-   * LAN       :    0
-   * WLAN      :   40
-   * Bluetooth :   10
-   * Note: This numbers are just assumptions as an example, not measured
-   * or somehow determined
-   */
-  GNUNET_TRANSPORT_ATS_QUALITY_NET_LOSSRATE = 1032,
-
-  /**
-   * Throughput on network layer
-   *
-   * Unit: [kB/s]
-   *
-   * Examples:
-   *
-   * LAN   : 3400
-   * WLAN  : 1200
-   * Dialup:     4
-   *
-   */
-  GNUNET_TRANSPORT_ATS_QUALITY_NET_THROUGHPUT = 1033,
-
- /**
-  * Distance on network layer
-  *
-  * Unit: []
-  */
-  GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE = 1034,
-
-
-  /* Availability related values */
-  /* =========================== */
-
-  /**
-   * Is a peer reachable?
-   */
-  GNUNET_TRANSPORT_ATS_AVAILABILITY_REACHABLE = 2048,
-
-  /**
-   * Is there a connection established to a peer using this transport
-   */
-  GNUNET_TRANSPORT_ATS_AVAILABILITY_CONNECTED = 2049
-};
-
-
-/**
- * struct used to communicate the transport's properties like cost and
- * quality of service as well as high-level constraints on resource
- * consumption.
- *
- *                             +---+
- *  +-----------+ Constraints  |   |  Plugin properties +---------+
- *  | Highlevel |------------> |ATS| <------------------|Transport|
- *  | Component | ATS struct   |   |    ATS struct      | Plugin  |
- *  +-----------+              |   |                    +---------+
- *                             +---+
- *
- * This structure will be used by transport plugins to communicate
- * costs to ATS or by higher level components to tell ATS their
- * constraints.  Always a pair of (GNUNET_TRANSPORT_ATS_Property,
- * uint32_t value).  Value is always uint32_t, so all units used to
- * define costs have to be normalized to fit uint32_t.
- */
-struct GNUNET_TRANSPORT_ATS_Information
-{
-  /**
-   * ATS property type, in network byte order.
-   */
-  uint32_t type;
-
-  /**
-   * ATS property value, in network byte order.
-   */
-  uint32_t value;
-};
-
-
-
-/**
  * Function called by the transport for each received message.
  *
  * @param cls closure
@@ -407,7 +60,7 @@
                                                   GNUNET_MessageHeader *
                                                   message,
                                                   const struct
-                                                  
GNUNET_TRANSPORT_ATS_Information
+                                                  GNUNET_ATS_Information
                                                   * ats, uint32_t ats_count);
 
 
@@ -430,7 +83,7 @@
                                                 const struct 
GNUNET_PeerIdentity
                                                 * peer,
                                                 const struct
-                                                
GNUNET_TRANSPORT_ATS_Information
+                                                GNUNET_ATS_Information
                                                 * ats, uint32_t ats_count);
 
 /**

Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2011-10-17 07:55:41 UTC (rev 
17517)
@@ -2015,7 +2015,7 @@
 static int
 handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer,
                          const struct GNUNET_MessageHeader *message,
-                         const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                         const struct GNUNET_ATS_Information *atsi)
 {
   unsigned int own_pos;
   uint16_t size;
@@ -2205,7 +2205,7 @@
 static int
 handle_mesh_data_unicast (void *cls, const struct GNUNET_PeerIdentity *peer,
                           const struct GNUNET_MessageHeader *message,
-                          const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                          const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_MESH_Unicast *msg;
   struct MeshTunnel *t;
@@ -2270,7 +2270,7 @@
 static int
 handle_mesh_data_multicast (void *cls, const struct GNUNET_PeerIdentity *peer,
                             const struct GNUNET_MessageHeader *message,
-                            const struct GNUNET_TRANSPORT_ATS_Information 
*atsi)
+                            const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_MESH_Multicast *msg;
   struct GNUNET_PeerIdentity *id;
@@ -2364,7 +2364,7 @@
 static int
 handle_mesh_data_to_orig (void *cls, const struct GNUNET_PeerIdentity *peer,
                           const struct GNUNET_MessageHeader *message,
-                          const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                          const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_MESH_ToOrigin *msg;
   struct GNUNET_PeerIdentity id;
@@ -2455,7 +2455,7 @@
 static int
 handle_mesh_path_ack (void *cls, const struct GNUNET_PeerIdentity *peer,
                       const struct GNUNET_MessageHeader *message,
-                      const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                      const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_MESH_PathACK *msg;
   struct GNUNET_PeerIdentity id;
@@ -3612,7 +3612,7 @@
  */
 static void
 core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-              const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+              const struct GNUNET_ATS_Information *atsi)
 {
   struct MeshPeerInfo *peer_info;
   struct MeshPeerPath *path;

Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c  2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/mesh/mesh_api.c  2011-10-17 07:55:41 UTC (rev 17517)
@@ -113,7 +113,7 @@
   /* list of application-types */
   struct type_list_element *type_head, *type_tail;
 
-  struct GNUNET_TRANSPORT_ATS_Information atsi;
+  struct GNUNET_ATS_Information atsi;
   struct peer_list_element *next, *prev;
 
   /* The handle that sends the hellos to this peer */
@@ -254,7 +254,7 @@
  */
 static void
 core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-              const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+              const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_MESH_Handle *handle = cls;
 
@@ -272,7 +272,7 @@
 
   if (NULL != atsi)
     memcpy (&element->atsi, atsi,
-            sizeof (struct GNUNET_TRANSPORT_ATS_Information));
+            sizeof (struct GNUNET_ATS_Information));
 
   GNUNET_CONTAINER_DLL_insert_after (handle->connected_peers.head,
                                      handle->connected_peers.tail,
@@ -383,7 +383,7 @@
 static int
 receive_hello (void *cls, const struct GNUNET_PeerIdentity *other,
                const struct GNUNET_MessageHeader *message,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_MESH_Handle *handle = cls;
   uint16_t *num = (uint16_t *) (message + 1);
@@ -469,7 +469,7 @@
 static int
 core_receive (void *cls, const struct GNUNET_PeerIdentity *other,
               const struct GNUNET_MessageHeader *message,
-              const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+              const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_MESH_Handle *handle = cls;
   struct tunnel_message *tmessage = (struct tunnel_message *) message;

Modified: gnunet/src/mesh/mesh_api_new.c
===================================================================
--- gnunet/src/mesh/mesh_api_new.c      2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/mesh/mesh_api_new.c      2011-10-17 07:55:41 UTC (rev 17517)
@@ -749,7 +749,7 @@
                         const struct GNUNET_MESH_TunnelNotification *msg)
 {
   struct GNUNET_MESH_Tunnel *t;
-  struct GNUNET_TRANSPORT_ATS_Information atsi;
+  struct GNUNET_ATS_Information atsi;
   MESH_TunnelNumber tid;
 
   tid = ntohl (msg->tunnel_id);
@@ -821,7 +821,7 @@
 {
   struct GNUNET_MESH_Tunnel *t;
   struct GNUNET_MESH_Peer *p;
-  struct GNUNET_TRANSPORT_ATS_Information atsi;
+  struct GNUNET_ATS_Information atsi;
   GNUNET_PEER_Id id;
   uint16_t size;
 
@@ -928,7 +928,7 @@
     handler = &h->message_handlers[i];
     if (handler->type == type)
     {
-      struct GNUNET_TRANSPORT_ATS_Information atsi;
+      struct GNUNET_ATS_Information atsi;
 
       atsi.type = 0;
       atsi.value = 0;

Modified: gnunet/src/mesh/test_mesh_api.c
===================================================================
--- gnunet/src/mesh/test_mesh_api.c     2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/mesh/test_mesh_api.c     2011-10-17 07:55:41 UTC (rev 17517)
@@ -55,7 +55,7 @@
 callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
           const struct GNUNET_PeerIdentity *sender,
           const struct GNUNET_MessageHeader *message,
-          const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+          const struct GNUNET_ATS_Information *atsi)
 {
   return GNUNET_OK;
 }

Modified: gnunet/src/mesh/test_mesh_local_1.c
===================================================================
--- gnunet/src/mesh/test_mesh_local_1.c 2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/mesh/test_mesh_local_1.c 2011-10-17 07:55:41 UTC (rev 17517)
@@ -109,7 +109,7 @@
 data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
                const struct GNUNET_PeerIdentity *sender,
                const struct GNUNET_MessageHeader *message,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Data callback\n");
   GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
@@ -132,7 +132,7 @@
 static void *
 inbound_tunnel (void *cls, struct GNUNET_MESH_Tunnel *tunnel,
                 const struct GNUNET_PeerIdentity *initiator,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   unsigned int id = *(unsigned int *) cls;
 
@@ -180,7 +180,7 @@
  */
 static void
 peer_conected (void *cls, const struct GNUNET_PeerIdentity *peer,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: peer connected\n");
   GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &do_shutdown, NULL);

Modified: gnunet/src/mesh/test_mesh_local_2.c
===================================================================
--- gnunet/src/mesh/test_mesh_local_2.c 2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/mesh/test_mesh_local_2.c 2011-10-17 07:55:41 UTC (rev 17517)
@@ -109,7 +109,7 @@
 data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
                const struct GNUNET_PeerIdentity *sender,
                const struct GNUNET_MessageHeader *message,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Data callback\n");
   GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
@@ -132,7 +132,7 @@
 static void *
 inbound_tunnel (void *cls, struct GNUNET_MESH_Tunnel *tunnel,
                 const struct GNUNET_PeerIdentity *initiator,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   unsigned int id = *(unsigned int *) cls;
 
@@ -180,7 +180,7 @@
  */
 static void
 peer_conected (void *cls, const struct GNUNET_PeerIdentity *peer,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: peer connected\n");
   GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &do_shutdown, NULL);

Modified: gnunet/src/mesh/test_mesh_small.c
===================================================================
--- gnunet/src/mesh/test_mesh_small.c   2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/mesh/test_mesh_small.c   2011-10-17 07:55:41 UTC (rev 17517)
@@ -219,7 +219,7 @@
  */
 static void
 ch (void *cls, const struct GNUNET_PeerIdentity *peer,
-    const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+    const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "peer connected\n");
   return;

Modified: gnunet/src/mesh/test_mesh_small_unicast.c
===================================================================
--- gnunet/src/mesh/test_mesh_small_unicast.c   2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/mesh/test_mesh_small_unicast.c   2011-10-17 07:55:41 UTC (rev 
17517)
@@ -231,7 +231,7 @@
           void **tunnel_ctx,
           const struct GNUNET_PeerIdentity *sender,
           const struct GNUNET_MessageHeader *message,
-          const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+          const struct GNUNET_ATS_Information *atsi)
 {
   long client = (long) cls;
 
@@ -293,7 +293,7 @@
 incoming_tunnel (void *cls,
                  struct GNUNET_MESH_Tunnel * tunnel,
                  const struct GNUNET_PeerIdentity * initiator,
-                 const struct GNUNET_TRANSPORT_ATS_Information * atsi)
+                 const struct GNUNET_ATS_Information * atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "test: Incoming tunnel from %s\n",
@@ -353,7 +353,7 @@
  */
 static void
 ch (void *cls, const struct GNUNET_PeerIdentity *peer,
-    const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+    const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "test: peer %s connected\n",

Modified: gnunet/src/mesh/test_mesh_small_unicast_far.c
===================================================================
--- gnunet/src/mesh/test_mesh_small_unicast_far.c       2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/mesh/test_mesh_small_unicast_far.c       2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -213,7 +213,7 @@
 incoming_tunnel (void *cls,
                  struct GNUNET_MESH_Tunnel * tunnel,
                  const struct GNUNET_PeerIdentity * initiator,
-                 const struct GNUNET_TRANSPORT_ATS_Information * atsi)
+                 const struct GNUNET_ATS_Information * atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "test: Incoming tunnel from %s\n",
@@ -269,7 +269,7 @@
  */
 static void
 ch (void *cls, const struct GNUNET_PeerIdentity *peer,
-    const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+    const struct GNUNET_ATS_Information *atsi)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "test: peer %s connected\n",

Modified: gnunet/src/nse/gnunet-service-nse.c
===================================================================
--- gnunet/src/nse/gnunet-service-nse.c 2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/nse/gnunet-service-nse.c 2011-10-17 07:55:41 UTC (rev 17517)
@@ -943,7 +943,7 @@
 static int
 handle_p2p_size_estimate (void *cls, const struct GNUNET_PeerIdentity *peer,
                           const struct GNUNET_MessageHeader *message,
-                          const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                          const struct GNUNET_ATS_Information *atsi)
 {
   const struct GNUNET_NSE_FloodMessage *incoming_flood;
   struct GNUNET_TIME_Absolute ts;
@@ -1097,7 +1097,7 @@
  */
 static void
 handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                     const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                     const struct GNUNET_ATS_Information *atsi)
 {
   struct NSEPeerEntry *peer_entry;
 

Modified: gnunet/src/testing/test_testing_large_topology.c
===================================================================
--- gnunet/src/testing/test_testing_large_topology.c    2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/testing/test_testing_large_topology.c    2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -309,7 +309,7 @@
 static int
 process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
                const struct GNUNET_MessageHeader *message,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   char *dotOutFileNameFinished;
   FILE *dotOutFileFinished;
@@ -501,7 +501,7 @@
  */
 static void
 connect_notify_peers (void *cls, const struct GNUNET_PeerIdentity *peer,
-                      const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                      const struct GNUNET_ATS_Information *atsi)
 {
   struct TestMessageContext *pos = cls;
 

Modified: gnunet/src/testing/test_testing_topology.c
===================================================================
--- gnunet/src/testing/test_testing_topology.c  2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/testing/test_testing_topology.c  2011-10-17 07:55:41 UTC (rev 
17517)
@@ -348,7 +348,7 @@
 static int
 process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
                const struct GNUNET_MessageHeader *message,
-               const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+               const struct GNUNET_ATS_Information *atsi)
 {
   char *dotOutFileNameFinished;
   FILE *dotOutFileFinished;
@@ -540,7 +540,7 @@
  */
 static void
 connect_notify_peers (void *cls, const struct GNUNET_PeerIdentity *peer,
-                      const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                      const struct GNUNET_ATS_Information *atsi)
 {
   struct TestMessageContext *pos = cls;
 

Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c        2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/testing/testing.c        2011-10-17 07:55:41 UTC (rev 17517)
@@ -1886,7 +1886,7 @@
  */
 static void
 connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_TESTING_ConnectContext *ctx = cls;
 
@@ -2084,7 +2084,7 @@
  */
 static void
 core_initial_iteration (void *cls, const struct GNUNET_PeerIdentity *peer,
-                        const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                        const struct GNUNET_ATS_Information *atsi)
 {
   struct GNUNET_TESTING_ConnectContext *ctx = cls;
 

Modified: gnunet/src/testing/testing_group.c
===================================================================
--- gnunet/src/testing/testing_group.c  2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/testing/testing_group.c  2011-10-17 07:55:41 UTC (rev 17517)
@@ -3383,7 +3383,7 @@
  */
 static void
 core_connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
-                     const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                     const struct GNUNET_ATS_Information *atsi)
 {
   struct SendHelloContext *send_hello_context = cls;
   struct PeerConnection *connection;
@@ -4877,7 +4877,7 @@
  */
 static void
 internal_topology_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
-                            const struct GNUNET_TRANSPORT_ATS_Information 
*atsi)
+                            const struct GNUNET_ATS_Information *atsi)
 {
   struct CoreContext *core_ctx = cls;
   struct TopologyIterateContext *iter_ctx = core_ctx->iter_context;

Modified: gnunet/src/topology/gnunet-daemon-topology.c
===================================================================
--- gnunet/src/topology/gnunet-daemon-topology.c        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/topology/gnunet-daemon-topology.c        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -635,7 +635,7 @@
  */
 static void
 connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                const struct GNUNET_ATS_Information *atsi)
 {
   struct Peer *pos;
 
@@ -1106,7 +1106,7 @@
 static int
 handle_encrypted_hello (void *cls, const struct GNUNET_PeerIdentity *other,
                         const struct GNUNET_MessageHeader *message,
-                        const struct GNUNET_TRANSPORT_ATS_Information *atsi)
+                        const struct GNUNET_ATS_Information *atsi)
 {
   struct Peer *peer;
   struct GNUNET_PeerIdentity pid;

Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c     2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/transport/gnunet-service-transport.c     2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -89,7 +89,7 @@
  */
 static void
 transmit_our_hello (void *cls, const struct GNUNET_PeerIdentity *target,
-                    const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                    const struct GNUNET_ATS_Information *ats,
                     uint32_t ats_count,
                     const char * transport,
                     const void * addr,
@@ -161,7 +161,7 @@
 static struct GNUNET_TIME_Relative
 plugin_env_receive_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
                              const struct GNUNET_MessageHeader *message,
-                             const struct GNUNET_TRANSPORT_ATS_Information 
*ats,
+                             const struct GNUNET_ATS_Information *ats,
                              uint32_t ats_count, struct Session *session,
                              const char *sender_address,
                              uint16_t sender_address_len)
@@ -333,7 +333,7 @@
                             struct Session *session,
                             struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
                             struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
-                            const struct GNUNET_TRANSPORT_ATS_Information * 
ats,
+                            const struct GNUNET_ATS_Information * ats,
                             uint32_t ats_count)
 {
   uint32_t bw_in = ntohl (bandwidth_in.value__);
@@ -382,11 +382,11 @@
 static void
 neighbours_connect_notification (void *cls,
                                  const struct GNUNET_PeerIdentity *peer,
-                                 const struct GNUNET_TRANSPORT_ATS_Information
+                                 const struct GNUNET_ATS_Information
                                  *ats, uint32_t ats_count)
 {
   char buf[sizeof (struct ConnectInfoMessage) +
-           ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)];
+           ats_count * sizeof (struct GNUNET_ATS_Information)];
   struct ConnectInfoMessage *connect_msg = (struct ConnectInfoMessage *) buf;
 
   connect_msg->header.size = htons (sizeof (buf));
@@ -394,7 +394,7 @@
   connect_msg->ats_count = htonl (ats_count);
   connect_msg->id = *peer;
   memcpy (&connect_msg->ats, &connect_msg->ats,
-          ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information));
+          ats_count * sizeof (struct GNUNET_ATS_Information));
   GST_clients_broadcast (&connect_msg->header, GNUNET_NO);
 }
 

Modified: gnunet/src/transport/gnunet-service-transport_blacklist.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_blacklist.c   2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/gnunet-service-transport_blacklist.c   2011-10-17 
07:55:41 UTC (rev 17517)
@@ -556,7 +556,7 @@
  */
 static void
 test_connection_ok (void *cls, const struct GNUNET_PeerIdentity *neighbour,
-                    const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                    const struct GNUNET_ATS_Information *ats,
                     uint32_t ats_count,
                     const char * transport,
                     const void * addr,

Modified: gnunet/src/transport/gnunet-service-transport_clients.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_clients.c     2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/gnunet-service-transport_clients.c     2011-10-17 
07:55:41 UTC (rev 17517)
@@ -328,7 +328,7 @@
 static void
 notify_client_about_neighbour (void *cls,
                                const struct GNUNET_PeerIdentity *peer,
-                               const struct GNUNET_TRANSPORT_ATS_Information
+                               const struct GNUNET_ATS_Information
                                *ats, uint32_t ats_count,
                                const char * transport,
                                const void * addr,
@@ -340,7 +340,7 @@
 
   size =
       sizeof (struct ConnectInfoMessage) +
-      ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information);
+      ats_count * sizeof (struct GNUNET_ATS_Information);
   GNUNET_assert (size < GNUNET_SERVER_MAX_MESSAGE_SIZE);
   cim = GNUNET_malloc (size);
   cim->header.size = htons (size);
@@ -348,7 +348,7 @@
   cim->ats_count = htonl (ats_count);
   cim->id = *peer;
   memcpy (&cim->ats, ats,
-          ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information));
+          ats_count * sizeof (struct GNUNET_ATS_Information));
   unicast (tc, &cim->header, GNUNET_NO);
   GNUNET_free (cim);
 }
@@ -819,7 +819,7 @@
  */
 static void
 output_addresses (void *cls, const struct GNUNET_PeerIdentity *peer,
-                  const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                  const struct GNUNET_ATS_Information *ats,
                   uint32_t ats_count,
                   const char * transport,
                   const void * addr,

Modified: gnunet/src/transport/gnunet-service-transport_neighbours.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_neighbours.c  2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/gnunet-service-transport_neighbours.c  2011-10-17 
07:55:41 UTC (rev 17517)
@@ -193,7 +193,7 @@
   /**
    * Performance data for the peer.
    */
-  //struct GNUNET_TRANSPORT_ATS_Information *ats;
+  //struct GNUNET_ATS_Information *ats;
 
   /**
    * Are we currently trying to send a message? If so, which one?
@@ -631,7 +631,7 @@
 GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
                                   const char *plugin_name, const void *address,
                                   size_t address_len, struct Session *session,
-                                  const struct GNUNET_TRANSPORT_ATS_Information
+                                  const struct GNUNET_ATS_Information
                                   *ats, uint32_t ats_count)
 {
   struct NeighbourMapEntry *n;

Modified: gnunet/src/transport/gnunet-service-transport_neighbours.h
===================================================================
--- gnunet/src/transport/gnunet-service-transport_neighbours.h  2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/gnunet-service-transport_neighbours.h  2011-10-17 
07:55:41 UTC (rev 17517)
@@ -160,7 +160,7 @@
                                        const struct GNUNET_PeerIdentity *
                                        neighbour,
                                        const struct
-                                       GNUNET_TRANSPORT_ATS_Information * ats,
+                                       GNUNET_ATS_Information * ats,
                                        uint32_t ats_count,
                                        const char * transport,
                                        const void * addr,
@@ -205,7 +205,7 @@
 GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
                                   const char *plugin_name, const void *address,
                                   size_t address_len, struct Session *session,
-                                  const struct GNUNET_TRANSPORT_ATS_Information
+                                  const struct GNUNET_ATS_Information
                                   *ats, uint32_t ats_count);
 
 

Modified: gnunet/src/transport/gnunet-service-transport_validation.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_validation.c  2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/gnunet-service-transport_validation.c  2011-10-17 
07:55:41 UTC (rev 17517)
@@ -975,9 +975,9 @@
   /* validity achieved, remember it! */
   ve->valid_until = GNUNET_TIME_relative_to_absolute 
(HELLO_ADDRESS_EXPIRATION);
   {
-    struct GNUNET_TRANSPORT_ATS_Information ats;
+    struct GNUNET_ATS_Information ats;
 
-    ats.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY);
+    ats.type = htonl (GNUNET_ATS_QUALITY_NET_DELAY);
     ats.value = htonl ((uint32_t) GNUNET_TIME_absolute_get_duration 
(ve->send_time).rel_value);
     GNUNET_ATS_address_update (GST_ats, &ve->pid,
                               ve->transport_name,ve->addr, ve->addrlen, NULL,

Modified: gnunet/src/transport/gnunet-transport-connect-running-peers.c
===================================================================
--- gnunet/src/transport/gnunet-transport-connect-running-peers.c       
2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/gnunet-transport-connect-running-peers.c       
2011-10-17 07:55:41 UTC (rev 17517)
@@ -200,7 +200,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -219,7 +219,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n",

Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/transport/plugin_transport_http.c        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -257,13 +257,13 @@
 {
   struct Session *s = cls;
   struct Plugin *plugin = s->plugin;
-  struct GNUNET_TRANSPORT_ATS_Information distance;
+  struct GNUNET_ATS_Information distance;
   struct GNUNET_TIME_Relative delay;
 
-  distance.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
+  distance.type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
   distance.value = htonl (1);
 
-  delay = plugin->env->receive (plugin->env->cls, &s->target, message, (const 
struct GNUNET_TRANSPORT_ATS_Information*) &distance, 1, s, s->addr, s->addrlen);
+  delay = plugin->env->receive (plugin->env->cls, &s->target, message, (const 
struct GNUNET_ATS_Information*) &distance, 1, s, s->addr, s->addrlen);
   return delay;
 }
 

Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/transport/plugin_transport_tcp.c 2011-10-17 07:55:41 UTC (rev 
17517)
@@ -1661,7 +1661,7 @@
 {
   struct Session *session = cls;
   struct GNUNET_TIME_Relative delay;
-  struct GNUNET_TRANSPORT_ATS_Information ats;
+  struct GNUNET_ATS_Information ats;
 
   session->receive_delay_task = GNUNET_SCHEDULER_NO_TASK;
   delay =
@@ -1718,13 +1718,13 @@
   GNUNET_STATISTICS_update (plugin->env->stats,
                             gettext_noop ("# bytes received via TCP"),
                             ntohs (message->size), GNUNET_NO);
-  struct GNUNET_TRANSPORT_ATS_Information distance;
+  struct GNUNET_ATS_Information distance;
 
-  distance.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
+  distance.type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
   distance.value = htonl (1);
   delay =
       plugin->env->receive (plugin->env->cls, &session->target, message,
-                            (const struct GNUNET_TRANSPORT_ATS_Information *)
+                            (const struct GNUNET_ATS_Information *)
                             &distance, 1, session,
                             (GNUNET_YES ==
                              session->inbound) ? NULL : session->connect_addr,

Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/transport/plugin_transport_udp.c 2011-10-17 07:55:41 UTC (rev 
17517)
@@ -759,10 +759,10 @@
 {
   struct Plugin *plugin = cls;
   struct SourceInformation *si = client;
-  struct GNUNET_TRANSPORT_ATS_Information distance;
+  struct GNUNET_ATS_Information distance;
 
   /* setup ATS */
-  distance.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
+  distance.type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
   distance.value = htonl (1);
 
   LOG (GNUNET_ERROR_TYPE_DEBUG,

Modified: gnunet/src/transport/plugin_transport_unix.c
===================================================================
--- gnunet/src/transport/plugin_transport_unix.c        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/transport/plugin_transport_unix.c        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -719,9 +719,9 @@
                     const struct GNUNET_MessageHeader *currhdr,
                     const struct sockaddr_un *un, size_t fromlen)
 {
-  struct GNUNET_TRANSPORT_ATS_Information distance;
+  struct GNUNET_ATS_Information distance;
 
-  distance.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
+  distance.type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
   distance.value = htonl (UNIX_DIRECT_DISTANCE);
 
   GNUNET_assert (fromlen >= sizeof (struct sockaddr_un));
@@ -731,7 +731,7 @@
               un->sun_path);
 #endif
   plugin->env->receive (plugin->env->cls, sender, currhdr,
-                        (const struct GNUNET_TRANSPORT_ATS_Information *)
+                        (const struct GNUNET_ATS_Information *)
                         &distance, 1, NULL, un->sun_path,
                         strlen (un->sun_path) + 1);
 }

Modified: gnunet/src/transport/plugin_transport_wlan.c
===================================================================
--- gnunet/src/transport/plugin_transport_wlan.c        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/transport/plugin_transport_wlan.c        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -2334,9 +2334,9 @@
   struct Session *session = (struct Session *) client;
   struct Plugin *plugin = (struct Plugin *) cls;
 
-  struct GNUNET_TRANSPORT_ATS_Information distance;
+  struct GNUNET_ATS_Information distance;
 
-  distance.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
+  distance.type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
   distance.value = htonl (1);
 
 #if DEBUG_wlan
@@ -2349,7 +2349,7 @@
 #endif
 
   plugin->env->receive (plugin->env->cls, &(session->target), hdr,
-                        (const struct GNUNET_TRANSPORT_ATS_Information *)
+                        (const struct GNUNET_ATS_Information *)
                         &distance, 1, session,
                         (const char *) &session->mac->addr,
                         sizeof (session->mac->addr));

Modified: gnunet/src/transport/test_quota_compliance.c
===================================================================
--- gnunet/src/transport/test_quota_compliance.c        2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/transport/test_quota_compliance.c        2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -234,7 +234,7 @@
 static void
 notify_receive_new (void *cls, const struct GNUNET_PeerIdentity *peer,
                     const struct GNUNET_MessageHeader *message,
-                    const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                    const struct GNUNET_ATS_Information *ats,
                     uint32_t ats_count)
 {
   const struct TestMessage *hdr;
@@ -576,7 +576,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   connected++;

Modified: gnunet/src/transport/test_transport_api.c
===================================================================
--- gnunet/src/transport/test_transport_api.c   2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/transport/test_transport_api.c   2011-10-17 07:55:41 UTC (rev 
17517)
@@ -140,7 +140,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   struct PeerContext * p = cls;
@@ -233,7 +233,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   static int c;

Modified: gnunet/src/transport/test_transport_api_disconnect.c
===================================================================
--- gnunet/src/transport/test_transport_api_disconnect.c        2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/test_transport_api_disconnect.c        2011-10-17 
07:55:41 UTC (rev 17517)
@@ -189,7 +189,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -233,7 +233,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n",

Modified: gnunet/src/transport/test_transport_api_limited_sockets.c
===================================================================
--- gnunet/src/transport/test_transport_api_limited_sockets.c   2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/test_transport_api_limited_sockets.c   2011-10-17 
07:55:41 UTC (rev 17517)
@@ -138,7 +138,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -185,7 +185,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n",

Modified: gnunet/src/transport/test_transport_api_reliability.c
===================================================================
--- gnunet/src/transport/test_transport_api_reliability.c       2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/test_transport_api_reliability.c       2011-10-17 
07:55:41 UTC (rev 17517)
@@ -201,7 +201,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   static int n;
@@ -356,7 +356,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
 

Modified: gnunet/src/transport/test_transport_api_timeout.c
===================================================================
--- gnunet/src/transport/test_transport_api_timeout.c   2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/transport/test_transport_api_timeout.c   2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -161,7 +161,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -171,7 +171,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n",

Modified: gnunet/src/transport/test_transport_api_unreliability.c
===================================================================
--- gnunet/src/transport/test_transport_api_unreliability.c     2011-10-17 
07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/test_transport_api_unreliability.c     2011-10-17 
07:55:41 UTC (rev 17517)
@@ -269,7 +269,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   static int n;
@@ -413,7 +413,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
 

Modified: gnunet/src/transport/test_transport_api_unreliability_constant.c
===================================================================
--- gnunet/src/transport/test_transport_api_unreliability_constant.c    
2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/test_transport_api_unreliability_constant.c    
2011-10-17 07:55:41 UTC (rev 17517)
@@ -217,7 +217,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   static int n;
@@ -373,7 +373,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
 

Modified: gnunet/src/transport/test_transport_startonly.c
===================================================================
--- gnunet/src/transport/test_transport_startonly.c     2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/transport/test_transport_startonly.c     2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -92,7 +92,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%s' connected \n",
@@ -110,7 +110,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving\n");

Modified: gnunet/src/transport/test_transport_testing.c
===================================================================
--- gnunet/src/transport/test_transport_testing.c       2011-10-17 07:12:24 UTC 
(rev 17516)
+++ gnunet/src/transport/test_transport_testing.c       2011-10-17 07:55:41 UTC 
(rev 17517)
@@ -104,7 +104,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%s' connected \n",
@@ -122,7 +122,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving\n");

Modified: gnunet/src/transport/transport-testing.c
===================================================================
--- gnunet/src/transport/transport-testing.c    2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/transport/transport-testing.c    2011-10-17 07:55:41 UTC (rev 
17517)
@@ -86,7 +86,7 @@
 
 static void
 notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   struct PeerContext *p = cls;
@@ -159,7 +159,7 @@
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
-                const struct GNUNET_TRANSPORT_ATS_Information *ats,
+                const struct GNUNET_ATS_Information *ats,
                 uint32_t ats_count)
 {
   struct PeerContext *p = cls;

Modified: gnunet/src/transport/transport.h
===================================================================
--- gnunet/src/transport/transport.h    2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/transport/transport.h    2011-10-17 07:55:41 UTC (rev 17517)
@@ -114,7 +114,7 @@
    * First of the ATS information blocks (we must have at least
    * one due to the 0-termination requirement).
    */
-  struct GNUNET_TRANSPORT_ATS_Information ats;
+  struct GNUNET_ATS_Information ats;
 };
 
 
@@ -224,7 +224,7 @@
    * First of the ATS information blocks (we must have at least
    * one due to the 0-termination requirement).
    */
-  struct GNUNET_TRANSPORT_ATS_Information ats;
+  struct GNUNET_ATS_Information ats;
 };
 
 

Modified: gnunet/src/transport/transport_api.c
===================================================================
--- gnunet/src/transport/transport_api.c        2011-10-17 07:12:24 UTC (rev 
17516)
+++ gnunet/src/transport/transport_api.c        2011-10-17 07:55:41 UTC (rev 
17517)
@@ -466,7 +466,7 @@
     ats_count = ntohl (cim->ats_count);
     if (size !=
         sizeof (struct ConnectInfoMessage) +
-        ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information))
+        ats_count * sizeof (struct GNUNET_ATS_Information))
     {
       GNUNET_break (0);
       break;
@@ -548,7 +548,7 @@
     imm = (const struct GNUNET_MessageHeader *) &((&(im->ats))[ats_count + 1]);
 
     if (ntohs (imm->size) + sizeof (struct InboundMessage) +
-        ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) != size)
+        ats_count * sizeof (struct GNUNET_ATS_Information) != size)
     {
       GNUNET_break (0);
       break;

Modified: gnunet/src/vpn/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-exit.c 2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/vpn/gnunet-daemon-exit.c 2011-10-17 07:55:41 UTC (rev 17517)
@@ -1025,7 +1025,7 @@
                      const struct GNUNET_PeerIdentity *sender
                      __attribute__ ((unused)),
                      const struct GNUNET_MessageHeader *message,
-                     const struct GNUNET_TRANSPORT_ATS_Information *atsi
+                     const struct GNUNET_ATS_Information *atsi
                      __attribute__ ((unused)))
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received TCP-Packet\n");
@@ -1133,7 +1133,7 @@
                     const struct GNUNET_PeerIdentity *sender
                     __attribute__ ((unused)),
                     const struct GNUNET_MessageHeader *message,
-                    const struct GNUNET_TRANSPORT_ATS_Information *atsi
+                    const struct GNUNET_ATS_Information *atsi
                     __attribute__ ((unused)))
 {
   GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1);
@@ -1209,7 +1209,7 @@
                     const struct GNUNET_PeerIdentity *sender
                     __attribute__ ((unused)),
                     const struct GNUNET_MessageHeader *message,
-                    const struct GNUNET_TRANSPORT_ATS_Information *atsi
+                    const struct GNUNET_ATS_Information *atsi
                     __attribute__ ((unused)))
 {
   GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1);
@@ -1289,7 +1289,7 @@
                      const struct GNUNET_PeerIdentity *sender
                      __attribute__ ((unused)),
                      const struct GNUNET_MessageHeader *message,
-                     const struct GNUNET_TRANSPORT_ATS_Information *atsi
+                     const struct GNUNET_ATS_Information *atsi
                      __attribute__ ((unused)))
 {
   GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1);

Modified: gnunet/src/vpn/gnunet-daemon-vpn.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn.c  2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/vpn/gnunet-daemon-vpn.c  2011-10-17 07:55:41 UTC (rev 17517)
@@ -340,7 +340,7 @@
 
 void
 send_pkt_to_peer (void *cls, const struct GNUNET_PeerIdentity *peer,
-                  const struct GNUNET_TRANSPORT_ATS_Information *atsi
+                  const struct GNUNET_ATS_Information *atsi
                   __attribute__ ((unused)))
 {
   /* peer == NULL means that all peers in this request are connected */
@@ -871,7 +871,7 @@
                   const struct GNUNET_PeerIdentity *sender
                   __attribute__ ((unused)),
                   const struct GNUNET_MessageHeader *message,
-                  const struct GNUNET_TRANSPORT_ATS_Information *atsi
+                  const struct GNUNET_ATS_Information *atsi
                   __attribute__ ((unused)))
 {
   GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1);
@@ -1050,7 +1050,7 @@
                   const struct GNUNET_PeerIdentity *sender
                   __attribute__ ((unused)),
                   const struct GNUNET_MessageHeader *message,
-                  const struct GNUNET_TRANSPORT_ATS_Information *atsi
+                  const struct GNUNET_ATS_Information *atsi
                   __attribute__ ((unused)))
 {
   GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1);

Modified: gnunet/src/vpn/gnunet-daemon-vpn.h
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn.h  2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/vpn/gnunet-daemon-vpn.h  2011-10-17 07:55:41 UTC (rev 17517)
@@ -56,7 +56,7 @@
 
 void
 send_pkt_to_peer (void *cls, const struct GNUNET_PeerIdentity *peer,
-                  const struct GNUNET_TRANSPORT_ATS_Information *atsi);
+                  const struct GNUNET_ATS_Information *atsi);
 
 /**
  * The configuration to use

Modified: gnunet/src/vpn/gnunet-service-dns.c
===================================================================
--- gnunet/src/vpn/gnunet-service-dns.c 2011-10-17 07:12:24 UTC (rev 17516)
+++ gnunet/src/vpn/gnunet-service-dns.c 2011-10-17 07:55:41 UTC (rev 17517)
@@ -324,7 +324,7 @@
 
 void
 mesh_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
-              const struct GNUNET_TRANSPORT_ATS_Information *atsi
+              const struct GNUNET_ATS_Information *atsi
               __attribute__ ((unused)))
 {
   if (NULL == peer)
@@ -394,7 +394,7 @@
                     const struct GNUNET_PeerIdentity *sender
                     __attribute__ ((unused)),
                     const struct GNUNET_MessageHeader *message,
-                    const struct GNUNET_TRANSPORT_ATS_Information *atsi
+                    const struct GNUNET_ATS_Information *atsi
                     __attribute__ ((unused)))
 {
   struct dns_pkt *dns = (struct dns_pkt *) (message + 1);
@@ -428,7 +428,7 @@
                      __attribute__ ((unused)),
                      const struct GNUNET_PeerIdentity *sender,
                      const struct GNUNET_MessageHeader *message,
-                     const struct GNUNET_TRANSPORT_ATS_Information *atsi
+                     const struct GNUNET_ATS_Information *atsi
                      __attribute__ ((unused)))
 {
   /* TODo: size check */




reply via email to

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