aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.h6
-rw-r--r--src/core/core_api.c24
-rw-r--r--src/core/core_api_iterate_peers.c17
-rw-r--r--src/core/gnunet-core-list-connections.c3
-rw-r--r--src/core/gnunet-service-core_clients.c4
-rw-r--r--src/core/gnunet-service-core_sessions.c6
-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.c9
-rw-r--r--src/core/test_core_quota_compliance.c8
11 files changed, 46 insertions, 51 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 71969c3e0..b76528a8e 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -119,12 +119,6 @@ struct ConnectNotifyMessage
119 */ 119 */
120 struct GNUNET_PeerIdentity peer; 120 struct GNUNET_PeerIdentity peer;
121 121
122 /**
123 * First of the ATS information blocks (we must have at least
124 * one due to the 0-termination requirement).
125 */
126 struct GNUNET_ATS_Information ats;
127
128}; 122};
129 123
130 124
diff --git a/src/core/core_api.c b/src/core/core_api.c
index b903d73bb..3349f79ab 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -781,6 +781,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
781 const struct GNUNET_MessageHeader *em; 781 const struct GNUNET_MessageHeader *em;
782 const struct SendMessageReady *smr; 782 const struct SendMessageReady *smr;
783 const struct GNUNET_CORE_MessageHandler *mh; 783 const struct GNUNET_CORE_MessageHandler *mh;
784 const struct GNUNET_ATS_Information* ats;
784 GNUNET_CORE_StartupCallback init; 785 GNUNET_CORE_StartupCallback init;
785 struct PeerRecord *pr; 786 struct PeerRecord *pr;
786 struct GNUNET_CORE_TransmitHandle *th; 787 struct GNUNET_CORE_TransmitHandle *th;
@@ -851,7 +852,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
851 &h->me.hashPubKey, pr, 852 &h->me.hashPubKey, pr,
852 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); 853 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
853 if (NULL != h->connects) 854 if (NULL != h->connects)
854 h->connects (h->cls, &h->me, NULL); 855 h->connects (h->cls, &h->me, NULL, 0);
855 break; 856 break;
856 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT: 857 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT:
857 if (msize < sizeof (struct ConnectNotifyMessage)) 858 if (msize < sizeof (struct ConnectNotifyMessage))
@@ -862,11 +863,9 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
862 } 863 }
863 cnm = (const struct ConnectNotifyMessage *) msg; 864 cnm = (const struct ConnectNotifyMessage *) msg;
864 ats_count = ntohl (cnm->ats_count); 865 ats_count = ntohl (cnm->ats_count);
865 if ((msize != 866 if (msize !=
866 sizeof (struct ConnectNotifyMessage) + 867 sizeof (struct ConnectNotifyMessage) +
867 ats_count * sizeof (struct GNUNET_ATS_Information)) || 868 ats_count * sizeof (struct GNUNET_ATS_Information))
868 (GNUNET_ATS_ARRAY_TERMINATOR !=
869 ntohl ((&cnm->ats)[ats_count].type)))
870 { 869 {
871 GNUNET_break (0); 870 GNUNET_break (0);
872 reconnect_later (h); 871 reconnect_later (h);
@@ -897,8 +896,11 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
897 GNUNET_CONTAINER_multihashmap_put (h->peers, 896 GNUNET_CONTAINER_multihashmap_put (h->peers,
898 &cnm->peer.hashPubKey, pr, 897 &cnm->peer.hashPubKey, pr,
899 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); 898 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
899 ats = (const struct GNUNET_ATS_Information*) &cnm[1];
900 if (NULL != h->connects) 900 if (NULL != h->connects)
901 h->connects (h->cls, &cnm->peer, &cnm->ats); 901 h->connects (h->cls, &cnm->peer,
902 ats,
903 ats_count);
902 break; 904 break;
903 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT: 905 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT:
904 if (msize != sizeof (struct DisconnectNotifyMessage)) 906 if (msize != sizeof (struct DisconnectNotifyMessage))
@@ -988,14 +990,16 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
988 continue; 990 continue;
989 } 991 }
990 if (GNUNET_OK != 992 if (GNUNET_OK !=
991 h->handlers[hpos].callback (h->cls, &ntm->peer, em, &ntm->ats)) 993 h->handlers[hpos].callback (h->cls, &ntm->peer, em, &ntm->ats,
994 ats_count))
992 { 995 {
993 /* error in processing, do not process other messages! */ 996 /* error in processing, do not process other messages! */
994 break; 997 break;
995 } 998 }
996 } 999 }
997 if (NULL != h->inbound_notify) 1000 if (NULL != h->inbound_notify)
998 h->inbound_notify (h->cls, &ntm->peer, em, &ntm->ats); 1001 h->inbound_notify (h->cls, &ntm->peer, em, &ntm->ats,
1002 ats_count);
999 break; 1003 break;
1000 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND: 1004 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND:
1001 if (msize < sizeof (struct NotifyTrafficMessage)) 1005 if (msize < sizeof (struct NotifyTrafficMessage))
@@ -1050,7 +1054,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
1050 GNUNET_break (0); 1054 GNUNET_break (0);
1051 break; 1055 break;
1052 } 1056 }
1053 h->outbound_notify (h->cls, &ntm->peer, em, &ntm->ats); 1057 h->outbound_notify (h->cls, &ntm->peer, em, &ntm->ats, ats_count);
1054 break; 1058 break;
1055 case GNUNET_MESSAGE_TYPE_CORE_SEND_READY: 1059 case GNUNET_MESSAGE_TYPE_CORE_SEND_READY:
1056 if (msize != sizeof (struct SendMessageReady)) 1060 if (msize != sizeof (struct SendMessageReady))
diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c
index ed9ea175e..7bf40a678 100644
--- a/src/core/core_api_iterate_peers.c
+++ b/src/core/core_api_iterate_peers.c
@@ -79,7 +79,7 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
79 (ntohs (msg->size) == sizeof (struct GNUNET_MessageHeader)))) 79 (ntohs (msg->size) == sizeof (struct GNUNET_MessageHeader))))
80 { 80 {
81 if (request_context->peer_cb != NULL) 81 if (request_context->peer_cb != NULL)
82 request_context->peer_cb (request_context->cb_cls, NULL, NULL); 82 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0);
83 GNUNET_CLIENT_disconnect (request_context->client, GNUNET_NO); 83 GNUNET_CLIENT_disconnect (request_context->client, GNUNET_NO);
84 GNUNET_free (request_context); 84 GNUNET_free (request_context);
85 return; 85 return;
@@ -92,22 +92,20 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
92 { 92 {
93 GNUNET_break (0); 93 GNUNET_break (0);
94 if (request_context->peer_cb != NULL) 94 if (request_context->peer_cb != NULL)
95 request_context->peer_cb (request_context->cb_cls, NULL, NULL); 95 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0);
96 GNUNET_CLIENT_disconnect (request_context->client, GNUNET_NO); 96 GNUNET_CLIENT_disconnect (request_context->client, GNUNET_NO);
97 GNUNET_free (request_context); 97 GNUNET_free (request_context);
98 return; 98 return;
99 } 99 }
100 connect_message = (const struct ConnectNotifyMessage *) msg; 100 connect_message = (const struct ConnectNotifyMessage *) 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_ATS_Information)) || 104 ats_count * sizeof (struct GNUNET_ATS_Information))
105 (GNUNET_ATS_ARRAY_TERMINATOR !=
106 ntohl ((&connect_message->ats)[ats_count].type)))
107 { 105 {
108 GNUNET_break (0); 106 GNUNET_break (0);
109 if (request_context->peer_cb != NULL) 107 if (request_context->peer_cb != NULL)
110 request_context->peer_cb (request_context->cb_cls, NULL, NULL); 108 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0);
111 GNUNET_CLIENT_disconnect (request_context->client, GNUNET_NO); 109 GNUNET_CLIENT_disconnect (request_context->client, GNUNET_NO);
112 GNUNET_free (request_context); 110 GNUNET_free (request_context);
113 return; 111 return;
@@ -115,7 +113,8 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
115 /* Normal case */ 113 /* Normal case */
116 if (request_context->peer_cb != NULL) 114 if (request_context->peer_cb != NULL)
117 request_context->peer_cb (request_context->cb_cls, &connect_message->peer, 115 request_context->peer_cb (request_context->cb_cls, &connect_message->peer,
118 &connect_message->ats); 116 (const struct GNUNET_ATS_Information *) &connect_message[1],
117 ats_count);
119 GNUNET_CLIENT_receive (request_context->client, &receive_info, 118 GNUNET_CLIENT_receive (request_context->client, &receive_info,
120 request_context, GNUNET_TIME_UNIT_FOREVER_REL); 119 request_context, GNUNET_TIME_UNIT_FOREVER_REL);
121} 120}
diff --git a/src/core/gnunet-core-list-connections.c b/src/core/gnunet-core-list-connections.c
index ae7feb915..9665110a3 100644
--- a/src/core/gnunet-core-list-connections.c
+++ b/src/core/gnunet-core-list-connections.c
@@ -123,7 +123,8 @@ 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_ATS_Information *atsi) 126 const struct GNUNET_ATS_Information *atsi,
127 unsigned int atsi_count)
127{ 128{
128 struct PrintContext *pc; 129 struct PrintContext *pc;
129 130
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c
index 146b251be..47bbd98db 100644
--- a/src/core/gnunet-service-core_clients.c
+++ b/src/core/gnunet-service-core_clients.c
@@ -658,11 +658,9 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
658 cnm->header.size = htons (size); 658 cnm->header.size = htons (size);
659 cnm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT); 659 cnm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT);
660 cnm->ats_count = htonl (atsi_count); 660 cnm->ats_count = htonl (atsi_count);
661 a = &cnm->ats; 661 a = (struct GNUNET_ATS_Information* ) &cnm[1];
662 memcpy (a, atsi, 662 memcpy (a, atsi,
663 sizeof (struct GNUNET_ATS_Information) * atsi_count); 663 sizeof (struct GNUNET_ATS_Information) * atsi_count);
664 a[atsi_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
665 a[atsi_count].value = htonl (0);
666#if DEBUG_CORE 664#if DEBUG_CORE
667 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 665 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
668 "Sending `%s' message to client.\n", 666 "Sending `%s' message to client.\n",
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c
index fc9576a93..61532ac9c 100644
--- a/src/core/gnunet-service-core_sessions.c
+++ b/src/core/gnunet-service-core_sessions.c
@@ -672,17 +672,13 @@ queue_connect_message (void *cls, const GNUNET_HashCode * key, void *value)
672 struct GNUNET_SERVER_TransmitContext *tc = cls; 672 struct GNUNET_SERVER_TransmitContext *tc = cls;
673 struct Session *session = value; 673 struct Session *session = value;
674 struct ConnectNotifyMessage cnm; 674 struct ConnectNotifyMessage cnm;
675 struct GNUNET_ATS_Information *a;
676 675
677 /* FIXME: code duplication with clients... */ 676 /* FIXME: code duplication with clients... */
678 cnm.header.size = htons (sizeof (struct ConnectNotifyMessage)); 677 cnm.header.size = htons (sizeof (struct ConnectNotifyMessage));
679 cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT); 678 cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT);
679 // FIXME: full ats...
680 cnm.ats_count = htonl (0); 680 cnm.ats_count = htonl (0);
681 cnm.peer = session->peer; 681 cnm.peer = session->peer;
682 a = &cnm.ats;
683 // FIXME: full ats...
684 a[0].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
685 a[0].value = htonl (0);
686 GNUNET_SERVER_transmit_context_append_message (tc, &cnm.header); 682 GNUNET_SERVER_transmit_context_append_message (tc, &cnm.header);
687 return GNUNET_OK; 683 return GNUNET_OK;
688} 684}
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c
index 56b7412c3..be3edf974 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_ATS_Information *atsi) 168 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
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_ATS_Information *atsi) 221 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
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_ATS_Information *atsi) 232 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
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_ATS_Information *atsi) 245 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
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 f40b61660..6a764c126 100644
--- a/src/core/test_core_api_reliability.c
+++ b/src/core/test_core_api_reliability.c
@@ -239,7 +239,7 @@ transmit_ready (void *cls, size_t size, void *buf)
239 239
240static void 240static void
241connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 241connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
242 const struct GNUNET_ATS_Information *atsi) 242 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
243{ 243{
244 struct PeerContext *pc = cls; 244 struct PeerContext *pc = cls;
245 245
@@ -284,7 +284,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
284static int 284static int
285inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 285inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
286 const struct GNUNET_MessageHeader *message, 286 const struct GNUNET_MessageHeader *message,
287 const struct GNUNET_ATS_Information *atsi) 287 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
288{ 288{
289#if VERBOSE 289#if VERBOSE
290 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 290 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -297,7 +297,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
297static int 297static int
298outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 298outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
299 const struct GNUNET_MessageHeader *message, 299 const struct GNUNET_MessageHeader *message,
300 const struct GNUNET_ATS_Information *atsi) 300 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
301{ 301{
302#if VERBOSE 302#if VERBOSE
303 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 303 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -314,7 +314,7 @@ transmit_ready (void *cls, size_t size, void *buf);
314static int 314static int
315process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 315process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
316 const struct GNUNET_MessageHeader *message, 316 const struct GNUNET_MessageHeader *message,
317 const struct GNUNET_ATS_Information *atsi) 317 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
318{ 318{
319 static int n; 319 static int n;
320 unsigned int s; 320 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 a1c361376..cf9608ede 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_ATS_Information *atsi) 93 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
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_ATS_Information *atsi) 137 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
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 9825131be..f27866c19 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -67,7 +67,8 @@ 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_ATS_Information *atsi) 70 const struct GNUNET_ATS_Information *atsi,
71 unsigned int atsi_count)
71{ 72{
72} 73}
73 74
@@ -81,7 +82,8 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
81static int 82static int
82inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 83inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
83 const struct GNUNET_MessageHeader *message, 84 const struct GNUNET_MessageHeader *message,
84 const struct GNUNET_ATS_Information *atsi) 85 const struct GNUNET_ATS_Information *atsi,
86 unsigned int atsi_count)
85{ 87{
86 return GNUNET_OK; 88 return GNUNET_OK;
87} 89}
@@ -90,7 +92,8 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
90static int 92static int
91outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 93outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
92 const struct GNUNET_MessageHeader *message, 94 const struct GNUNET_MessageHeader *message,
93 const struct GNUNET_ATS_Information *atsi) 95 const struct GNUNET_ATS_Information *atsi,
96 unsigned int atsi_count)
94{ 97{
95 return GNUNET_OK; 98 return GNUNET_OK;
96} 99}
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c
index c8dcfad86..be875c235 100644
--- a/src/core/test_core_quota_compliance.c
+++ b/src/core/test_core_quota_compliance.c
@@ -364,7 +364,7 @@ transmit_ready (void *cls, size_t size, void *buf)
364 364
365static void 365static void
366connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 366connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
367 const struct GNUNET_ATS_Information *atsi) 367 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
368{ 368{
369 struct PeerContext *pc = cls; 369 struct PeerContext *pc = cls;
370 370
@@ -431,7 +431,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
431static int 431static int
432inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 432inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
433 const struct GNUNET_MessageHeader *message, 433 const struct GNUNET_MessageHeader *message,
434 const struct GNUNET_ATS_Information *atsi) 434 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
435{ 435{
436#if DEBUG_TRANSMISSION 436#if DEBUG_TRANSMISSION
437 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 437 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -446,7 +446,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
446static int 446static int
447outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 447outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
448 const struct GNUNET_MessageHeader *message, 448 const struct GNUNET_MessageHeader *message,
449 const struct GNUNET_ATS_Information *atsi) 449 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
450{ 450{
451#if DEBUG_TRANSMISSION 451#if DEBUG_TRANSMISSION
452 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 452 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -463,7 +463,7 @@ transmit_ready (void *cls, size_t size, void *buf);
463static int 463static int
464process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 464process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
465 const struct GNUNET_MessageHeader *message, 465 const struct GNUNET_MessageHeader *message,
466 const struct GNUNET_ATS_Information *atsi) 466 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
467{ 467{
468 static int n; 468 static int n;
469 const struct TestMessage *hdr; 469 const struct TestMessage *hdr;