ike-sa: Add limit for the number of redirects within a defined time period

This commit is contained in:
Tobias Brunner
2016-03-04 16:03:00 +01:00
parent 7505fb8d45
commit c6ebd0332e
2 changed files with 54 additions and 0 deletions
+10
View File
@@ -65,6 +65,16 @@ typedef struct ike_sa_t ike_sa_t;
*/
#define RETRY_JITTER 20
/**
* Number of redirects allowed within REDIRECT_LOOP_DETECT_PERIOD.
*/
#define MAX_REDIRECTS 5
/**
* Time period in seconds in which at most MAX_REDIRECTS are allowed.
*/
#define REDIRECT_LOOP_DETECT_PERIOD 300
/**
* Extensions (or optional features) the peer supports
*/