]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: split and rename qc_lstnr_pkt_rcv()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Oct 2022 13:37:44 +0000 (15:37 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Oct 2022 16:45:55 +0000 (18:45 +0200)
commit982896961ccfb9054c2b527b552293716658dc15
treea3c170ee95df126747477e96d28c76d0b47dc595
parent449b1a8f552ddbf08be707fae1824a79fe862955
MINOR: quic: split and rename qc_lstnr_pkt_rcv()

This change is the following of qc_lstnr_pkt_rcv() refactoring. This
function has finally been split into several ones.

The first half is renamed quic_rx_pkt_parse(). This function is
responsible to parse a QUIC packet header and calculate the packet
length.

QUIC connection retrieval has been extracted and is now called directly
by quic_lstnr_dghdlr().

The second half of qc_lstnr_pkt_rcv() is renamed to qc_rx_pkt_handle().
This function is responsible to copy a QUIC packet content to a
quic-conn receive buffer.

A third function named qc_rx_check_closing() is responsible to detect if
the connection is already in closing state. As this requires to drop the
whole datagram, it seems justified to be in a separate function.

This change has no functional impact. It is part of a refactoring series
on qc_lstnr_pkt_rcv(). The objective is to facilitate the integration of
FD-owned quic-conn socket patches.

This should be backported up to 2.6.
src/quic_conn.c