summaryrefslogtreecommitdiff
path: root/src/libcharon/encoding/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/encoding/parser.c')
-rw-r--r--src/libcharon/encoding/parser.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libcharon/encoding/parser.c b/src/libcharon/encoding/parser.c
index 9aa34b1bc..7a5ec8495 100644
--- a/src/libcharon/encoding/parser.c
+++ b/src/libcharon/encoding/parser.c
@@ -387,12 +387,15 @@ static status_t parse_payload(private_parser_t *this,
DBG3(DBG_ENC, "parsing payload from %b",
this->byte_pos, this->input_roof - this->byte_pos);
+<<<<<<< HEAD
if (pld->get_type(pld) == UNKNOWN_PAYLOAD)
{
DBG1(DBG_ENC, " payload type %d is unknown, handling as %N",
payload_type, payload_type_names, UNKNOWN_PAYLOAD);
}
+=======
+>>>>>>> upstream/4.5.1
/* base pointer for output, avoids casting in every rule */
output = pld;
@@ -415,6 +418,10 @@ static status_t parse_payload(private_parser_t *this,
break;
}
case U_INT_8:
+<<<<<<< HEAD
+=======
+ case RESERVED_BYTE:
+>>>>>>> upstream/4.5.1
{
if (!parse_uint8(this, rule_number, output + rule->offset))
{
@@ -433,6 +440,10 @@ static status_t parse_payload(private_parser_t *this,
break;
}
case U_INT_32:
+<<<<<<< HEAD
+=======
+ case HEADER_LENGTH:
+>>>>>>> upstream/4.5.1
{
if (!parse_uint32(this, rule_number, output + rule->offset))
{
@@ -451,6 +462,7 @@ static status_t parse_payload(private_parser_t *this,
break;
}
case RESERVED_BIT:
+<<<<<<< HEAD
{
if (!parse_bit(this, rule_number, NULL))
{
@@ -468,6 +480,8 @@ static status_t parse_payload(private_parser_t *this,
}
break;
}
+=======
+>>>>>>> upstream/4.5.1
case FLAG:
{
if (!parse_bit(this, rule_number, output + rule->offset))
@@ -493,6 +507,7 @@ static status_t parse_payload(private_parser_t *this,
}
break;
}
+<<<<<<< HEAD
case HEADER_LENGTH:
{
if (!parse_uint32(this, rule_number, output + rule->offset))
@@ -502,6 +517,8 @@ static status_t parse_payload(private_parser_t *this,
}
break;
}
+=======
+>>>>>>> upstream/4.5.1
case SPI_SIZE:
{
if (!parse_uint8(this, rule_number, output + rule->offset))