From: Frédéric Lécaille Date: Thu, 27 Jan 2022 08:31:15 +0000 (+0100) Subject: CLEANUP: quic: Remove useless definition X-Git-Tag: v2.6-dev1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d152309423c4a235d1887f24cd1d1f566219c7d0;p=thirdparty%2Fhaproxy.git CLEANUP: quic: Remove useless definition 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. --- diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index 3791160df3..ee2c4d4eb6 100644 --- a/include/haproxy/xprt_quic-t.h +++ b/include/haproxy/xprt_quic-t.h @@ -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;