From b8f60b3c6691e9add06b5387dff4e76aaf04ebf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 3 Mar 2021 16:04:28 +0100 Subject: [PATCH] MINOR: quic: Add a new definition to store STREAM frames. Add a new structure to store enough information about STREAM frames which must be stored before being delivered to the application layer, for any reason. --- include/haproxy/xprt_quic-t.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index d55c36bc1..368b5cba8 100644 --- a/include/haproxy/xprt_quic-t.h +++ b/include/haproxy/xprt_quic-t.h @@ -445,6 +445,14 @@ struct quic_rx_crypto_frm { struct quic_rx_packet *pkt; }; +/* Structure to store information about RX STREAM frames. */ +struct quic_rx_strm_frm { + struct eb64_node offset_node; + uint64_t len; + const unsigned char *data; + struct quic_rx_packet *pkt; +}; + /* Flag a sent packet as being an ack-eliciting packet. */ #define QUIC_FL_TX_PACKET_ACK_ELICITING (1UL << 0) /* Flag a sent packet as containing a PADDING frame. */