added encoding type IKE_SPI
authorJan Hutter <jhutter@hsr.ch>
Tue, 22 Nov 2005 15:39:06 +0000 (15:39 -0000)
committerJan Hutter <jhutter@hsr.ch>
Tue, 22 Nov 2005 15:39:06 +0000 (15:39 -0000)
Source/charon/payloads/encodings.c
Source/charon/payloads/encodings.h

index 7536386..4747ddc 100644 (file)
@@ -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"},
index 318fde4..7944658 100644 (file)
@@ -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
 };
 
 /**