]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: quic: Move qc_pkt_long() to quic_rx.h
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 27 Nov 2023 17:00:25 +0000 (18:00 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Tue, 28 Nov 2023 14:37:50 +0000 (15:37 +0100)
This inlined function takes a quic_rx_packet struct as argument unique argument.
Let's move it to QUIC RX part.

include/haproxy/quic_conn.h
include/haproxy/quic_rx.h

index af712a8d117fadca8c8f8551d3d1a91b783e142d..a7a731d376f8df53464b4a488542ae2694c0f2e9 100644 (file)
@@ -147,12 +147,6 @@ static inline void quic_connection_id_to_frm_cpy(struct quic_frame *dst,
        ncid_frm->stateless_reset_token = src->stateless_reset_token;
 }
 
-/* Return 1 if <pkt> header form is long, 0 if not. */
-static inline int qc_pkt_long(const struct quic_rx_packet *pkt)
-{
-       return pkt->type != QUIC_PACKET_TYPE_SHORT;
-}
-
 void chunk_frm_appendf(struct buffer *buf, const struct quic_frame *frm);
 
 void quic_set_connection_close(struct quic_conn *qc, const struct quic_err err);
index 4cde1ad9d2d610495e4361b9f375093a5f57e236..dd2d6289c720922d50daf9e5499dd004c777d592 100644 (file)
@@ -50,4 +50,10 @@ static inline void quic_rx_packet_refdec(struct quic_rx_packet *pkt)
                pkt->refcnt--;
 }
 
+/* Return 1 if <pkt> header form is long, 0 if not. */
+static inline int qc_pkt_long(const struct quic_rx_packet *pkt)
+{
+       return pkt->type != QUIC_PACKET_TYPE_SHORT;
+}
+
 #endif /* _HAPROXY_QUIC_RX_H */