]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: h2: declare new sets of frame types
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 08:31:40 +0000 (09:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 14:27:06 +0000 (15:27 +0100)
This patch adds H2_FT_HDR_MASK to group all frame types carrying headers
information, and H2_FT_LATE_MASK to group frame types allowed to arrive
after a stream was closed.

include/common/h2.h

index 507a291b081206da85a1a925943cf4cea1640fcb..1ef57b55274c15bb7aaf48c1ff5be53b4b1bb0ba 100644 (file)
@@ -96,9 +96,13 @@ enum {
        H2_FT_WINDOW_UPDATE_BIT = 1U << H2_FT_WINDOW_UPDATE,
        H2_FT_CONTINUATION_BIT  = 1U << H2_FT_CONTINUATION,
        /* padded frames */
-       H2_FT_PADDED_MASK       = (1U << H2_FT_DATA) | (1U << H2_FT_HEADERS) | (1U << H2_FT_PUSH_PROMISE),
+       H2_FT_PADDED_MASK       = H2_FT_DATA_BIT | H2_FT_HEADERS_BIT | H2_FT_PUSH_PROMISE_BIT,
        /* flow controlled frames */
-       H2_FT_FC_MASK           = (1U << H2_FT_DATA),
+       H2_FT_FC_MASK           = H2_FT_DATA_BIT,
+       /* header frames */
+       H2_FT_HDR_MASK          = H2_FT_HEADERS_BIT | H2_FT_PUSH_PROMISE_BIT | H2_FT_CONTINUATION_BIT,
+       /* frames allowed to arrive late on a stream */
+       H2_FT_LATE_MASK         = H2_FT_WINDOW_UPDATE_BIT | H2_FT_RST_STREAM_BIT | H2_FT_PRIORITY_BIT,
 };