aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_rps_service.h
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-02-22 18:47:59 +0000
committerJulius Bünger <buenger@mytum.de>2015-02-22 18:47:59 +0000
commitdb554c393137201c6a5c846eee77b0f11882b18c (patch)
treeb00b33d73202222b08062d60022f6738d01624ec /src/include/gnunet_rps_service.h
parenta76817c408f2d8cf3b0b8619ff38f163ee882be6 (diff)
downloadgnunet-db554c393137201c6a5c846eee77b0f11882b18c.tar.gz
gnunet-db554c393137201c6a5c846eee77b0f11882b18c.zip
baseline for test with malicious peers
Diffstat (limited to 'src/include/gnunet_rps_service.h')
-rw-r--r--src/include/gnunet_rps_service.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/gnunet_rps_service.h b/src/include/gnunet_rps_service.h
index a406f604a..ac84611d9 100644
--- a/src/include/gnunet_rps_service.h
+++ b/src/include/gnunet_rps_service.h
@@ -105,6 +105,30 @@ GNUNET_RPS_seed_ids (struct GNUNET_RPS_Handle *h, uint32_t n,
105 void 105 void
106GNUNET_RPS_request_cancel (struct GNUNET_RPS_Request_Handle *rh); 106GNUNET_RPS_request_cancel (struct GNUNET_RPS_Request_Handle *rh);
107 107
108
109#if ENABLE_MALICIOUS
110/**
111 * Turn RPS service to act malicious.
112 *
113 * @param h handle to the rps service
114 * @param type which type of malicious peer to turn to.
115 * 0 Don't act malicious at all
116 * 1 Try to maximise representation
117 * 2 Try to partition the network
118 * (isolate one peer from the rest)
119 * @param n number of @a ids
120 * @param ids the ids of the malicious peers
121 * if @type is 2 the last id is the id of the
122 * peer to be isolated from the rest
123 */
124 void
125GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h,
126 uint32_t type,
127 uint32_t num_peers,
128 const struct GNUNET_PeerIdentity *ids);
129#endif
130
131
108/** 132/**
109 * Disconnect from the rps service 133 * Disconnect from the rps service
110 * 134 *