]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: extract datagram parsing code
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 27 Sep 2022 12:22:09 +0000 (14:22 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 2 Dec 2022 13:45:43 +0000 (14:45 +0100)
commit8687b63c69f359e0938e939a6c4ca61a42e43446
tree55d72e6c516ec3939dbe96abffeb154901051efb
parent3f474e64c85da37e65c1c58dddc48a474dc0d6a3
MINOR: quic: extract datagram parsing code

Extract individual datagram parsing code outside of datagrams list loop
in quic_lstnr_dghdlr(). This is moved in a new function named
quic_dgram_parse().

To complete this change, quic_lstnr_dghdlr() has been moved into
quic_sock source file : it belongs to QUIC socket lower layer and is
directly called by quic_sock_fd_iocb().

This commit will ease implementation of quic-conn owned socket.
New function quic_dgram_parse() will be easily usable after a receive
operation done on quic-conn IO-cb.

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