]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Adapt socket handling to support listening on multiple sockets
authorAntonio Quartulli <a@unstable.cc>
Mon, 30 Dec 2024 16:23:37 +0000 (17:23 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 30 Dec 2024 17:05:55 +0000 (18:05 +0100)
commit94b391d7ef5cb4cdac34a0d122fb9cbd11d82f75
treebdbeb734786ee0138467be983d47e03635e21560
parent10e785f1dcacdfd5240ac18a53f2839b4d3b979c
Adapt socket handling to support listening on multiple sockets

    Introduce internal changes preparing the server to
    handle multiple sockets concurrently for both
    TCP and UDP protocols. While no user-visible
    features are implemented yet, these modifications
    are essential for enabling future functionality
    such as listening on multiple ports.

    Key changes are: converting link_socket from a
    single pointer to an array in various contexts,
    in order to be able to store multiple sockets
    at once.

Change-Id: Ia0a889e800f0b36aed770ee36e31afeec5df6084
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Gianmarco De Gregori <gianmarco@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20241230162338.21401-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30309.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
16 files changed:
src/openvpn/dco.c
src/openvpn/forward.c
src/openvpn/forward.h
src/openvpn/init.c
src/openvpn/init.h
src/openvpn/mss.c
src/openvpn/mtcp.c
src/openvpn/mudp.c
src/openvpn/mudp.h
src/openvpn/multi.c
src/openvpn/multi.h
src/openvpn/openvpn.c
src/openvpn/openvpn.h
src/openvpn/ping.h
src/openvpn/socket.c
src/openvpn/socket.h