aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/payloads/encodings.h
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-12-05 18:16:39 +0000
committerJan Hutter <jhutter@hsr.ch>2005-12-05 18:16:39 +0000
commit7ba3f707df54449e3119fb50e684862898aa998c (patch)
tree331f3166b3976dd3e2af48dacc6e732e206bfda2 /Source/charon/encoding/payloads/encodings.h
parentf673471b10622a5b9f0d9d0fa66cfc951541b91d (diff)
downloadstrongswan-7ba3f707df54449e3119fb50e684862898aa998c.tar.bz2
strongswan-7ba3f707df54449e3119fb50e684862898aa998c.tar.xz
- implemented and tested cp_payload_t
Diffstat (limited to 'Source/charon/encoding/payloads/encodings.h')
-rw-r--r--Source/charon/encoding/payloads/encodings.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/Source/charon/encoding/payloads/encodings.h b/Source/charon/encoding/payloads/encodings.h
index 39c6d31a1..1262a0cbe 100644
--- a/Source/charon/encoding/payloads/encodings.h
+++ b/Source/charon/encoding/payloads/encodings.h
@@ -245,6 +245,29 @@ enum encoding_type_t{
* to be stored in the pointed linked_list.
*/
TRANSFORM_ATTRIBUTES,
+
+ /**
+ * Representating one or more Attributes of a configuration payload.
+ *
+ * The offset points to a linked_list_t pointer.
+ *
+ * When generating the configuration_attribute_t objects are stored
+ * in the pointed linked_list.
+ *
+ * When parsing the parsed configuration_attribute_t objects have
+ * to be stored in the pointed linked_list.
+ */
+ CONFIGURATION_ATTRIBUTES,
+
+ /**
+ *
+ * When generating the content of the chunkt pointing to
+ * is written.
+ *
+ * When parsing (Payload Length - 4) bytes are read and written into the chunk pointing to.
+ */
+ CONFIGURATION_ATTRIBUTE_VALUE,
+
/**
* Representing a 1 Bit flag specifying the format of a transform attribute.
*
@@ -288,6 +311,20 @@ enum encoding_type_t{
ATTRIBUTE_LENGTH_OR_VALUE,
/**
+ * This field contains the length or the value of an configuration attribute.
+ * Its stored in a 16 unsigned integer field.
+ *
+ * When generating it must be changed from host to network order.
+ * The value is read from the associated data struct.
+ * The current write position is moved 16 bit forward afterwards.
+ *
+ * When parsing it must be changed from network to host order.
+ * The value is written to the associated data struct.
+ * The current read pointer is moved 16 bit forward afterwards.
+ */
+ CONFIGURATION_ATTRIBUTE_LENGTH,
+
+ /**
* Depending on the field of type ATTRIBUTE_FORMAT
* this field is available or missing and so parsed/generated
* or not parsed/not generated.