]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: warn on bind on multiple addresses if no IP_PKTINFO support
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 16 Feb 2024 14:40:06 +0000 (15:40 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Feb 2024 15:40:14 +0000 (16:40 +0100)
commit9b806550b79f7b8ec1f1e11a74472a6fa3379162
tree90c3ef15d2cf62d7b32313a4cca945003f2ea2e2
parentf01ae9f07574f8f0ca6c5635f11bcfbfeb3bd5a0
MINOR: quic: warn on bind on multiple addresses if no IP_PKTINFO support

Binding on multiple addresses for QUIC is safe only if IP_PKTINFO or
equivalent is available. Else, the behavior may be undefined as the
system is responsible to choose the network interface and source address
on response.

This commit adds a warning on boot if no or partial support for
IP_PKTINFO or equivalent is detected and configuration contains UDP
binding on multiple addresses.

This should be backported up to 2.6. Special backport recommdations :
* change ha_warning() to ha_diag_warning() to ensure no spurrious
  warnings will be triggered on stable releases
* IP_PKTINFO usage was introduced on 2.7. For 2.6, multiple addresses
  QUIC binding is always unreliable. As such, preprocessor condition
  must simply be removed so that the warning is always active regarding
  of the system. Warning message should also be truncated to suppress
  IP_PKTINFO reference.
src/listener.c