]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: convert startup check in a freestanding function
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 5 Dec 2024 14:20:14 +0000 (15:20 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Dec 2024 17:33:50 +0000 (18:33 +0100)
commite7fd458c14e35249728abde5fadc7d50cf70b4d2
tree46ec78d3ce90d6a89721760077f3ef687375d8a2
parentd4f6f2df5e7bcdcfb4f0bf715bdb8b93685ade9c
MINOR: quic: convert startup check in a freestanding function

quic_test_socketopts() function is used to detect system support for
QUIC network stack. Previously, it relies on an already bound listener
instance, notably to ensure that two UDP sockets can be bound on the
same source address.

Improve quic_test_socketopts() to run without any listener argument. It
now automatically instantiates and manipulates two dummy sockets FDs to
check for multi-bind support. This brings two advantages :
* the function is now called via an initcall
* it will easily be reusable to implement build option description
src/proto_quic.c