diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-14 09:54:59 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-14 09:54:59 +0000 |
commit | 1509bd11e99b65f522cd4c8caf77c1a9d1c9d90d (patch) | |
tree | 30046a3acaf8434b4786b11072bb5f15726a959b /Source/charon/payloads/encodings.h | |
parent | e92ba33ff5d65d42469d5bc9698631fb2db4a926 (diff) | |
download | strongswan-1509bd11e99b65f522cd4c8caf77c1a9d1c9d90d.tar.bz2 strongswan-1509bd11e99b65f522cd4c8caf77c1a9d1c9d90d.tar.xz |
- introduced new field types
Diffstat (limited to 'Source/charon/payloads/encodings.h')
-rw-r--r-- | Source/charon/payloads/encodings.h | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/Source/charon/payloads/encodings.h b/Source/charon/payloads/encodings.h index c68ec9c42..867955d44 100644 --- a/Source/charon/payloads/encodings.h +++ b/Source/charon/payloads/encodings.h @@ -146,7 +146,19 @@ enum encoding_type_e{ */ FLAG, /** - * Representating a length field + * Representating a length field of a payload + * + * 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. + */ + PAYLOAD_LENGTH, + /** + * Representating a length field of a header * * When generating it must be changed from host to network order. * The value is read from the associated data struct. @@ -156,7 +168,7 @@ enum encoding_type_e{ * The value is written to the associated data struct. * The current read pointer is moved 32 bit forward afterwards. */ - LENGTH, + HEADER_LENGTH, /** * Representating a spi size field * @@ -168,7 +180,19 @@ enum encoding_type_e{ * The value is written to the associated data struct. * The current read pointer is moved 32 bit forward afterwards. */ - SPI_SIZE + SPI_SIZE, + /** + * Representating one or more proposal substructures + * + * The offset points to a linked_list_t pointer. + * + * When generating the proposal_substructure_t objects are stored + * in the pointed linked_list. + * + * When parsing the parsed proposal_substructure_t objects have + * to be stored in the pointed linked_list. + */ + PROPOSALS }; /** |