aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/unity/unity_handler.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-10-27 16:16:13 +0100
committerMartin Willi <martin@revosec.ch>2015-02-20 13:34:52 +0100
commitfa42367ca1af350ce11e12daf1d2ed1174d7cfbe (patch)
tree5f5bc6aa68924580f80af4756461bb2f06c9325f /src/libcharon/plugins/unity/unity_handler.h
parentdb80d0d2dac7da6fc7d81201728de5b870f09d06 (diff)
downloadstrongswan-fa42367ca1af350ce11e12daf1d2ed1174d7cfbe.tar.bz2
strongswan-fa42367ca1af350ce11e12daf1d2ed1174d7cfbe.tar.xz
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.
Diffstat (limited to 'src/libcharon/plugins/unity/unity_handler.h')
-rw-r--r--src/libcharon/plugins/unity/unity_handler.h5
1 files changed, 3 insertions, 2 deletions
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 <sa/ike_sa_id.h>
#include <attributes/attribute_handler.h>
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.