]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: remove address concatenation to ODCID
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 5 Apr 2023 07:50:17 +0000 (09:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 5 Apr 2023 09:09:57 +0000 (11:09 +0200)
commit15adc4cc4e111b46ac48818a3d2d0bd0d4453cfd
treecaa50932c262cb5eaac30c5f95fca9ddd11c1d77
parent2c98209c1c807d378c303cc65299a74730b3809a
MINOR: quic: remove address concatenation to ODCID

Previously, ODCID were concatenated with the client address. This was
done to prevent a collision between two endpoints which used the same
ODCID.

Thanks to the two previous patches, first connection generated CID is
now directly derived from the client ODCID using a hash function which
uses the client source address from the same purpose. Thus, it is now
unneeded to concatenate client address to <odcid> quic-conn member.

This change allows to simplify the quic_cid structure management and
reduce its size which is important as it is embedded several times in
various structures such as quic_conn and quic_rx_packet.

This should be backported up to 2.7.
include/haproxy/quic_conn-t.h
include/haproxy/quic_conn.h
src/quic_conn.c