struct listener *li; /* back reference on the listener */
};
-#define LI_F_QUIC_LISTENER 0x00000001 /* listener uses proto quic */
/* The listener will be directly referenced by the fdtab[] which holds its
* socket. The listener provides the protocol-specific accept() function to
enum li_state state; /* state: NEW, INIT, ASSIGNED, LISTEN, READY, FULL */
/* 2-byte hole here */
int luid; /* listener universally unique ID, used for SNMP */
- int flags; /* LI_F_* flags */
+ int nbconn; /* current number of connections on this listener */
unsigned int thr_idx; /* thread indexes for queue distribution : (t2<<16)+t1 */
__decl_thread(HA_RWLOCK_T lock);
struct fe_counters *counters; /* statistics counters */
- int nbconn; /* current number of connections on this listener */
struct mt_list wait_queue; /* link element to make the listener wait for something (LI_LIMITED) */
char *name; /* listener's name */
}
#ifdef USE_QUIC
- if (listener->flags & LI_F_QUIC_LISTENER) {
+ if (listener->bind_conf->xprt == xprt_get(XPRT_QUIC)) {
if (!global.cluster_secret) {
diag_no_cluster_secret = 1;
if (listener->bind_conf->options & BC_O_QUIC_FORCE_RETRY) {
*/
static void quic_add_listener(struct protocol *proto, struct listener *listener)
{
- listener->flags |= LI_F_QUIC_LISTENER;
listener->rx.flags |= RX_F_LOCAL_ACCEPT;
default_add_listener(proto, listener);