aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-17 07:55:41 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-17 07:55:41 +0000
commita2d9b4434076254811584a4a0ffa8881d0903db8 (patch)
tree4f5a2ee5daaabdedb45aa5e7e1d03e3c0f28ed0e /src/core
parent4b5e8dcb8d6f0d29fffb823e600c73be404d9b39 (diff)
downloadgnunet-a2d9b4434076254811584a4a0ffa8881d0903db8.tar.gz
gnunet-a2d9b4434076254811584a4a0ffa8881d0903db8.zip
move GNUNET_TRANSPORT_ATS_ to GNUNET_ATS_
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.h6
-rw-r--r--src/core/core_api.c16
-rw-r--r--src/core/core_api_iterate_peers.c4
-rw-r--r--src/core/gnunet-core-list-connections.c2
-rw-r--r--src/core/gnunet-service-core.c66
-rw-r--r--src/core/gnunet-service-core_clients.c22
-rw-r--r--src/core/gnunet-service-core_clients.h6
-rw-r--r--src/core/gnunet-service-core_kx.c4
-rw-r--r--src/core/gnunet-service-core_kx.h2
-rw-r--r--src/core/gnunet-service-core_neighbours.c4
-rw-r--r--src/core/gnunet-service-core_sessions.c4
-rw-r--r--src/core/test_core_api.c8
-rw-r--r--src/core/test_core_api_reliability.c8
-rw-r--r--src/core/test_core_api_send_to_self.c4
-rw-r--r--src/core/test_core_api_start_only.c6
-rw-r--r--src/core/test_core_quota_compliance.c8
16 files changed, 85 insertions, 85 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 8c97f6177..5c0738ee4 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -125,7 +125,7 @@ struct ConnectNotifyMessage
125 * First of the ATS information blocks (we must have at least 125 * First of the ATS information blocks (we must have at least
126 * one due to the 0-termination requirement). 126 * one due to the 0-termination requirement).
127 */ 127 */
128 struct GNUNET_TRANSPORT_ATS_Information ats; 128 struct GNUNET_ATS_Information ats;
129 129
130}; 130};
131 131
@@ -171,7 +171,7 @@ struct PeerStatusNotifyMessage
171 * First of the ATS information blocks (we must have at least 171 * First of the ATS information blocks (we must have at least
172 * one due to the 0-termination requirement). 172 * one due to the 0-termination requirement).
173 */ 173 */
174 struct GNUNET_TRANSPORT_ATS_Information ats; 174 struct GNUNET_ATS_Information ats;
175 175
176}; 176};
177 177
@@ -232,7 +232,7 @@ struct NotifyTrafficMessage
232 * First of the ATS information blocks (we must have at least 232 * First of the ATS information blocks (we must have at least
233 * one due to the 0-termination requirement). 233 * one due to the 0-termination requirement).
234 */ 234 */
235 struct GNUNET_TRANSPORT_ATS_Information ats; 235 struct GNUNET_ATS_Information ats;
236 236
237}; 237};
238 238
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 57d01f6bb..0de64869b 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -864,8 +864,8 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
864 ats_count = ntohl (cnm->ats_count); 864 ats_count = ntohl (cnm->ats_count);
865 if ((msize != 865 if ((msize !=
866 sizeof (struct ConnectNotifyMessage) + 866 sizeof (struct ConnectNotifyMessage) +
867 ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)) || 867 ats_count * sizeof (struct GNUNET_ATS_Information)) ||
868 (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR != 868 (GNUNET_ATS_ARRAY_TERMINATOR !=
869 ntohl ((&cnm->ats)[ats_count].type))) 869 ntohl ((&cnm->ats)[ats_count].type)))
870 { 870 {
871 GNUNET_break (0); 871 GNUNET_break (0);
@@ -945,9 +945,9 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
945 ats_count = ntohl (ntm->ats_count); 945 ats_count = ntohl (ntm->ats_count);
946 if ((msize < 946 if ((msize <
947 sizeof (struct NotifyTrafficMessage) + 947 sizeof (struct NotifyTrafficMessage) +
948 ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) + 948 ats_count * sizeof (struct GNUNET_ATS_Information) +
949 sizeof (struct GNUNET_MessageHeader)) || 949 sizeof (struct GNUNET_MessageHeader)) ||
950 (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR != 950 (GNUNET_ATS_ARRAY_TERMINATOR !=
951 ntohl ((&ntm->ats)[ats_count].type))) 951 ntohl ((&ntm->ats)[ats_count].type)))
952 { 952 {
953 GNUNET_break (0); 953 GNUNET_break (0);
@@ -970,7 +970,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
970 if ((GNUNET_NO == h->inbound_hdr_only) && 970 if ((GNUNET_NO == h->inbound_hdr_only) &&
971 (msize != 971 (msize !=
972 ntohs (em->size) + sizeof (struct NotifyTrafficMessage) + 972 ntohs (em->size) + sizeof (struct NotifyTrafficMessage) +
973 +ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information))) 973 +ats_count * sizeof (struct GNUNET_ATS_Information)))
974 { 974 {
975 GNUNET_break (0); 975 GNUNET_break (0);
976 reconnect_later (h); 976 reconnect_later (h);
@@ -1014,9 +1014,9 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
1014 ats_count = ntohl (ntm->ats_count); 1014 ats_count = ntohl (ntm->ats_count);
1015 if ((msize < 1015 if ((msize <
1016 sizeof (struct NotifyTrafficMessage) + 1016 sizeof (struct NotifyTrafficMessage) +
1017 ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) + 1017 ats_count * sizeof (struct GNUNET_ATS_Information) +
1018 sizeof (struct GNUNET_MessageHeader)) || 1018 sizeof (struct GNUNET_MessageHeader)) ||
1019 (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR != 1019 (GNUNET_ATS_ARRAY_TERMINATOR !=
1020 ntohl ((&ntm->ats)[ats_count].type))) 1020 ntohl ((&ntm->ats)[ats_count].type)))
1021 { 1021 {
1022 GNUNET_break (0); 1022 GNUNET_break (0);
@@ -1039,7 +1039,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
1039 if ((GNUNET_NO == h->outbound_hdr_only) && 1039 if ((GNUNET_NO == h->outbound_hdr_only) &&
1040 (msize != 1040 (msize !=
1041 ntohs (em->size) + sizeof (struct NotifyTrafficMessage) + 1041 ntohs (em->size) + sizeof (struct NotifyTrafficMessage) +
1042 ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information))) 1042 ats_count * sizeof (struct GNUNET_ATS_Information)))
1043 { 1043 {
1044 GNUNET_break (0); 1044 GNUNET_break (0);
1045 reconnect_later (h); 1045 reconnect_later (h);
diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c
index 0cc28e538..ed9ea175e 100644
--- a/src/core/core_api_iterate_peers.c
+++ b/src/core/core_api_iterate_peers.c
@@ -101,8 +101,8 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
101 ats_count = ntohl (connect_message->ats_count); 101 ats_count = ntohl (connect_message->ats_count);
102 if ((msize != 102 if ((msize !=
103 sizeof (struct ConnectNotifyMessage) + 103 sizeof (struct ConnectNotifyMessage) +
104 ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)) || 104 ats_count * sizeof (struct GNUNET_ATS_Information)) ||
105 (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR != 105 (GNUNET_ATS_ARRAY_TERMINATOR !=
106 ntohl ((&connect_message->ats)[ats_count].type))) 106 ntohl ((&connect_message->ats)[ats_count].type)))
107 { 107 {
108 GNUNET_break (0); 108 GNUNET_break (0);
diff --git a/src/core/gnunet-core-list-connections.c b/src/core/gnunet-core-list-connections.c
index fe037f73b..ae7feb915 100644
--- a/src/core/gnunet-core-list-connections.c
+++ b/src/core/gnunet-core-list-connections.c
@@ -123,7 +123,7 @@ process_resolved_address (void *cls, const char *address)
123 */ 123 */
124static void 124static void
125connected_peer_callback (void *cls, const struct GNUNET_PeerIdentity *peer, 125connected_peer_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
126 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 126 const struct GNUNET_ATS_Information *atsi)
127{ 127{
128 struct PrintContext *pc; 128 struct PrintContext *pc;
129 129
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 5d262fdc6..010c42a09 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -490,7 +490,7 @@ struct Neighbour
490 /** 490 /**
491 * Performance data for the peer. 491 * Performance data for the peer.
492 */ 492 */
493 struct GNUNET_TRANSPORT_ATS_Information *ats; 493 struct GNUNET_ATS_Information *ats;
494 494
495 /** 495 /**
496 * Identity of the neighbour. 496 * Identity of the neighbour.
@@ -957,7 +957,7 @@ handle_peer_status_change (struct Neighbour *n)
957{ 957{
958 struct PeerStatusNotifyMessage *psnm; 958 struct PeerStatusNotifyMessage *psnm;
959 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; 959 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
960 struct GNUNET_TRANSPORT_ATS_Information *ats; 960 struct GNUNET_ATS_Information *ats;
961 size_t size; 961 size_t size;
962 962
963 if ((!n->is_connected) || (n->status != PEER_STATE_KEY_CONFIRMED)) 963 if ((!n->is_connected) || (n->status != PEER_STATE_KEY_CONFIRMED))
@@ -968,7 +968,7 @@ handle_peer_status_change (struct Neighbour *n)
968#endif 968#endif
969 size = 969 size =
970 sizeof (struct PeerStatusNotifyMessage) + 970 sizeof (struct PeerStatusNotifyMessage) +
971 n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 971 n->ats_count * sizeof (struct GNUNET_ATS_Information);
972 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 972 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
973 { 973 {
974 GNUNET_break (0); 974 GNUNET_break (0);
@@ -976,7 +976,7 @@ handle_peer_status_change (struct Neighbour *n)
976 GNUNET_array_grow (n->ats, n->ats_count, 0); 976 GNUNET_array_grow (n->ats, n->ats_count, 0);
977 size = 977 size =
978 sizeof (struct PeerStatusNotifyMessage) + 978 sizeof (struct PeerStatusNotifyMessage) +
979 n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 979 n->ats_count * sizeof (struct GNUNET_ATS_Information);
980 } 980 }
981 psnm = (struct PeerStatusNotifyMessage *) buf; 981 psnm = (struct PeerStatusNotifyMessage *) buf;
982 psnm->header.size = htons (size); 982 psnm->header.size = htons (size);
@@ -988,7 +988,7 @@ handle_peer_status_change (struct Neighbour *n)
988 psnm->ats_count = htonl (n->ats_count); 988 psnm->ats_count = htonl (n->ats_count);
989 ats = &psnm->ats; 989 ats = &psnm->ats;
990 memcpy (ats, n->ats, 990 memcpy (ats, n->ats,
991 n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)); 991 n->ats_count * sizeof (struct GNUNET_ATS_Information));
992 ats[n->ats_count].type = htonl (0); 992 ats[n->ats_count].type = htonl (0);
993 ats[n->ats_count].value = htonl (0); 993 ats[n->ats_count].value = htonl (0);
994 send_to_all_clients (&psnm->header, GNUNET_YES, 994 send_to_all_clients (&psnm->header, GNUNET_YES,
@@ -1245,12 +1245,12 @@ notify_client_about_neighbour (void *cls, const GNUNET_HashCode * key,
1245 struct Neighbour *n = value; 1245 struct Neighbour *n = value;
1246 size_t size; 1246 size_t size;
1247 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; 1247 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
1248 struct GNUNET_TRANSPORT_ATS_Information *ats; 1248 struct GNUNET_ATS_Information *ats;
1249 struct ConnectNotifyMessage *cnm; 1249 struct ConnectNotifyMessage *cnm;
1250 1250
1251 size = 1251 size =
1252 sizeof (struct ConnectNotifyMessage) + 1252 sizeof (struct ConnectNotifyMessage) +
1253 (n->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 1253 (n->ats_count) * sizeof (struct GNUNET_ATS_Information);
1254 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 1254 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
1255 { 1255 {
1256 GNUNET_break (0); 1256 GNUNET_break (0);
@@ -1258,7 +1258,7 @@ notify_client_about_neighbour (void *cls, const GNUNET_HashCode * key,
1258 GNUNET_array_grow (n->ats, n->ats_count, 0); 1258 GNUNET_array_grow (n->ats, n->ats_count, 0);
1259 size = 1259 size =
1260 sizeof (struct ConnectNotifyMessage) + 1260 sizeof (struct ConnectNotifyMessage) +
1261 (n->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 1261 (n->ats_count) * sizeof (struct GNUNET_ATS_Information);
1262 } 1262 }
1263 cnm = (struct ConnectNotifyMessage *) buf; 1263 cnm = (struct ConnectNotifyMessage *) buf;
1264 cnm->header.size = htons (size); 1264 cnm->header.size = htons (size);
@@ -1266,8 +1266,8 @@ notify_client_about_neighbour (void *cls, const GNUNET_HashCode * key,
1266 cnm->ats_count = htonl (n->ats_count); 1266 cnm->ats_count = htonl (n->ats_count);
1267 ats = &cnm->ats; 1267 ats = &cnm->ats;
1268 memcpy (ats, n->ats, 1268 memcpy (ats, n->ats,
1269 sizeof (struct GNUNET_TRANSPORT_ATS_Information) * n->ats_count); 1269 sizeof (struct GNUNET_ATS_Information) * n->ats_count);
1270 ats[n->ats_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); 1270 ats[n->ats_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
1271 ats[n->ats_count].value = htonl (0); 1271 ats[n->ats_count].value = htonl (0);
1272 if (n->status == PEER_STATE_KEY_CONFIRMED) 1272 if (n->status == PEER_STATE_KEY_CONFIRMED)
1273 { 1273 {
@@ -1464,7 +1464,7 @@ queue_connect_message (void *cls, const GNUNET_HashCode * key, void *value)
1464 struct GNUNET_SERVER_TransmitContext *tc = cls; 1464 struct GNUNET_SERVER_TransmitContext *tc = cls;
1465 struct Neighbour *n = value; 1465 struct Neighbour *n = value;
1466 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; 1466 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
1467 struct GNUNET_TRANSPORT_ATS_Information *ats; 1467 struct GNUNET_ATS_Information *ats;
1468 size_t size; 1468 size_t size;
1469 struct ConnectNotifyMessage *cnm; 1469 struct ConnectNotifyMessage *cnm;
1470 1470
@@ -1473,7 +1473,7 @@ queue_connect_message (void *cls, const GNUNET_HashCode * key, void *value)
1473 return GNUNET_OK; 1473 return GNUNET_OK;
1474 size = 1474 size =
1475 sizeof (struct ConnectNotifyMessage) + 1475 sizeof (struct ConnectNotifyMessage) +
1476 (n->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 1476 (n->ats_count) * sizeof (struct GNUNET_ATS_Information);
1477 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 1477 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
1478 { 1478 {
1479 GNUNET_break (0); 1479 GNUNET_break (0);
@@ -1481,7 +1481,7 @@ queue_connect_message (void *cls, const GNUNET_HashCode * key, void *value)
1481 GNUNET_array_grow (n->ats, n->ats_count, 0); 1481 GNUNET_array_grow (n->ats, n->ats_count, 0);
1482 size = 1482 size =
1483 sizeof (struct PeerStatusNotifyMessage) + 1483 sizeof (struct PeerStatusNotifyMessage) +
1484 n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 1484 n->ats_count * sizeof (struct GNUNET_ATS_Information);
1485 } 1485 }
1486 cnm = (struct ConnectNotifyMessage *) buf; 1486 cnm = (struct ConnectNotifyMessage *) buf;
1487 cnm->header.size = htons (size); 1487 cnm->header.size = htons (size);
@@ -1489,8 +1489,8 @@ queue_connect_message (void *cls, const GNUNET_HashCode * key, void *value)
1489 cnm->ats_count = htonl (n->ats_count); 1489 cnm->ats_count = htonl (n->ats_count);
1490 ats = &cnm->ats; 1490 ats = &cnm->ats;
1491 memcpy (ats, n->ats, 1491 memcpy (ats, n->ats,
1492 n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)); 1492 n->ats_count * sizeof (struct GNUNET_ATS_Information));
1493 ats[n->ats_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); 1493 ats[n->ats_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
1494 ats[n->ats_count].value = htonl (0); 1494 ats[n->ats_count].value = htonl (0);
1495#if DEBUG_CORE_CLIENT 1495#if DEBUG_CORE_CLIENT
1496 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message to client.\n", 1496 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message to client.\n",
@@ -3089,7 +3089,7 @@ trigger_processing:
3089 */ 3089 */
3090static void 3090static void
3091handle_set_key (struct Neighbour *n, const struct SetKeyMessage *m, 3091handle_set_key (struct Neighbour *n, const struct SetKeyMessage *m,
3092 const struct GNUNET_TRANSPORT_ATS_Information *ats, 3092 const struct GNUNET_ATS_Information *ats,
3093 uint32_t ats_count); 3093 uint32_t ats_count);
3094 3094
3095 3095
@@ -3166,7 +3166,7 @@ process_hello_retry_handle_set_key (void *cls,
3166 */ 3166 */
3167static void 3167static void
3168update_neighbour_performance (struct Neighbour *n, 3168update_neighbour_performance (struct Neighbour *n,
3169 const struct GNUNET_TRANSPORT_ATS_Information 3169 const struct GNUNET_ATS_Information
3170 *ats, uint32_t ats_count) 3170 *ats, uint32_t ats_count)
3171{ 3171{
3172 uint32_t i; 3172 uint32_t i;
@@ -3203,7 +3203,7 @@ update_neighbour_performance (struct Neighbour *n,
3203 */ 3203 */
3204static void 3204static void
3205handle_ping (struct Neighbour *n, const struct PingMessage *m, 3205handle_ping (struct Neighbour *n, const struct PingMessage *m,
3206 const struct GNUNET_TRANSPORT_ATS_Information *ats, 3206 const struct GNUNET_ATS_Information *ats,
3207 uint32_t ats_count) 3207 uint32_t ats_count)
3208{ 3208{
3209 struct PingMessage t; 3209 struct PingMessage t;
@@ -3295,14 +3295,14 @@ handle_ping (struct Neighbour *n, const struct PingMessage *m,
3295 */ 3295 */
3296static void 3296static void
3297handle_pong (struct Neighbour *n, const struct PongMessage *m, 3297handle_pong (struct Neighbour *n, const struct PongMessage *m,
3298 const struct GNUNET_TRANSPORT_ATS_Information *ats, 3298 const struct GNUNET_ATS_Information *ats,
3299 uint32_t ats_count) 3299 uint32_t ats_count)
3300{ 3300{
3301 struct PongMessage t; 3301 struct PongMessage t;
3302 struct ConnectNotifyMessage *cnm; 3302 struct ConnectNotifyMessage *cnm;
3303 struct GNUNET_CRYPTO_AesInitializationVector iv; 3303 struct GNUNET_CRYPTO_AesInitializationVector iv;
3304 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; 3304 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
3305 struct GNUNET_TRANSPORT_ATS_Information *mats; 3305 struct GNUNET_ATS_Information *mats;
3306 size_t size; 3306 size_t size;
3307 3307
3308#if DEBUG_HANDSHAKE 3308#if DEBUG_HANDSHAKE
@@ -3393,7 +3393,7 @@ handle_pong (struct Neighbour *n, const struct PongMessage *m,
3393 update_neighbour_performance (n, ats, ats_count); 3393 update_neighbour_performance (n, ats, ats_count);
3394 size = 3394 size =
3395 sizeof (struct ConnectNotifyMessage) + 3395 sizeof (struct ConnectNotifyMessage) +
3396 (n->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 3396 (n->ats_count) * sizeof (struct GNUNET_ATS_Information);
3397 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 3397 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
3398 { 3398 {
3399 GNUNET_break (0); 3399 GNUNET_break (0);
@@ -3401,7 +3401,7 @@ handle_pong (struct Neighbour *n, const struct PongMessage *m,
3401 GNUNET_array_grow (n->ats, n->ats_count, 0); 3401 GNUNET_array_grow (n->ats, n->ats_count, 0);
3402 size = 3402 size =
3403 sizeof (struct PeerStatusNotifyMessage) + 3403 sizeof (struct PeerStatusNotifyMessage) +
3404 n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 3404 n->ats_count * sizeof (struct GNUNET_ATS_Information);
3405 } 3405 }
3406 cnm = (struct ConnectNotifyMessage *) buf; 3406 cnm = (struct ConnectNotifyMessage *) buf;
3407 cnm->header.size = htons (size); 3407 cnm->header.size = htons (size);
@@ -3410,8 +3410,8 @@ handle_pong (struct Neighbour *n, const struct PongMessage *m,
3410 cnm->peer = n->peer; 3410 cnm->peer = n->peer;
3411 mats = &cnm->ats; 3411 mats = &cnm->ats;
3412 memcpy (mats, n->ats, 3412 memcpy (mats, n->ats,
3413 n->ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)); 3413 n->ats_count * sizeof (struct GNUNET_ATS_Information));
3414 mats[n->ats_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); 3414 mats[n->ats_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
3415 mats[n->ats_count].value = htonl (0); 3415 mats[n->ats_count].value = htonl (0);
3416 send_to_all_clients (&cnm->header, GNUNET_NO, 3416 send_to_all_clients (&cnm->header, GNUNET_NO,
3417 GNUNET_CORE_OPTION_SEND_CONNECT); 3417 GNUNET_CORE_OPTION_SEND_CONNECT);
@@ -3445,7 +3445,7 @@ handle_pong (struct Neighbour *n, const struct PongMessage *m,
3445 */ 3445 */
3446static void 3446static void
3447handle_set_key (struct Neighbour *n, const struct SetKeyMessage *m, 3447handle_set_key (struct Neighbour *n, const struct SetKeyMessage *m,
3448 const struct GNUNET_TRANSPORT_ATS_Information *ats, 3448 const struct GNUNET_ATS_Information *ats,
3449 uint32_t ats_count) 3449 uint32_t ats_count)
3450{ 3450{
3451 struct SetKeyMessage *m_cpy; 3451 struct SetKeyMessage *m_cpy;
@@ -3619,10 +3619,10 @@ send_p2p_message_to_client (struct Neighbour *sender, struct Client *client,
3619{ 3619{
3620 size_t size = 3620 size_t size =
3621 msize + sizeof (struct NotifyTrafficMessage) + 3621 msize + sizeof (struct NotifyTrafficMessage) +
3622 (sender->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 3622 (sender->ats_count) * sizeof (struct GNUNET_ATS_Information);
3623 char buf[size]; 3623 char buf[size];
3624 struct NotifyTrafficMessage *ntm; 3624 struct NotifyTrafficMessage *ntm;
3625 struct GNUNET_TRANSPORT_ATS_Information *ats; 3625 struct GNUNET_ATS_Information *ats;
3626 3626
3627 GNUNET_assert (GNUNET_YES == sender->is_connected); 3627 GNUNET_assert (GNUNET_YES == sender->is_connected);
3628 GNUNET_break (sender->status == PEER_STATE_KEY_CONFIRMED); 3628 GNUNET_break (sender->status == PEER_STATE_KEY_CONFIRMED);
@@ -3633,7 +3633,7 @@ send_p2p_message_to_client (struct Neighbour *sender, struct Client *client,
3633 GNUNET_array_grow (sender->ats, sender->ats_count, 0); 3633 GNUNET_array_grow (sender->ats, sender->ats_count, 0);
3634 size = 3634 size =
3635 msize + sizeof (struct NotifyTrafficMessage) + 3635 msize + sizeof (struct NotifyTrafficMessage) +
3636 (sender->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 3636 (sender->ats_count) * sizeof (struct GNUNET_ATS_Information);
3637 } 3637 }
3638#if DEBUG_CORE 3638#if DEBUG_CORE
3639 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3639 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -3649,8 +3649,8 @@ send_p2p_message_to_client (struct Neighbour *sender, struct Client *client,
3649 ntm->peer = sender->peer; 3649 ntm->peer = sender->peer;
3650 ats = &ntm->ats; 3650 ats = &ntm->ats;
3651 memcpy (ats, sender->ats, 3651 memcpy (ats, sender->ats,
3652 sizeof (struct GNUNET_TRANSPORT_ATS_Information) * sender->ats_count); 3652 sizeof (struct GNUNET_ATS_Information) * sender->ats_count);
3653 ats[sender->ats_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); 3653 ats[sender->ats_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
3654 ats[sender->ats_count].value = htonl (0); 3654 ats[sender->ats_count].value = htonl (0);
3655 memcpy (&ats[sender->ats_count + 1], m, msize); 3655 memcpy (&ats[sender->ats_count + 1], m, msize);
3656 send_to_client (client, &ntm->header, GNUNET_YES); 3656 send_to_client (client, &ntm->header, GNUNET_YES);
@@ -3748,7 +3748,7 @@ deliver_message (void *cls, void *client, const struct GNUNET_MessageHeader *m)
3748 */ 3748 */
3749static void 3749static void
3750handle_encrypted_message (struct Neighbour *n, const struct EncryptedMessage *m, 3750handle_encrypted_message (struct Neighbour *n, const struct EncryptedMessage *m,
3751 const struct GNUNET_TRANSPORT_ATS_Information *ats, 3751 const struct GNUNET_ATS_Information *ats,
3752 uint32_t ats_count) 3752 uint32_t ats_count)
3753{ 3753{
3754 size_t size = ntohs (m->header.size); 3754 size_t size = ntohs (m->header.size);
@@ -3908,7 +3908,7 @@ handle_encrypted_message (struct Neighbour *n, const struct EncryptedMessage *m,
3908static void 3908static void
3909handle_transport_receive (void *cls, const struct GNUNET_PeerIdentity *peer, 3909handle_transport_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
3910 const struct GNUNET_MessageHeader *message, 3910 const struct GNUNET_MessageHeader *message,
3911 const struct GNUNET_TRANSPORT_ATS_Information *ats, 3911 const struct GNUNET_ATS_Information *ats,
3912 uint32_t ats_count) 3912 uint32_t ats_count)
3913{ 3913{
3914 struct Neighbour *n; 3914 struct Neighbour *n;
@@ -4171,7 +4171,7 @@ neighbour_quota_update (void *cls,
4171static void 4171static void
4172handle_transport_notify_connect (void *cls, 4172handle_transport_notify_connect (void *cls,
4173 const struct GNUNET_PeerIdentity *peer, 4173 const struct GNUNET_PeerIdentity *peer,
4174 const struct GNUNET_TRANSPORT_ATS_Information 4174 const struct GNUNET_ATS_Information
4175 *ats, uint32_t ats_count) 4175 *ats, uint32_t ats_count)
4176{ 4176{
4177 struct Neighbour *n; 4177 struct Neighbour *n;
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c
index 5e25ac907..3159772aa 100644
--- a/src/core/gnunet-service-core_clients.c
+++ b/src/core/gnunet-service-core_clients.c
@@ -616,7 +616,7 @@ GSC_CLIENTS_reject_request (struct GSC_ClientActiveRequest *car)
616void 616void
617GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, 617GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
618 const struct GNUNET_PeerIdentity *neighbour, 618 const struct GNUNET_PeerIdentity *neighbour,
619 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 619 const struct GNUNET_ATS_Information *atsi,
620 unsigned int atsi_count, 620 unsigned int atsi_count,
621 const struct GSC_TypeMap *tmap_old, 621 const struct GSC_TypeMap *tmap_old,
622 const struct GSC_TypeMap *tmap_new) 622 const struct GSC_TypeMap *tmap_new)
@@ -624,7 +624,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
624 struct ConnectNotifyMessage *cnm; 624 struct ConnectNotifyMessage *cnm;
625 size_t size; 625 size_t size;
626 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; 626 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1];
627 struct GNUNET_TRANSPORT_ATS_Information *a; 627 struct GNUNET_ATS_Information *a;
628 struct DisconnectNotifyMessage dcm; 628 struct DisconnectNotifyMessage dcm;
629 int old_match; 629 int old_match;
630 int new_match; 630 int new_match;
@@ -640,7 +640,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
640 /* send connect */ 640 /* send connect */
641 size = 641 size =
642 sizeof (struct ConnectNotifyMessage) + 642 sizeof (struct ConnectNotifyMessage) +
643 (atsi_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 643 (atsi_count) * sizeof (struct GNUNET_ATS_Information);
644 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 644 if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
645 { 645 {
646 GNUNET_break (0); 646 GNUNET_break (0);
@@ -654,8 +654,8 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
654 cnm->ats_count = htonl (atsi_count); 654 cnm->ats_count = htonl (atsi_count);
655 a = &cnm->ats; 655 a = &cnm->ats;
656 memcpy (a, atsi, 656 memcpy (a, atsi,
657 sizeof (struct GNUNET_TRANSPORT_ATS_Information) * atsi_count); 657 sizeof (struct GNUNET_ATS_Information) * atsi_count);
658 a[atsi_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); 658 a[atsi_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
659 a[atsi_count].value = htonl (0); 659 a[atsi_count].value = htonl (0);
660#if DEBUG_CORE 660#if DEBUG_CORE
661 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 661 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -690,7 +690,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
690 */ 690 */
691void 691void
692GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour, 692GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour,
693 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 693 const struct GNUNET_ATS_Information *atsi,
694 unsigned int atsi_count, 694 unsigned int atsi_count,
695 const struct GSC_TypeMap *tmap_old, 695 const struct GSC_TypeMap *tmap_old,
696 const struct GSC_TypeMap *tmap_new) 696 const struct GSC_TypeMap *tmap_new)
@@ -719,17 +719,17 @@ GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *ne
719 */ 719 */
720void 720void
721GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, 721GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
722 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 722 const struct GNUNET_ATS_Information *atsi,
723 unsigned int atsi_count, 723 unsigned int atsi_count,
724 const struct GNUNET_MessageHeader *msg, 724 const struct GNUNET_MessageHeader *msg,
725 uint16_t msize, 725 uint16_t msize,
726 int options) 726 int options)
727{ 727{
728 size_t size = msize + sizeof (struct NotifyTrafficMessage) + 728 size_t size = msize + sizeof (struct NotifyTrafficMessage) +
729 atsi_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information); 729 atsi_count * sizeof (struct GNUNET_ATS_Information);
730 char buf[size]; 730 char buf[size];
731 struct NotifyTrafficMessage *ntm; 731 struct NotifyTrafficMessage *ntm;
732 struct GNUNET_TRANSPORT_ATS_Information *a; 732 struct GNUNET_ATS_Information *a;
733 733
734 if (0 == options) 734 if (0 == options)
735 { 735 {
@@ -759,8 +759,8 @@ GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
759 ntm->peer = *sender; 759 ntm->peer = *sender;
760 a = &ntm->ats; 760 a = &ntm->ats;
761 memcpy (a, atsi, 761 memcpy (a, atsi,
762 sizeof (struct GNUNET_TRANSPORT_ATS_Information) * atsi_count); 762 sizeof (struct GNUNET_ATS_Information) * atsi_count);
763 a[atsi_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); 763 a[atsi_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
764 a[atsi_count].value = htonl (0); 764 a[atsi_count].value = htonl (0);
765 memcpy (&a[atsi_count + 1], msg, msize); 765 memcpy (&a[atsi_count + 1], msg, msize);
766 send_to_all_clients (&ntm->header, GNUNET_YES, 766 send_to_all_clients (&ntm->header, GNUNET_YES,
diff --git a/src/core/gnunet-service-core_clients.h b/src/core/gnunet-service-core_clients.h
index 9774292c0..2385efc05 100644
--- a/src/core/gnunet-service-core_clients.h
+++ b/src/core/gnunet-service-core_clients.h
@@ -60,7 +60,7 @@ GSC_CLIENTS_send_to_client (struct GNUNET_SERVER_Client *client,
60void 60void
61GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, 61GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
62 const struct GNUNET_PeerIdentity *neighbour, 62 const struct GNUNET_PeerIdentity *neighbour,
63 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 63 const struct GNUNET_ATS_Information *atsi,
64 unsigned int atsi_count, 64 unsigned int atsi_count,
65 const struct GSC_TypeMap *tmap_old, 65 const struct GSC_TypeMap *tmap_old,
66 const struct GSC_TypeMap *tmap_new); 66 const struct GSC_TypeMap *tmap_new);
@@ -79,7 +79,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
79 */ 79 */
80void 80void
81GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour, 81GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour,
82 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 82 const struct GNUNET_ATS_Information *atsi,
83 unsigned int atsi_count, 83 unsigned int atsi_count,
84 const struct GSC_TypeMap *tmap_old, 84 const struct GSC_TypeMap *tmap_old,
85 const struct GSC_TypeMap *tmap_new); 85 const struct GSC_TypeMap *tmap_new);
@@ -100,7 +100,7 @@ GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *ne
100 */ 100 */
101void 101void
102GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, 102GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
103 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 103 const struct GNUNET_ATS_Information *atsi,
104 unsigned int atsi_count, 104 unsigned int atsi_count,
105 const struct GNUNET_MessageHeader *msg, 105 const struct GNUNET_MessageHeader *msg,
106 uint16_t msize, 106 uint16_t msize,
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c
index 92a9e13c9..dfc304226 100644
--- a/src/core/gnunet-service-core_kx.c
+++ b/src/core/gnunet-service-core_kx.c
@@ -1301,7 +1301,7 @@ struct DeliverMessageContext
1301 /** 1301 /**
1302 * Performance information for the connection. 1302 * Performance information for the connection.
1303 */ 1303 */
1304 const struct GNUNET_TRANSPORT_ATS_Information *atsi; 1304 const struct GNUNET_ATS_Information *atsi;
1305 1305
1306 /** 1306 /**
1307 * Sender of the message. 1307 * Sender of the message.
@@ -1327,7 +1327,7 @@ struct DeliverMessageContext
1327void 1327void
1328GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx, 1328GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx,
1329 const struct GNUNET_MessageHeader *msg, 1329 const struct GNUNET_MessageHeader *msg,
1330 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 1330 const struct GNUNET_ATS_Information *atsi,
1331 uint32_t atsi_count) 1331 uint32_t atsi_count)
1332{ 1332{
1333 const struct EncryptedMessage *m; 1333 const struct EncryptedMessage *m;
diff --git a/src/core/gnunet-service-core_kx.h b/src/core/gnunet-service-core_kx.h
index 3c6734d77..0e963ef7a 100644
--- a/src/core/gnunet-service-core_kx.h
+++ b/src/core/gnunet-service-core_kx.h
@@ -96,7 +96,7 @@ GSC_KX_encrypt_and_transmit (struct GSC_KeyExchangeInfo *kx,
96void 96void
97GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx, 97GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx,
98 const struct GNUNET_MessageHeader *msg, 98 const struct GNUNET_MessageHeader *msg,
99 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 99 const struct GNUNET_ATS_Information *atsi,
100 uint32_t atsi_count); 100 uint32_t atsi_count);
101 101
102 102
diff --git a/src/core/gnunet-service-core_neighbours.c b/src/core/gnunet-service-core_neighbours.c
index 60ce0e512..505b1797b 100644
--- a/src/core/gnunet-service-core_neighbours.c
+++ b/src/core/gnunet-service-core_neighbours.c
@@ -309,7 +309,7 @@ process_queue (struct Neighbour *n)
309static void 309static void
310handle_transport_notify_connect (void *cls, 310handle_transport_notify_connect (void *cls,
311 const struct GNUNET_PeerIdentity *peer, 311 const struct GNUNET_PeerIdentity *peer,
312 const struct GNUNET_TRANSPORT_ATS_Information 312 const struct GNUNET_ATS_Information
313 *ats, uint32_t ats_count) 313 *ats, uint32_t ats_count)
314{ 314{
315 struct Neighbour *n; 315 struct Neighbour *n;
@@ -383,7 +383,7 @@ handle_transport_notify_disconnect (void *cls,
383static void 383static void
384handle_transport_receive (void *cls, const struct GNUNET_PeerIdentity *peer, 384handle_transport_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
385 const struct GNUNET_MessageHeader *message, 385 const struct GNUNET_MessageHeader *message,
386 const struct GNUNET_TRANSPORT_ATS_Information *ats, 386 const struct GNUNET_ATS_Information *ats,
387 uint32_t ats_count) 387 uint32_t ats_count)
388{ 388{
389 struct Neighbour *n; 389 struct Neighbour *n;
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c
index 3c29bd065..c239f27c1 100644
--- a/src/core/gnunet-service-core_sessions.c
+++ b/src/core/gnunet-service-core_sessions.c
@@ -632,7 +632,7 @@ queue_connect_message (void *cls, const GNUNET_HashCode * key, void *value)
632 struct GNUNET_SERVER_TransmitContext *tc = cls; 632 struct GNUNET_SERVER_TransmitContext *tc = cls;
633 struct Session *session = value; 633 struct Session *session = value;
634 struct ConnectNotifyMessage cnm; 634 struct ConnectNotifyMessage cnm;
635 struct GNUNET_TRANSPORT_ATS_Information *a; 635 struct GNUNET_ATS_Information *a;
636 636
637 /* FIXME: code duplication with clients... */ 637 /* FIXME: code duplication with clients... */
638 cnm.header.size = htons (sizeof (struct ConnectNotifyMessage)); 638 cnm.header.size = htons (sizeof (struct ConnectNotifyMessage));
@@ -641,7 +641,7 @@ queue_connect_message (void *cls, const GNUNET_HashCode * key, void *value)
641 cnm.peer = session->peer; 641 cnm.peer = session->peer;
642 a = &cnm.ats; 642 a = &cnm.ats;
643 // FIXME: full ats... 643 // FIXME: full ats...
644 a[0].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); 644 a[0].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
645 a[0].value = htonl (0); 645 a[0].value = htonl (0);
646 GNUNET_SERVER_transmit_context_append_message (tc, &cnm.header); 646 GNUNET_SERVER_transmit_context_append_message (tc, &cnm.header);
647 return GNUNET_OK; 647 return GNUNET_OK;
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c
index 15e3f812b..10cba9d8a 100644
--- a/src/core/test_core_api.c
+++ b/src/core/test_core_api.c
@@ -165,7 +165,7 @@ transmit_ready (void *cls, size_t size, void *buf)
165 165
166static void 166static void
167connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 167connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
168 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 168 const struct GNUNET_ATS_Information *atsi)
169{ 169{
170 struct PeerContext *pc = cls; 170 struct PeerContext *pc = cls;
171 171
@@ -218,7 +218,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
218static int 218static int
219inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 219inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
220 const struct GNUNET_MessageHeader *message, 220 const struct GNUNET_MessageHeader *message,
221 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 221 const struct GNUNET_ATS_Information *atsi)
222{ 222{
223 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 223 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
224 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); 224 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
@@ -229,7 +229,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
229static int 229static int
230outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 230outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
231 const struct GNUNET_MessageHeader *message, 231 const struct GNUNET_MessageHeader *message,
232 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 232 const struct GNUNET_ATS_Information *atsi)
233{ 233{
234 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 234 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
235 "Core notifies about outbound data for `%4s'.\n", 235 "Core notifies about outbound data for `%4s'.\n",
@@ -242,7 +242,7 @@ outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
242static int 242static int
243process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 243process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
244 const struct GNUNET_MessageHeader *message, 244 const struct GNUNET_MessageHeader *message,
245 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 245 const struct GNUNET_ATS_Information *atsi)
246{ 246{
247 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n", 247 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n",
248 GNUNET_i2s (peer)); 248 GNUNET_i2s (peer));
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c
index 05cc25afa..1ae67b02b 100644
--- a/src/core/test_core_api_reliability.c
+++ b/src/core/test_core_api_reliability.c
@@ -225,7 +225,7 @@ transmit_ready (void *cls, size_t size, void *buf)
225 225
226static void 226static void
227connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 227connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
228 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 228 const struct GNUNET_ATS_Information *atsi)
229{ 229{
230 struct PeerContext *pc = cls; 230 struct PeerContext *pc = cls;
231 231
@@ -270,7 +270,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
270static int 270static int
271inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 271inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
272 const struct GNUNET_MessageHeader *message, 272 const struct GNUNET_MessageHeader *message,
273 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 273 const struct GNUNET_ATS_Information *atsi)
274{ 274{
275#if VERBOSE 275#if VERBOSE
276 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 276 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -283,7 +283,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
283static int 283static int
284outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 284outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
285 const struct GNUNET_MessageHeader *message, 285 const struct GNUNET_MessageHeader *message,
286 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 286 const struct GNUNET_ATS_Information *atsi)
287{ 287{
288#if VERBOSE 288#if VERBOSE
289 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 289 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -300,7 +300,7 @@ transmit_ready (void *cls, size_t size, void *buf);
300static int 300static int
301process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 301process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
302 const struct GNUNET_MessageHeader *message, 302 const struct GNUNET_MessageHeader *message,
303 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 303 const struct GNUNET_ATS_Information *atsi)
304{ 304{
305 static int n; 305 static int n;
306 unsigned int s; 306 unsigned int s;
diff --git a/src/core/test_core_api_send_to_self.c b/src/core/test_core_api_send_to_self.c
index b7e2b449b..a1c361376 100644
--- a/src/core/test_core_api_send_to_self.c
+++ b/src/core/test_core_api_send_to_self.c
@@ -90,7 +90,7 @@ cleanup (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tskctx)
90static int 90static int
91receive (void *cls, const struct GNUNET_PeerIdentity *other, 91receive (void *cls, const struct GNUNET_PeerIdentity *other,
92 const struct GNUNET_MessageHeader *message, 92 const struct GNUNET_MessageHeader *message,
93 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 93 const struct GNUNET_ATS_Information *atsi)
94{ 94{
95 if (die_task != GNUNET_SCHEDULER_NO_TASK) 95 if (die_task != GNUNET_SCHEDULER_NO_TASK)
96 GNUNET_SCHEDULER_cancel (die_task); 96 GNUNET_SCHEDULER_cancel (die_task);
@@ -134,7 +134,7 @@ init (void *cls, struct GNUNET_CORE_Handle *core,
134 134
135static void 135static void
136connect_cb (void *cls, const struct GNUNET_PeerIdentity *peer, 136connect_cb (void *cls, const struct GNUNET_PeerIdentity *peer,
137 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 137 const struct GNUNET_ATS_Information *atsi)
138{ 138{
139 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected to peer %s.\n", 139 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected to peer %s.\n",
140 GNUNET_i2s (peer)); 140 GNUNET_i2s (peer));
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c
index 744758191..9825131be 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -67,7 +67,7 @@ static int ok;
67 67
68static void 68static void
69connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 69connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
70 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 70 const struct GNUNET_ATS_Information *atsi)
71{ 71{
72} 72}
73 73
@@ -81,7 +81,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
81static int 81static int
82inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 82inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
83 const struct GNUNET_MessageHeader *message, 83 const struct GNUNET_MessageHeader *message,
84 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 84 const struct GNUNET_ATS_Information *atsi)
85{ 85{
86 return GNUNET_OK; 86 return GNUNET_OK;
87} 87}
@@ -90,7 +90,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
90static int 90static int
91outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 91outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
92 const struct GNUNET_MessageHeader *message, 92 const struct GNUNET_MessageHeader *message,
93 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 93 const struct GNUNET_ATS_Information *atsi)
94{ 94{
95 return GNUNET_OK; 95 return GNUNET_OK;
96} 96}
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c
index e3b760624..3f619f49a 100644
--- a/src/core/test_core_quota_compliance.c
+++ b/src/core/test_core_quota_compliance.c
@@ -358,7 +358,7 @@ transmit_ready (void *cls, size_t size, void *buf)
358 358
359static void 359static void
360connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 360connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
361 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 361 const struct GNUNET_ATS_Information *atsi)
362{ 362{
363 struct PeerContext *pc = cls; 363 struct PeerContext *pc = cls;
364 364
@@ -418,7 +418,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
418static int 418static int
419inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 419inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
420 const struct GNUNET_MessageHeader *message, 420 const struct GNUNET_MessageHeader *message,
421 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 421 const struct GNUNET_ATS_Information *atsi)
422{ 422{
423#if DEBUG_TRANSMISSION 423#if DEBUG_TRANSMISSION
424 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 424 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -433,7 +433,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
433static int 433static int
434outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 434outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
435 const struct GNUNET_MessageHeader *message, 435 const struct GNUNET_MessageHeader *message,
436 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 436 const struct GNUNET_ATS_Information *atsi)
437{ 437{
438#if DEBUG_TRANSMISSION 438#if DEBUG_TRANSMISSION
439 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 439 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -450,7 +450,7 @@ transmit_ready (void *cls, size_t size, void *buf);
450static int 450static int
451process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 451process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
452 const struct GNUNET_MessageHeader *message, 452 const struct GNUNET_MessageHeader *message,
453 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 453 const struct GNUNET_ATS_Information *atsi)
454{ 454{
455 static int n; 455 static int n;
456 const struct TestMessage *hdr; 456 const struct TestMessage *hdr;