MINOR: server/event_hdl: add server_inetaddr struct to facilitate event data usage
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 7 Dec 2023 15:18:39 +0000 (16:18 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Jan 2024 06:48:33 +0000 (07:48 +0100)
commit00917df29591578fb3cecca97dd58ba16fe74b0b
tree96daeac26623b5af265da1f561c739ac0479ed9f
parent08e9659e1e908eab1eae291c0cd795824bff63d7
MINOR: server/event_hdl: add server_inetaddr struct to facilitate event data usage

event_hdl_cb_data_server_inetaddr struct had some anonymous structs
defined in it, making it impossible to pass as a function argument and
harder to maintain since changes must be performed at multiple places
at once. So instead we define a storage struct named server_inetaddr
that helps to save addr:port server information in INET context.

(cherry picked from commit 14893a6a00f24e14dcca5baa335a7f9d78dafc80)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/server-t.h