]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Allocate QUIC datagrams from sock I/O handler
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 26 Jan 2022 15:07:16 +0000 (16:07 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 27 Jan 2022 15:37:55 +0000 (16:37 +0100)
commit3d4bfe708add075b995584e7b2d5915a69d68e05
tree595adba218e15518094c38a31fa621ff2b70b138
parent53898bba815bf635b90c52e4a154ecba3a1de7e9
MINOR: quic: Allocate QUIC datagrams from sock I/O handler

Add quic_dgram new structure to store information about datagrams received
by the sock I/O handler (quic_sock_fd_iocb) and its associated pool.
Implement quic_get_dgram_dcid() to retrieve the datagram DCID which must
be the same for all the packets in the datagram.
Modify quic_lstnr_dgram_read() called by the sock I/O handler to allocate
a quic_dgram each time a correct datagram is found and add it to the sock I/O
handler rxbuf dgram list.
include/haproxy/xprt_quic-t.h
include/haproxy/xprt_quic.h
src/quic_sock.c
src/xprt_quic.c