]> git.ipfire.org Git - thirdparty/openvpn.git/commit
change the type of 'remote' to addrinfo*, and rename to 'remote_list'.
authorArne Schwabe <arne@rfc2549.org>
Mon, 25 Nov 2013 12:31:15 +0000 (13:31 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 27 Nov 2013 19:18:36 +0000 (20:18 +0100)
commit6c5db192c30ff0c6b89e2e0aefec00329de39302
tree9b364925444a5403c3652d7b4d2e33c9c42a0781
parentbb9026a60a8ebdf20fdf9a99e16c0d8afc658747
change the type of 'remote' to addrinfo*, and rename to 'remote_list'.

Warning: this is work in progress, preparing for the full dual-stack
client patch.  With this commit in place, connecting via "--proto udp" or
"--proto tcp-client" to a host that has IPv4+IPv6 in place, on an OS that
will prefer IPv6 to IPv4 will always fail.  The remote_list will have IPv6
in it's first entry, while the socket will try to do AF_INET, and that
will not work.  This will be fixed by the upcoming change to handle
multiple remote IP addresses (as returned by getaddrinfo()) as multiple
<connection> blocks, with appropriate retry and AF selection logic.

Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1385382680-5912-4-git-send-email-arne@rfc2549.org>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8053

Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/init.c
src/openvpn/socket.c
src/openvpn/socket.h
src/openvpn/tun.c
src/openvpn/tun.h