]> git.kaiwu.me - haproxy.git/commit
MINOR: quic: refactor frame parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Feb 2025 13:53:14 +0000 (14:53 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 2 Apr 2026 12:02:04 +0000 (14:02 +0200)
commit48e41e4ce0ef27af4251732899fda0ea6f901e34
tree9322c4f04912132afbb57c295655e91b2d7f9ac5
parent1e08247961e482b68ecbfd384d3f74792047cfbe
MINOR: quic: refactor frame parsing

This patch refactors parsing in QUIC frame module. Function
qc_parse_frm() has been splitted in three :
* qc_parse_frm_type()
* qc_parse_frm_pkt()
* qc_parse_frm_payload()

No functional change. The main objective of this patch is to facilitate
a QMux implementation. One of the gain is the ability to manipulate QUIC
frames without any reference to a QUIC packet as it is irrelevant for
QMux. Also, quic_set_connection_close() calls are extracted as this
relies on qc type. The caller is now responsible to set the required
error code.
include/haproxy/quic_frame.h
src/quic_frame.c
src/quic_rx.c