]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic-sock: provide a pair of get_src/get_dst functions
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Apr 2022 14:20:00 +0000 (16:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Apr 2022 17:33:04 +0000 (19:33 +0200)
commitcdf7c8e543d58e24ea94eabb0096b56065f77ba8
treed617a4abfba3ba97ff92e467e31ab3f0636340ab
parente151609110913b1c9c8d83c991c39a76582d659e
MINOR: quic-sock: provide a pair of get_src/get_dst functions

These functions will allow the connection layer to retrieve a quic_conn's
source or destination when possible. The quic_conn holds the peer's address
but not the local one, and the sockets API doesn't always makes that easy
for datagrams. Thus for frontend connection what we're doing here is to
retrieve the listener's address when the destination address is desired.

Now it finally becomes possible to fetch the source and destination using
"src" and "dst", and to pass an incoming connection's endpoints via the
proxy protocol.
include/haproxy/quic_sock.h
src/proto_quic.c
src/quic_sock.c