]> git.ipfire.org Git - thirdparty/openvpn.git/commit
io_work: pass event_arg object to event handler in case of socket event
authorAntonio Quartulli <a@unstable.cc>
Wed, 23 Oct 2024 14:20:30 +0000 (16:20 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 23 Oct 2024 14:50:55 +0000 (16:50 +0200)
commit58612741680994928e67a0e981c91bbffb7a2d20
tree4db7489ea2db626ee1178ff4296237c3084dfd9e
parent04c34f81be920ce57c0c886c627057cc12453b85
io_work: pass event_arg object to event handler in case of socket event

In order to allow the code to work with multiple listening sockets
it is essential to allow the generic multi_io event handler
to distinguish between the various socket objects.

This can be achieved by passing an event_arg object that contains
a pointer to the link_socket.

This code path is used on clients as well as UDP servers.

Change-Id: I7ebf0d4fb2a23278e16003b2e35598178155d658
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Gianmarco De Gregori <gianmarco@mandelbit.com>
Message-Id: <20241023142030.731-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29625.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/event.h
src/openvpn/forward.c
src/openvpn/mtcp.c