]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Extract multi_assign_peer_id into its own function
authorArne Schwabe <arne@rfc2549.org>
Thu, 1 Apr 2021 13:13:35 +0000 (15:13 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 2 Apr 2021 14:59:37 +0000 (16:59 +0200)
commit9fe0b2c287609cefe79aec30ff33f7a65cafd684
treeadd9d7925a78847de3170f008a884ec0ae7ded13
parent18b4a8380ba3237e870e84b25edf3f6e15145296
Extract multi_assign_peer_id into its own function

This makes multi_get_create_instance_udp a bit shorter and better
structured and also prepares this method to be called from the
mutlti TCP context with DCO which will also need to assign unique peer
ids to instances.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210401131337.3684-13-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21959.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/mudp.c
src/openvpn/multi.c
src/openvpn/multi.h