ike: Use optional jitter to calculate retransmission timeouts

Also adds an optional limit to avoid very high retransmission timeouts
with high numbers of retries.
This commit is contained in:
Tobias Brunner
2017-05-23 18:02:15 +02:00
parent d140b3bd3f
commit 389e4b8e67
5 changed files with 75 additions and 6 deletions
+5
View File
@@ -47,6 +47,11 @@ typedef enum task_queue_t task_queue_t;
*/
#define RETRANSMIT_TRIES 5
/**
* Maximum jitter in percent.
*/
#define RETRANSMIT_JITTER_MAX 20
/**
* Interval for mobike routability checks in ms.
*/