aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/task_manager.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-03-13 12:00:40 +0100
committerTobias Brunner <tobias@strongswan.org>2017-05-23 18:05:58 +0200
commitbfbd3af8506052fa3a331bd151453795913d3645 (patch)
tree837724ed5327d903c334db9c123e5fcb979de7cb /src/libcharon/sa/task_manager.h
parent389e4b8e673fe679c3074f5563c3581b3271ef2a (diff)
downloadstrongswan-bfbd3af8506052fa3a331bd151453795913d3645.tar.bz2
strongswan-bfbd3af8506052fa3a331bd151453795913d3645.tar.xz
task-manager: Add helper function to calculate the total retransmit timeout
Diffstat (limited to 'src/libcharon/sa/task_manager.h')
-rw-r--r--src/libcharon/sa/task_manager.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libcharon/sa/task_manager.h b/src/libcharon/sa/task_manager.h
index 4d3f9bef5..e3fddf39b 100644
--- a/src/libcharon/sa/task_manager.h
+++ b/src/libcharon/sa/task_manager.h
@@ -303,6 +303,17 @@ struct task_manager_t {
};
/**
+ * Calculate total timeout of the retransmission mechanism.
+ *
+ * This is affected by modifications of retransmit_base, retransmit_timeout,
+ * retransmit_limit or retransmit_tries. The resulting value can then be used
+ * e.g. in kernel plugins to set the system's acquire timeout properly.
+ *
+ * @return calculated total retransmission timeout in seconds
+ */
+u_int task_manager_total_retransmit_timeout();
+
+/**
* Create a task manager instance for the correct IKE version.
*
* @param ike_sa IKE_SA to create a task manager for