diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-16 16:50:13 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-16 16:50:13 +0000 |
commit | 91443667d532bb3336800babdbcc993318c29cdf (patch) | |
tree | 8e6815d6352b2ebd95569f7e6093ce36ecf0d9dd /Source/charon/message.h | |
parent | a5e8260abf867e8c503d2e241a1052e1959b813e (diff) | |
download | strongswan-91443667d532bb3336800babdbcc993318c29cdf.tar.bz2 strongswan-91443667d532bb3336800babdbcc993318c29cdf.tar.xz |
- spi_t replaced with u_int64_t
Diffstat (limited to 'Source/charon/message.h')
-rw-r--r-- | Source/charon/message.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/charon/message.h b/Source/charon/message.h index 7fbeb2e7a..f08076284 100644 --- a/Source/charon/message.h +++ b/Source/charon/message.h @@ -158,6 +158,18 @@ struct message_s { * - EXCHANGE_TYPE_NOT_SET if exchange type is currently not set * .... */ + + /** + * @brief Parses header of message + * + * @param this message_t object + * @return + * - SUCCESS if header could be parsed + * - NOT_SUPPORTED if payload_type is not supported + * - OUT_OF_RES if out of ressources + * - PARSE_ERROR if corrupted/invalid data found + */ + status_t (*parse_header) (message_t *this); status_t (*generate) (message_t *this, packet_t **packet); status_t (*get_source) (message_t *this, host_t **host); |