aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/payloads/encodings.h
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-29 15:23:04 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-29 15:23:04 +0000
commit7da522ba73ed0a42445c1fb48efa18a85338b600 (patch)
tree3080e0997aecf127647e419605a24dfd69a2891c /Source/charon/encoding/payloads/encodings.h
parent346af6f3de4735b2c7c8b6abf824bd0258c4be6c (diff)
downloadstrongswan-7da522ba73ed0a42445c1fb48efa18a85338b600.tar.bz2
strongswan-7da522ba73ed0a42445c1fb48efa18a85338b600.tar.xz
- implemented and tested ts_payload_t
Diffstat (limited to 'Source/charon/encoding/payloads/encodings.h')
-rw-r--r--Source/charon/encoding/payloads/encodings.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/Source/charon/encoding/payloads/encodings.h b/Source/charon/encoding/payloads/encodings.h
index 106419bf2..edc26990b 100644
--- a/Source/charon/encoding/payloads/encodings.h
+++ b/Source/charon/encoding/payloads/encodings.h
@@ -298,6 +298,45 @@ enum encoding_type_t{
* When parsing SPI_SIZE bytes are read and written into the chunk pointing to.
*/
ATTRIBUTE_VALUE,
+
+ /**
+ * Representating one or more Traffic selectors of a TS payload.
+ *
+ * The offset points to a linked_list_t pointer.
+ *
+ * When generating the traffic_selector_substructure_t objects are stored
+ * in the pointed linked_list.
+ *
+ * When parsing the parsed traffic_selector_substructure_t objects have
+ * to be stored in the pointed linked_list.
+ */
+ TRAFFIC_SELECTORS,
+
+ /**
+ * Representating a Traffic selector type 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.
+ */
+ TS_TYPE,
+
+ /**
+ * Representating an address field in a traffic selector.
+ *
+ * Depending on the last field of type TS_TYPE
+ * this field is either 4 or 16 byte long.
+ *
+ * When generating the content of the chunkt pointing to
+ * is written.
+ *
+ * When parsing 4 or 16 bytes are read and written into the chunk pointing to.
+ */
+ ADDRESS,
/**
* Representating a Nonce Data field.