task-manager: Add helper function to calculate the total retransmit timeout

This commit is contained in:
Tobias Brunner
2017-05-23 18:05:58 +02:00
parent 389e4b8e67
commit bfbd3af850
2 changed files with 42 additions and 1 deletions
+11
View File
@@ -302,6 +302,17 @@ struct task_manager_t {
void (*destroy) (task_manager_t *this);
};
/**
* 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.
*