]> git.kaiwu.me - haproxy.git/commit
MINOR: quic: compare coalesced packets by DCID
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 14 Dec 2021 14:04:14 +0000 (15:04 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Dec 2021 09:59:36 +0000 (10:59 +0100)
commitadb2276524e6903a6b52ac2ec23b766fb8e0afe6
treebeae09ecec8a0ee2654ce385329a778e926510ab
parentc92cbfc01463932c732776e60c496e4e39110c60
MINOR: quic: compare coalesced packets by DCID

If an UDP datagram contains multiple QUIC packets, they must all use the
same DCID. The datagram context is used partly for this.

To ensure this, a comparison was made on the dcid_node of DCID tree. As
this is a comparison based on pointer address, it can be faulty when
nodes are removed/readded on the same pointer address.

Replace this comparison by a proper comparison on the DCID data itself.
To this end, the dgram_ctx structure contains now a quic_cid member.
include/haproxy/xprt_quic-t.h
src/xprt_quic.c