]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Workaround broken Android 4.4 VpnService API for persist-tun mode
authorArne Schwabe <arne@rfc2549.org>
Fri, 21 Mar 2014 13:18:36 +0000 (14:18 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 22 Mar 2014 18:16:41 +0000 (19:16 +0100)
commitc058cbffc182b6618182a3ff8b13c66d01ce937d
tree5e877124d8c16ad33d461f6a35362fbb9f7e052e
parentac1c2f259b44d1229a65a3e639b09d57a4e2a53b
Workaround broken Android 4.4 VpnService API for persist-tun mode

In Android 4.4 it is not possible to open a new tun device and then close
the old tun device without breaking the whole VPNService stack until the
device is rebooted.

Add new management method to ask the UI what method should be taken to
ensure the optimal solution for the situation.  Then do open-before-close
or close-before-open inside open_tun() as requested.

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

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