]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: extend Retry token check function
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 17 Oct 2022 09:13:07 +0000 (11:13 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Oct 2022 16:45:58 +0000 (18:45 +0200)
commit9e3026c58dcd4444c462193a9a8f1e1027e4f550
tree4dd0e2ed49edf126f82934668430693be9bcec2d
parent6e56a9e05524862a7e415d87d0d46f28a5b9a999
MINOR: quic: extend Retry token check function

On Initial packet reception, token is checked for validity through
quic_retry_token_check() function. However, some related parts were left
in the parent function quic_rx_pkt_retrieve_conn(). Move this code
directly into quic_retry_token_check() to facilitate its call in various
context.

The API of quic_retry_token_check() has also been refactored. Instead of
working on a plain char* buffer, it now uses a quic_rx_packet instance.
This helps to reduce the number of parameters.

This change will allow to check Retry token even if data were received
with a FD-owned quic-conn socket. Indeed, in this case,
quic_rx_pkt_retrieve_conn() call will probably be skipped.

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