Detect a peer's support for IKE fragmentation

Fragments are accepted even if this vendor ID is not seen.
This commit is contained in:
Tobias Brunner
2012-12-24 12:29:27 +01:00
parent fe26ddada9
commit 667720c801
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -126,6 +126,11 @@ enum ike_extension_t {
* draft-ietf-ipsec-nat-t-ike-02 .. -03
*/
EXT_NATT_DRAFT_02_03 = (1<<10),
/**
* peer support proprietary IKE fragmentation
*/
EXT_IKE_FRAGMENTATION = (1<<11),
};
/**
@@ -99,6 +99,10 @@ static struct {
{ "Cisco Unity", EXT_CISCO_UNITY, FALSE, 16,
"\x12\xf5\xf2\x8c\x45\x71\x68\xa9\x70\x2d\x9f\xe2\x74\xcc\x01\x00"},
/* Proprietary IKE fragmentation extension (0x800000 is added by racoon) */
{ "FRAGMENTATION", EXT_IKE_FRAGMENTATION, FALSE, 20,
"\x40\x48\xb7\xd5\x6e\xbc\xe8\x85\x25\xe7\xde\x7f\x00\xd6\xc2\xd3\x80\x00\x00\x00"},
}, vendor_natt_ids[] = {
/* NAT-Traversal VIDs ordered by preference */