]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: quic: handle CIDs to rattach received packets to connection
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 24 Nov 2021 14:32:46 +0000 (15:32 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 25 Nov 2021 10:41:29 +0000 (11:41 +0100)
commitd6a352a58b4b890d203fb3dc489317f65a044c0f
tree3c5c8217149c1f3106adc6d6f39ef4d1a2aae04d
parent42b9f1c6dd6ffbe978112d450bfad5bca812c1b7
MEDIUM: quic: handle CIDs to rattach received packets to connection

Change the way the CIDs are organized to rattach received packets DCID
to QUIC connection. This is necessary to be able to handle multiple DCID
to one connection.

For this, the quic_connection_id structure has been extended. When
allocated, they are inserted in the receiver CID tree instead of the
quic_conn directly. When receiving a packet, the receiver tree is
inspected to retrieve the quic_connection_id. The quic_connection_id
contains now contains a reference to the QUIC connection.
include/haproxy/xprt_quic-t.h
include/haproxy/xprt_quic.h
src/xprt_quic.c