MINOR: quic: extend return value of CRYPTO parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 4 Nov 2024 16:27:39 +0000 (17:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 8 Nov 2024 14:54:11 +0000 (15:54 +0100)
commit19c4b37c9fa38d4ec8675b5533efa65b0ec4247c
treee9188b2938c2e3beeb751cd06a0692dff7886014
parent67aa5ae0e5c054bfbdace81c51b951c16d6348bf
MINOR: quic: extend return value of CRYPTO parsing

qc_handle_crypto_frm() is the function used to handled a newly received
CRYPTO frame. Change its API to use a newly dedicated return type. This
allows to report if the frame was properly handled, ignored if already
parsed previously or rejected after a fatal error.

This commit does not have any functional changes. However, it allows to
simplify qc_handle_crypto_frm() API by removing <fast_retrans> as output
parameter. Also, this patch will be necessary to support multiple
iteration of packet parsing for CRYPTO frames.

(cherry picked from commit d65e782c8cd2f8554404dd1424e2d64f3786edb1)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/quic_rx-t.h
src/quic_rx.c