Introduced payload types sa_payload and proposal_substructure

This commit is contained in:
Jan Hutter
2005-11-14 10:14:22 +00:00
parent 1b89ef112e
commit da42afc5ec
9 changed files with 608 additions and 6 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ encoding_rule_t ike_header_encodings[] = {
/* 4 Byte message id, stored in the field message_id */
{ U_INT_32, offsetof(ike_header_t, message_id) },
/* 4 Byte length fied, stored in the field length */
{ LENGTH, offsetof(ike_header_t, length) }
{ HEADER_LENGTH, offsetof(ike_header_t, length) }
};
@@ -116,7 +116,7 @@ static payload_type_t get_next_type(payload_t *this)
*/
static size_t get_length(payload_t *this)
{
return sizeof(ike_header_t);
return IKE_HEADER_LENGTH;
}
/*