]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server/event_hdl: add SERVER_INETADDR event
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 10 Nov 2023 19:12:00 +0000 (20:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Nov 2023 15:27:55 +0000 (16:27 +0100)
commit683b2ae013ec5d269cb314bba694812063486c30
tree3209deb4c2d33e58fb7a20cfafa87796ff75ba3c
parent0e1f389fe9a46703d6a24d29c0924711aca00b9f
MINOR: server/event_hdl: add SERVER_INETADDR event

In this patch we add the support for a new SERVER event in the
event_hdl API.

SERVER_INETADDR is implemented as an advanced server event.
It is published each time the server's ip address or port is
about to change. (ie: from the cli, dns, lua...)

SERVER_INETADDR data is an event_hdl_cb_data_server_inetaddr struct
that provides additional info related to the server inet addr change,
but can be casted as a regular event_hdl_cb_data_server struct if
additional info is not needed.
include/haproxy/event_hdl-t.h
include/haproxy/server-t.h
src/event_hdl.c
src/server.c