From fa42367ca1af350ce11e12daf1d2ed1174d7cfbe Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 27 Oct 2014 16:16:13 +0100 Subject: unity: Reference IKE_SAs by the IKEv1 COOKIEs, improving lookup performance When handling thousands of IKE_SAs, the unique ID based lookup is rather slow, as we have no indexing. --- src/libcharon/plugins/unity/unity_handler.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libcharon/plugins/unity/unity_handler.h') diff --git a/src/libcharon/plugins/unity/unity_handler.h b/src/libcharon/plugins/unity/unity_handler.h index 8656fd372..18efe293b 100644 --- a/src/libcharon/plugins/unity/unity_handler.h +++ b/src/libcharon/plugins/unity/unity_handler.h @@ -21,6 +21,7 @@ #ifndef UNITY_HANDLER_H_ #define UNITY_HANDLER_H_ +#include #include typedef struct unity_handler_t unity_handler_t; @@ -38,11 +39,11 @@ struct unity_handler_t { /** * Create an enumerator over Split-Include attributes received for an IKE_SA. * - * @param id IKE_SA unique ID to get Split-Includes for + * @param id IKE_SA ID to get Split-Includes for * @return enumerator over traffic_selector_t* */ enumerator_t* (*create_include_enumerator)(unity_handler_t *this, - u_int32_t id); + ike_sa_id_t *id); /** * Destroy a unity_handler_t. -- cgit v1.2.3