aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_connectivity.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-18 12:49:23 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-18 12:49:23 +0000
commit2128c61720c9019302a1add71796c69d2ee36fc4 (patch)
treeb665fa4994da1132b6e5d85312bfacab9460d8a9 /src/ats/gnunet-service-ats_connectivity.c
parent9cd0d5068f3341fe8451a61872894f28a5ac9047 (diff)
downloadgnunet-2128c61720c9019302a1add71796c69d2ee36fc4.tar.gz
gnunet-2128c61720c9019302a1add71796c69d2ee36fc4.zip
add 'strength' argument to address suggestion request for ATS
Diffstat (limited to 'src/ats/gnunet-service-ats_connectivity.c')
-rw-r--r--src/ats/gnunet-service-ats_connectivity.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ats/gnunet-service-ats_connectivity.c b/src/ats/gnunet-service-ats_connectivity.c
index 8c103a33c..7bde6e354 100644
--- a/src/ats/gnunet-service-ats_connectivity.c
+++ b/src/ats/gnunet-service-ats_connectivity.c
@@ -73,7 +73,7 @@ GAS_connectivity_has_peer (void *cls,
73 73
74 74
75/** 75/**
76 * Handle 'request address' messages from clients. 76 * Handle #GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS messages from clients.
77 * 77 *
78 * @param cls unused, NULL 78 * @param cls unused, NULL
79 * @param client client that sent the request 79 * @param client client that sent the request
@@ -90,8 +90,8 @@ GAS_handle_request_address (void *cls,
90 90
91 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 91 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
92 "Received `%s' message\n", 92 "Received `%s' message\n",
93 "REQUEST_ADDRESS"); 93 "GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS");
94 GNUNET_break (0 == ntohl (msg->reserved)); 94 /* FIXME: should not ignore "msg->strength" */
95 cr = GNUNET_new (struct ConnectionRequest); 95 cr = GNUNET_new (struct ConnectionRequest);
96 cr->client = client; 96 cr->client = client;
97 (void) GNUNET_CONTAINER_multipeermap_put (connection_requests, 97 (void) GNUNET_CONTAINER_multipeermap_put (connection_requests,
@@ -137,7 +137,8 @@ free_matching_requests (void *cls,
137 137
138 138
139/** 139/**
140 * Handle 'request address cancel' messages from clients. 140 * Handle #GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS_CANCEL messages
141 * from clients.
141 * 142 *
142 * @param cls unused, NULL 143 * @param cls unused, NULL
143 * @param client client that sent the request 144 * @param client client that sent the request
@@ -152,9 +153,9 @@ GAS_handle_request_address_cancel (void *cls,
152 (const struct RequestAddressMessage *) message; 153 (const struct RequestAddressMessage *) message;
153 154
154 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 155 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
155 "Received REQUEST_ADDRESS_CANCEL message for peer %s\n", 156 "Received GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS_CANCEL message for peer %s\n",
156 GNUNET_i2s (&msg->peer)); 157 GNUNET_i2s (&msg->peer));
157 GNUNET_break (0 == ntohl (msg->reserved)); 158 GNUNET_break (0 == ntohl (msg->strength));
158 GNUNET_CONTAINER_multipeermap_get_multiple (connection_requests, 159 GNUNET_CONTAINER_multipeermap_get_multiple (connection_requests,
159 &msg->peer, 160 &msg->peer,
160 &free_matching_requests, 161 &free_matching_requests,