diff options
author | Martin Willi <martin@revosec.ch> | 2010-11-24 16:34:16 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-01-05 16:45:51 +0100 |
commit | c93c7a7560b06f1cc11e3fbac3c6857f7ebcf79c (patch) | |
tree | 8cc102c44f568f0478f53221e3dfd8f63dc39e81 /src/libcharon/encoding/payloads/configuration_attribute.c | |
parent | 1b671248c266bab03511a952f4bafaef7c591775 (diff) | |
download | strongswan-c93c7a7560b06f1cc11e3fbac3c6857f7ebcf79c.tar.bz2 strongswan-c93c7a7560b06f1cc11e3fbac3c6857f7ebcf79c.tar.xz |
Added member fields for reserved bits and bytes in all payloads
Diffstat (limited to 'src/libcharon/encoding/payloads/configuration_attribute.c')
-rw-r--r-- | src/libcharon/encoding/payloads/configuration_attribute.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libcharon/encoding/payloads/configuration_attribute.c b/src/libcharon/encoding/payloads/configuration_attribute.c index 4857c450a..e608497bd 100644 --- a/src/libcharon/encoding/payloads/configuration_attribute.c +++ b/src/libcharon/encoding/payloads/configuration_attribute.c @@ -36,6 +36,11 @@ struct private_configuration_attribute_t { configuration_attribute_t public; /** + * Reserved bit + */ + bool reserved; + + /** * Type of the attribute. */ u_int16_t type; @@ -58,8 +63,8 @@ struct private_configuration_attribute_t { * private_configuration_attribute_t. */ encoding_rule_t configuration_attribute_encodings[] = { - - { RESERVED_BIT, 0 }, + /* 1 reserved bit */ + { RESERVED_BIT, offsetof(private_configuration_attribute_t, reserved)}, /* type of the attribute as 15 bit unsigned integer */ { ATTRIBUTE_TYPE, offsetof(private_configuration_attribute_t, type) }, /* Length of attribute value */ |