diff --git a/include/haproxy/quic_sock.h b/include/haproxy/quic_sock.h index 55ea170a1..89f7f158b 100644 --- a/include/haproxy/quic_sock.h +++ b/include/haproxy/quic_sock.h @@ -46,6 +46,7 @@ void quic_lstnr_sock_fd_iocb(int fd); int qc_snd_buf(struct quic_conn *qc, const struct buffer *buf, size_t count, int flags); int qc_rcv_buf(struct quic_conn *qc); +void quic_conn_sock_fd_iocb(int fd); /* Set default value for socket as uninitialized. */ static inline void qc_init_fd(struct quic_conn *qc) diff --git a/src/quic_sock.c b/src/quic_sock.c index 16c4c644f..6dde545e9 100644 --- a/src/quic_sock.c +++ b/src/quic_sock.c @@ -486,7 +486,7 @@ void quic_lstnr_sock_fd_iocb(int fd) } /* FD-owned quic-conn socket callback. */ -static void quic_conn_sock_fd_iocb(int fd) +void quic_conn_sock_fd_iocb(int fd) { struct quic_conn *qc = fdtab[fd].owner; diff --git a/src/tools.c b/src/tools.c index f7fdfff81..a4572b954 100644 --- a/src/tools.c +++ b/src/tools.c @@ -61,6 +61,7 @@ extern void *__elf_aux_vector; #include #include #include +#include #include #include #include @@ -5090,6 +5091,9 @@ const void *resolve_sym_name(struct buffer *buf, const char *pfx, const void *ad #ifdef SSL_MODE_ASYNC { .func = ssl_async_fd_free, .name = "ssl_async_fd_free" }, { .func = ssl_async_fd_handler, .name = "ssl_async_fd_handler" }, +#endif +#ifdef USE_QUIC + { .func = quic_conn_sock_fd_iocb, .name = "quic_conn_sock_fd_iocb" }, #endif };