Re: [Openvpn-devel] [[Patch v3] 1/3] Allow routes to be set before opening tun, similar to ifconfig before opening tun

2013-04-28 Thread Gert Doering
Hi, On Fri, Apr 26, 2013 at 09:54:03PM +0200, Arne Schwabe wrote: > diff --git a/src/openvpn/init.c b/src/openvpn/init.c > index 979ba23..f08583b 100644 > --- a/src/openvpn/init.c > +++ b/src/openvpn/init.c [..] > - if (!c->options.route_delay_defined) > + if ((ifconfig_order() == ROUTE_

Re: [Openvpn-devel] [[Patch v3] 3/3] Android platform specific changes.

2013-04-28 Thread Gert Doering
Hi, On Fri, Apr 26, 2013 at 09:54:05PM +0200, Arne Schwabe wrote: > +/* > + * The android control method will instruct the GUI part of openvpn to > + * do the route/ifconfig/open tun command. > + */ > +bool management_android_control (struct management *man, const char > *command, const char *ms

[Openvpn-devel] [Patch v4 3/4] Android platform specific changes.

2013-04-28 Thread Arne Schwabe
On Android 4.0 (TARGET_ANDROID) the real opening of the tun is handled by the (Java) application controlling OpenVPN. Instead of calling ifconfig/route call the management to do the work. When running openvpn as root openvpn should be compiled as TARGET_LINUX Signed-off-by: Arne Schwabe --- s

[Openvpn-devel] [Patch v4 1/4] Allow routes to be set before opening tun, similar to ifconfig before opening tun

2013-04-28 Thread Arne Schwabe
--- src/openvpn/init.c | 13 ++--- src/openvpn/tun.h | 11 +++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/openvpn/init.c b/src/openvpn/init.c index 979ba23..33725e2 100644 --- a/src/openvpn/init.c +++ b/src/openvpn/init.c @@ -1428,7 +1428,14 @@ do_open