From: Bart Polot Date: Tue, 12 Jun 2012 15:17:37 +0000 (+0000) Subject: - add peer blacklist API X-Git-Tag: initial-import-from-subversion-38251~13118 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3e07554a8000e87ff6120fea57333585e69367b3;p=oweals%2Fgnunet.git - add peer blacklist API --- diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h index 889c86358..9e3ef1fac 100644 --- a/src/include/gnunet_mesh_service.h +++ b/src/include/gnunet_mesh_service.h @@ -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. */