summaryrefslogtreecommitdiffstats
path: root/src/openvpn/tun.h
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-11-25 13:31:15 +0100
committerGert Doering <gert@greenie.muc.de>2013-11-27 20:18:36 +0100
commit6c5db192c30ff0c6b89e2e0aefec00329de39302 (patch)
tree9b364925444a5403c3652d7b4d2e33c9c42a0781 /src/openvpn/tun.h
parentbb9026a60a8ebdf20fdf9a99e16c0d8afc658747 (diff)
downloadopenvpn-6c5db192c30ff0c6b89e2e0aefec00329de39302.tar.gz
openvpn-6c5db192c30ff0c6b89e2e0aefec00329de39302.tar.xz
openvpn-6c5db192c30ff0c6b89e2e0aefec00329de39302.zip
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>
Diffstat (limited to 'src/openvpn/tun.h')
-rw-r--r--src/openvpn/tun.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h
index 2c97ffe..ea2290c 100644
--- a/src/openvpn/tun.h
+++ b/src/openvpn/tun.h
@@ -233,7 +233,7 @@ struct tuntap *init_tun (const char *dev, /* --dev option */
int ifconfig_ipv6_netbits_parm, /* --ifconfig parm 1 / bits */
const char *ifconfig_ipv6_remote_parm, /* --ifconfig parm 2 / IPv6 */
in_addr_t local_public,
- in_addr_t remote_public,
+ struct addrinfo *remote_public,
const bool strict_warn,
struct env_set *es);