]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add a new definition to store STREAM frames.
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 3 Mar 2021 15:04:28 +0000 (16:04 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
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

index d55c36bc15463652d0ec732b9699dd95df4028a9..368b5cba83e16f611fbf861b62a298d3419d6cef 100644 (file)
@@ -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. */