[Openvpn-devel] [PATCH] Fix file checks when --chroot is being used

2013-11-25 Thread David Sommerseth
From: David Sommerseth Commit 0f2bc0dd92f43c9 started to introduce some file sanity checking before OpenVPN started to avoid harder to explain issues due to missing files or directories later on. But that commit did not consider --chroot at all. Which would basically cause OpenVPN to complain o

[Openvpn-devel] [Patch v2 6/9] Implement dual stack client support for OpenVPN

2013-11-25 Thread Arne Schwabe
This patch contains a number of changes. I did not further spit this since some changes make only sense being changed together. Always use connection_list, simplifies the reconnection logic. Change meaning of --connect-retry-max and --connect-retry to be used all connections. This now allows Op

[Openvpn-devel] [Patch v2 8/9] Fix connecting to localhost on Android

2013-11-25 Thread Arne Schwabe
Do not protect the link socket when connecting to localhost --- src/openvpn/socket.c | 21 ++--- src/openvpn/socket.h | 17 + 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c index 27c967a..54a9f72 100644 --

[Openvpn-devel] [Patch v2 7/9] Implement listing on IPv4/IPv6 dual socket on all platform

2013-11-25 Thread Arne Schwabe
With this patch OpenVPN will listen on Ipv4 as well as IPv6 when an IPv6 socket is used. Using bind ipv6only will disable this behavior --- doc/openvpn.8 | 8 +++- src/openvpn/init.c| 1 + src/openvpn/manage.c | 2 +- src/openvpn/options.c | 4 src/openvpn/options.h | 1

[Openvpn-devel] [Patch v2 2/9] Change remote the proto_remote function to return a constant string

2013-11-25 Thread Arne Schwabe
Instead of using the implicit protocol string that is returned by the proto/af to names function return a constant string. The strings have become part of the wire protocl and we do not want them to change we the printing of proto/af changes. --- src/openvpn/options.c | 2 +- src/openvpn/socket.

[Openvpn-devel] [Patch v2 4/9] change the type of remote to addrinfo.

2013-11-25 Thread Arne Schwabe
--- src/openvpn/init.c | 5 ++-- src/openvpn/socket.c | 51 --- src/openvpn/socket.h | 85 src/openvpn/tun.c| 16 ++ src/openvpn/tun.h| 2 +- 5 files changed, 114 insertions(+), 45 deletions(-) di

[Openvpn-devel] [Patch v2 3/9] Remove the ip-remote-hint option.

2013-11-25 Thread Arne Schwabe
The ip-remote-hint option overrides the remote hostname of every remote/connection entry unless management-query-remote is also defined and the management interfaces overrides the option with remote MOD … The remote name is even overridden when when management interface issues remote ACCEPT afte

[Openvpn-devel] [Patch v2 1/9] Split link_socket_init_phase2 into smaller more managable/readable functions. No functional changes

2013-11-25 Thread Arne Schwabe
Signed-off-by: Arne Schwabe --- src/openvpn/socket.c | 468 --- 1 file changed, 261 insertions(+), 207 deletions(-) diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c index db711e1..207bb4e 100644 --- a/src/openvpn/socket.c +++ b/src/openvpn/

[Openvpn-devel] [Patch v2 5/9] When resolving fails print the error message from socket layer

2013-11-25 Thread Arne Schwabe
--- src/openvpn/socket.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c index c179818..cf6e8f4 100644 --- a/src/openvpn/socket.c +++ b/src/openvpn/socket.c @@ -187,15 +187,15 @@ openvpn_getaddrinfo (unsigned int flags,

[Openvpn-devel] [Patch v2 9/9] Move the initialization of the environment to the top so c2.es is initialized

2013-11-25 Thread Arne Schwabe
--- src/openvpn/init.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openvpn/init.c b/src/openvpn/init.c index c54907c..e4f6af9 100644 --- a/src/openvpn/init.c +++ b/src/openvpn/init.c @@ -3339,6 +3339,10 @@ init_instance (struct context *c, const struct env_set