From c93c7a7560b06f1cc11e3fbac3c6857f7ebcf79c Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 24 Nov 2010 16:34:16 +0100 Subject: Added member fields for reserved bits and bytes in all payloads --- src/libcharon/encoding/payloads/configuration_attribute.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/libcharon/encoding/payloads/configuration_attribute.c') 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 @@ -35,6 +35,11 @@ struct private_configuration_attribute_t { */ configuration_attribute_t public; + /** + * Reserved bit + */ + bool reserved; + /** * Type of the attribute. */ @@ -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 */ -- cgit v1.2.3