aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-22 21:32:12 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-22 21:32:12 +0000
commit2a51624aec1b1a5bc464853c5446f628fa3b99f0 (patch)
treec14871c53cd71245fa473b729aa9fec0d66fd788 /src/ats/ats.h
parent750da2796162b92c533f9666104c47407ed09e46 (diff)
downloadgnunet-2a51624aec1b1a5bc464853c5446f628fa3b99f0.tar.gz
gnunet-2a51624aec1b1a5bc464853c5446f628fa3b99f0.zip
simplifying IPC for address destruction
Diffstat (limited to 'src/ats/ats.h')
-rw-r--r--src/ats/ats.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/ats/ats.h b/src/ats/ats.h
index fd66013f4..5e5d16a90 100644
--- a/src/ats/ats.h
+++ b/src/ats/ats.h
@@ -192,26 +192,29 @@ struct AddressUseMessage
192}; 192};
193 193
194 194
195/**
196 * Message sent by ATS client to ATS service when an address
197 * was destroyed and must thus henceforth no longer be considered
198 * for scheduling.
199 */
195struct AddressDestroyedMessage 200struct AddressDestroyedMessage
196{ 201{
202 /**
203 * Type is #GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED.
204 */
197 struct GNUNET_MessageHeader header; 205 struct GNUNET_MessageHeader header;
198 206
199 uint32_t reserved GNUNET_PACKED; 207 /**
200 208 * Internal number this client uses to refer to this address.
201 struct GNUNET_PeerIdentity peer; 209 */
202
203 uint16_t address_length GNUNET_PACKED;
204
205 uint16_t plugin_name_length GNUNET_PACKED;
206
207 uint32_t session_id GNUNET_PACKED; 210 uint32_t session_id GNUNET_PACKED;
208 211
209 uint32_t address_local_info GNUNET_PACKED; 212 /**
210 213 * Which peer is this about? (Technically redundant, as the
211 /* followed by: 214 * @e session_id should be sufficient, but enables ATS service
212 * - char address[address_length] 215 * to find the session faster).
213 * - char plugin_name[plugin_name_length] (including '\0'-termination).
214 */ 216 */
217 struct GNUNET_PeerIdentity peer;
215 218
216}; 219};
217 220