aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/load_tester/load_tester_ipsec.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-10-21 13:00:38 +0000
committerMartin Willi <martin@strongswan.org>2008-10-21 13:00:38 +0000
commit0fd6e9556201c12d9e5fe63e5a11ff9c9d404062 (patch)
tree0f43ce0caabc3af757dffaea0730a3a0f5db329f /src/charon/plugins/load_tester/load_tester_ipsec.h
parent6df2837a8ce54887e142082f48a64f879b28c092 (diff)
downloadstrongswan-0fd6e9556201c12d9e5fe63e5a11ff9c9d404062.tar.bz2
strongswan-0fd6e9556201c12d9e5fe63e5a11ff9c9d404062.tar.xz
a load testing plugin, to:
find multi-threading issues do performance profiling
Diffstat (limited to 'src/charon/plugins/load_tester/load_tester_ipsec.h')
-rw-r--r--src/charon/plugins/load_tester/load_tester_ipsec.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/charon/plugins/load_tester/load_tester_ipsec.h b/src/charon/plugins/load_tester/load_tester_ipsec.h
new file mode 100644
index 000000000..34a99dcbd
--- /dev/null
+++ b/src/charon/plugins/load_tester/load_tester_ipsec.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2008 Martin Willi
+ * Hochschule fuer Technik Rapperswil
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * $Id$
+ */
+
+/**
+ * @defgroup load_tester_ipsec_i load_tester_ipsec
+ * @{ @ingroup load_tester
+ */
+
+#ifndef LOAD_TESTER_IPSEC_H_
+#define LOAD_TESTER_IPSEC_H_
+
+#include <kernel/kernel_ipsec.h>
+
+typedef struct load_tester_ipsec_t load_tester_ipsec_t;
+
+/**
+ * Implementation of a fake kernel ipsec interface for load testing.
+ */
+struct load_tester_ipsec_t {
+
+ /**
+ * Implements kernel_ipsec_t interface
+ */
+ kernel_ipsec_t interface;
+};
+
+/**
+ * Create a faked kernel ipsec interface instance.
+ *
+ * @return kernel_load_tester_ipsec_t instance
+ */
+load_tester_ipsec_t *load_tester_ipsec_create();
+
+#endif /* LOAD_TESTER_IPSEC_H_ @} */