MINOR: protocol: Create proto_quic QUIC protocol layer.
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 2 Nov 2020 13:27:08 +0000 (14:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Dec 2020 10:57:26 +0000 (11:57 +0100)
commitca42b2c9d342ce78d38351f85e8e02ff4b0ddaf5
tree63baea7601c7f5dd4b7ee2971e3824d7f8b786d0
parent9eea56009dfc0f259f93511b5fa588cb480a039d
MINOR: protocol: Create proto_quic QUIC protocol layer.

As QUIC is a connection oriented protocol, this file is almost a copy of
proto_tcp without TCP specific features. To suspend/resume a QUIC receiver
we proceed the same way as for proto_udp receivers.

With the recent updates to the listeners, we don't need a specific set of
quic*_add_listener() functions, the default ones are sufficient. The fields
declaration were reordered to make the various layers more visible like in
other protocols.

udp_suspend_receiver/udp_resume_receiver are up-to-date (the check for INHERITED
is present) and the code being UDP-specific, it's normal to use UDP here.
Note that in the future we might more reasily reference stacked layers so that
there's no more need for specifying the pointer here.
include/haproxy/proto_quic.h [new file with mode: 0644]
src/proto_quic.c [new file with mode: 0644]