Skip to content
Snippets Groups Projects
Commit 87ff43c2 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Allow names for chunk types in sauth_chunk expression.

parent 8e41f785
No related branches found
No related tags found
No related merge requests found
......@@ -5459,12 +5459,9 @@ sctp_setpeerprim
};
sctp_authchunk
: '{' SAUTH_CHUNK '=' INTEGER '}' {
: '{' SAUTH_CHUNK '=' chunk_type '}' {
$$ = new_expression(EXPR_SCTP_AUTHCHUNK);
$$->value.sctp_authchunk = calloc(1, sizeof(struct sctp_authchunk_expr));
if (!is_valid_u8($4)) {
semantic_error("sauth_chunk out of range");
}
$$->value.sctp_authchunk->sauth_chunk = new_integer_expression($4, "%hhu");
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment