aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/payloads/ike_header.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/payloads/ike_header.c')
-rw-r--r--Source/charon/payloads/ike_header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/payloads/ike_header.c b/Source/charon/payloads/ike_header.c
index dad11b450..84b059580 100644
--- a/Source/charon/payloads/ike_header.c
+++ b/Source/charon/payloads/ike_header.c
@@ -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;
}
/*