- add peer blacklist API
authorBart Polot <bart@net.in.tum.de>
Tue, 12 Jun 2012 15:17:37 +0000 (15:17 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 12 Jun 2012 15:17:37 +0000 (15:17 +0000)
src/include/gnunet_mesh_service.h

index 889c863583935a74c66b63b15b464e735df257a2..9e3ef1fac607c701f41949a79d44a8c937a6bff1 100644 (file)
@@ -310,6 +310,19 @@ GNUNET_MESH_peer_request_connect_by_string (struct GNUNET_MESH_Tunnel *tunnel,
                                             const char *description);
 
 
+/**
+ * Request that the given peer isn't added to this tunnel in calls to
+ * connect_by_* calls, (due to misbehaviour, bad performance, ...).
+ *
+ * @param tunnel handle to existing tunnel.
+ * @param peer peer identity of the peer which should be blacklisted
+ *                  for the tunnel.
+ */
+void
+GNUNET_MESH_peer_blacklist (struct GNUNET_MESH_Tunnel *tunnel,
+                            const struct GNUNET_PeerIdentity *peer);
+
+
 /**
  * Handle for a transmission request.
  */