diff options
author | Martin Willi <martin@revosec.ch> | 2010-11-24 16:56:46 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-01-05 16:45:51 +0100 |
commit | 166a2a45d9283f517a5e7e0d298a2670a27c229e (patch) | |
tree | cecc4cb0539cb0bf10b70a81b00a468f185061ff /src/libcharon/encoding/message.h | |
parent | 15a612efb2bcef38498b27700e8ebee8caf0d3d9 (diff) | |
download | strongswan-166a2a45d9283f517a5e7e0d298a2670a27c229e.tar.bz2 strongswan-166a2a45d9283f517a5e7e0d298a2670a27c229e.tar.xz |
Added reserved bit mangling wrapper functions to message
Diffstat (limited to 'src/libcharon/encoding/message.h')
-rw-r--r-- | src/libcharon/encoding/message.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libcharon/encoding/message.h b/src/libcharon/encoding/message.h index 7db9e0154..0cc00acba 100644 --- a/src/libcharon/encoding/message.h +++ b/src/libcharon/encoding/message.h @@ -154,6 +154,21 @@ struct message_t { bool (*get_request) (message_t *this); /** + * Get a reserved bit in the IKE header. + * + * @param nr reserved bit to get in IKE header, 0-4 + * @return TRUE if bit is set + */ + bool (*get_reserved_header_bit)(message_t *this, u_int nr); + + /** + * Set a reserved bit in the IKE header. + * + * @param nr reserved bit to set in IKE header, 0-4 + */ + void (*set_reserved_header_bit)(message_t *this, u_int nr); + + /** * Append a payload to the message. * * If the payload must be encrypted is not specified here. Encryption |