aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/encoding/payloads/configuration_attribute.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-11-24 16:34:16 +0100
committerMartin Willi <martin@revosec.ch>2011-01-05 16:45:51 +0100
commitc93c7a7560b06f1cc11e3fbac3c6857f7ebcf79c (patch)
tree8cc102c44f568f0478f53221e3dfd8f63dc39e81 /src/libcharon/encoding/payloads/configuration_attribute.c
parent1b671248c266bab03511a952f4bafaef7c591775 (diff)
downloadstrongswan-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.c9
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 */