]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: udp: allow to retrieve the frontend destination address
authorDragan Dosen <ddosen@haproxy.com>
Tue, 19 Dec 2023 11:46:01 +0000 (12:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Jan 2024 10:44:42 +0000 (11:44 +0100)
commit96c1a61136e81003ebe119f9bd032f4b5676ef68
treefd4e5640c91cf0ea13ea323755f3ab206bb3420e
parent1582ccf9d31366de3d2c21b170cb51f672684c99
MEDIUM: udp: allow to retrieve the frontend destination address

A new flag RX_F_PASS_PKTINFO is now available, whose purpose is to mark
that the destination address is about to be retrieved on some listeners.

The address can be retrieved from the first received datagram, and
relies on the IP_PKTINFO, IP_RECVDSTADDR and IPV6_RECVPKTINFO support.
include/haproxy/receiver-t.h
src/proto_udp.c