allow multiple DELETE payloads in an informational message

This commit is contained in:
Martin Willi 2008-09-11 11:14:09 +00:00
parent b1f4785428
commit 346bb576a2
1 changed files with 7 additions and 2 deletions

View File

@ -39,6 +39,11 @@
*/
#define MAX_NOTIFY_PAYLOADS 20
/**
* Max number of delete payloads per IKEv2 Message
*/
#define MAX_DELETE_PAYLOADS 20
typedef struct payload_rule_t payload_rule_t;
@ -299,7 +304,7 @@ static payload_rule_t informational_i_payload_rules[] = {
/* payload type min max encr suff */
{NOTIFY, 0, MAX_NOTIFY_PAYLOADS, TRUE, FALSE},
{CONFIGURATION, 0, 1, TRUE, FALSE},
{DELETE, 0, 1, TRUE, FALSE},
{DELETE, 0, MAX_DELETE_PAYLOADS, TRUE, FALSE},
{VENDOR_ID, 0, 10, TRUE, FALSE},
};
@ -324,7 +329,7 @@ static payload_rule_t informational_r_payload_rules[] = {
/* payload type min max encr suff */
{NOTIFY, 0, MAX_NOTIFY_PAYLOADS, TRUE, FALSE},
{CONFIGURATION, 0, 1, TRUE, FALSE},
{DELETE, 0, 1, TRUE, FALSE},
{DELETE, 0, MAX_DELETE_PAYLOADS, TRUE, FALSE},
{VENDOR_ID, 0, 10, TRUE, FALSE},
};