]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: set IP_PKTINFO socket option for QUIC receivers only
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 11 Oct 2022 14:22:18 +0000 (16:22 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 11 Oct 2022 14:46:04 +0000 (16:46 +0200)
commit487d04f6d7410059b44b69d56c53be7802963bab
treef3ec8f5b3e791da4a0ab156f64ddfdabf2e3ce6c
parentcab054bbf9908f3732648e5236d889650a6e33f7
BUG/MINOR: quic: set IP_PKTINFO socket option for QUIC receivers only

Move code which activates IP_PKTINFO socket option (or affiliated
options) from sock_inet_bind_receiver() to quic_bind_listener()
function. This change is useful for two reasons :

* first, and the most important one : this activates IP_PKTINFO only for
  QUIC receivers. The previous version impacted all datagram receivers,
  used for example by log-forwarder. This should reduce memory usage for
  these datagram sockets which do not need this option.

* second, USE_QUIC preprocessor statements are removed from
  src/sock_inet.c which clean up the code.

IP_PKTINFO was introduced recently by the following patch :
  97ecc7a8ea5339a753507c3d4e4cd83028c6d038 (quic-dev/qns)
  MEDIUM: quic: retrieve frontend destination address

For the moment, this does not impact any stable release. However, as
previous patch is scheduled for 2.6 backporting, the current change must
also be backported to the same versions.
src/proto_quic.c
src/sock_inet.c