diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-18 20:23:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-18 20:23:40 +0000 |
commit | 541caf3dec54aaee621fed935e667f9ee423ef31 (patch) | |
tree | 6f80958e68541ce071bc557bbfc168644963c473 /src/transport/transport.h | |
parent | e8bc962b2ed43e194ba124537573da236786e82c (diff) | |
download | gnunet-541caf3dec54aaee621fed935e667f9ee423ef31.tar.gz gnunet-541caf3dec54aaee621fed935e667f9ee423ef31.zip |
towards fixing blacklisting APIs and implementation
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index d66b87b35..b2ef01bb5 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -268,27 +268,22 @@ struct BlacklistMessage | |||
268 | { | 268 | { |
269 | 269 | ||
270 | /** | 270 | /** |
271 | * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST | 271 | * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY or |
272 | * GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY. | ||
272 | */ | 273 | */ |
273 | struct GNUNET_MessageHeader header; | 274 | struct GNUNET_MessageHeader header; |
274 | 275 | ||
275 | /** | 276 | /** |
276 | * Reserved (for alignment). | 277 | * 0 for the query, GNUNET_OK (allowed) or GNUNET_SYSERR (disallowed) |
278 | * for the response. | ||
277 | */ | 279 | */ |
278 | uint32_t reserved GNUNET_PACKED; | 280 | uint32_t is_allowed GNUNET_PACKED; |
279 | 281 | ||
280 | /** | 282 | /** |
281 | * Which peer is being blacklisted (or has seen its | 283 | * Which peer is being blacklisted or queried? |
282 | * blacklisting expire)? | ||
283 | */ | 284 | */ |
284 | struct GNUNET_PeerIdentity peer; | 285 | struct GNUNET_PeerIdentity peer; |
285 | 286 | ||
286 | /** | ||
287 | * Until what time is this peer blacklisted (zero for | ||
288 | * no longer blacklisted). | ||
289 | */ | ||
290 | struct GNUNET_TIME_AbsoluteNBO until; | ||
291 | |||
292 | }; | 287 | }; |
293 | 288 | ||
294 | 289 | ||