From 3e07554a8000e87ff6120fea57333585e69367b3 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 12 Jun 2012 15:17:37 +0000 Subject: [PATCH] - add peer blacklist API --- src/include/gnunet_mesh_service.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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. */ -- 2.25.1