From 37d9d6721a99b60f459ebb0b4832be3eaf83a1dd Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 27 Aug 2020 07:48:42 +0200 Subject: [PATCH] REORG: listener: create a new struct receiver In order to start to split the listeners into the listener part and the event receiver part, we introduce a new field "rx" into struct listener that will eventually become a separate struct receiver. This patch only adds the struct with an options field that the receivers will need. --- include/haproxy/listener-t.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/haproxy/listener-t.h b/include/haproxy/listener-t.h index 8ea7621ed7..245436d08b 100644 --- a/include/haproxy/listener-t.h +++ b/include/haproxy/listener-t.h @@ -191,6 +191,11 @@ struct bind_conf { } settings; /* all the settings needed for the listening socket */ }; +/* This describes a receiver with all its characteristics (address, status, etc) */ +struct receiver { + unsigned int flags; /* receiver options (RX_F_*) */ +}; + /* The listener will be directly referenced by the fdtab[] which holds its * socket. The listener provides the protocol-specific accept() function to * the fdtab. @@ -229,6 +234,7 @@ struct listener { struct list by_bind; /* chaining in bind_conf's list of listeners */ struct bind_conf *bind_conf; /* "bind" line settings, include SSL settings among other things */ struct list proto_list; /* list in the protocol header */ + struct receiver rx; /* network receiver parts */ /* warning: this struct is huge, keep it at the bottom */ struct sockaddr_storage addr; /* the address we listen to */ -- 2.47.3