From 2b1b484687018e11b9f19ea4552f128ccd05fe14 Mon Sep 17 00:00:00 2001 From: Jan Hutter Date: Tue, 22 Nov 2005 15:39:06 +0000 Subject: [PATCH] added encoding type IKE_SPI --- Source/charon/payloads/encodings.c | 1 + Source/charon/payloads/encodings.h | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Source/charon/payloads/encodings.c b/Source/charon/payloads/encodings.c index 75363862e..4747ddc22 100644 --- a/Source/charon/payloads/encodings.c +++ b/Source/charon/payloads/encodings.c @@ -31,6 +31,7 @@ mapping_t encoding_type_m[] = { {U_INT_16, "U_INT_16"}, {U_INT_32, "U_INT_32"}, {U_INT_64, "U_INT_64"}, + {IKE_SPI, "IKE_SPI"}, {RESERVED_BIT, "RESERVED_BIT"}, {RESERVED_BYTE, "RESERVED_BYTE"}, {FLAG, "FLAG"}, diff --git a/Source/charon/payloads/encodings.h b/Source/charon/payloads/encodings.h index 318fde429..794465821 100644 --- a/Source/charon/payloads/encodings.h +++ b/Source/charon/payloads/encodings.h @@ -306,7 +306,17 @@ enum encoding_type_e{ * * When parsing (Payload Length - 4) bytes are read and written into the chunk pointing to. */ - NONCE_DATA + NONCE_DATA, + + /** + * Representating an IKE_SPI field in an IKEv2 Header + * + * When generating the value of the u_int64_t pointing to + * is written (host and networ order is not changed). + * + * When parsing 8 bytes are read and written into the u_int64_t pointing to. + */ + IKE_SPI }; /**