Interpret attribute format correctly in IKEv1 configuration format

This commit is contained in:
Martin Willi
2012-03-20 17:31:16 +01:00
parent 9f43868a01
commit c9e5998d7f
@@ -97,7 +97,7 @@ static encoding_rule_t encodings_v2[] = {
*/ */
static encoding_rule_t encodings_v1[] = { static encoding_rule_t encodings_v1[] = {
/* AF Flag */ /* AF Flag */
{ FLAG, offsetof(private_configuration_attribute_t, af_flag) }, { ATTRIBUTE_FORMAT, offsetof(private_configuration_attribute_t, af_flag) },
/* type of the attribute as 15 bit unsigned integer */ /* type of the attribute as 15 bit unsigned integer */
{ ATTRIBUTE_TYPE, offsetof(private_configuration_attribute_t, attr_type) }, { ATTRIBUTE_TYPE, offsetof(private_configuration_attribute_t, attr_type) },
/* Length of attribute value */ /* Length of attribute value */