]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: Remove useless definition
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 27 Jan 2022 08:31:15 +0000 (09:31 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 27 Jan 2022 15:37:55 +0000 (16:37 +0100)
The quic_dgram_ctx struct has been replaced by quic_dgram struct.
There is no need to keek a typedef for a pointer to function since we
converted the UDP datagram parser (quic_dgram_read()) into a task.

include/haproxy/xprt_quic-t.h

index 3791160df36fb95e132525f75b04a49dbc955509..ee2c4d4eb6ce5e6031264721a65344c41c122f18 100644 (file)
@@ -481,22 +481,6 @@ struct quic_dghdlr {
        struct eb_root cids;
 };
 
-/* UDP datagram context used by the I/O handler receiver callbacks.
- * Useful to store the connection
- */
-struct quic_dgram_ctx {
-       struct quic_conn *qc;
-       struct quic_cid dcid;
-       void *owner;
-};
-
-/* QUIC packet reader. */
-typedef ssize_t qpkt_read_func(unsigned char *buf,
-                               const unsigned char *end,
-                               struct quic_rx_packet *qpkt,
-                               struct quic_dgram_ctx *dgram_ctx,
-                               struct sockaddr_storage *saddr);
-
 /* Structure to store enough information about the RX CRYPTO frames. */
 struct quic_rx_crypto_frm {
        struct eb64_node offset_node;