]> git.ipfire.org Git - thirdparty/openvpn.git/commit
pass link_socket object to i/o functions
authorAntonio Quartulli <a@unstable.cc>
Wed, 23 Oct 2024 08:34:44 +0000 (10:34 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 23 Oct 2024 12:05:39 +0000 (14:05 +0200)
commit490d1324c87446b48462da18cfde1b755c9883e8
treeacda6e74f6a909e911f76ea26c35fb3e092e7883
parent3636da3b0f168d8e06a00ec5d1f33e4b9aded262
pass link_socket object to i/o functions

In order to prepare the code to work with distinct sockets,
it is essential that i/o functions do not operate on any
hard-coded socket object (i.e. c->c2.link_socket).

This patch changes all the low-level i/o functionis to work
with a socket specified as argument rather than a fixed one.

Change-Id: I8eae2d3356bbcc5d632eeb4fbe80de8009d9b40d
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Gianmarco De Gregori <gianmarco@mandelbit.com>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20241023083444.27951-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29603.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/event.h
src/openvpn/forward.c
src/openvpn/forward.h
src/openvpn/mtcp.c
src/openvpn/mudp.c
src/openvpn/multi.h
src/openvpn/openvpn.c
src/openvpn/socket.c
src/openvpn/socket.h