]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Print helpful error message on --mktun/--rmtun if not available.
authorGert Doering <gert@greenie.muc.de>
Tue, 28 Apr 2015 11:04:23 +0000 (13:04 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 28 Apr 2015 15:13:44 +0000 (17:13 +0200)
commit1a7fc1ea2207580693b2801099f8a473f1c07828
tree457c889e39d89b6f4c1e1c338e18e6485ff6498c
parentca32c1551b05bf4cead7dceae62c412886fded55
Print helpful error message on --mktun/--rmtun if not available.

OpenVPN only supports --mktun/--rmtun to create/destroy persistant
tunnels on Linux.  On BSD OSes, "ifconfig tun0 create" can do the
same job, so we do not actually need to support it - but the previous
error message ("unknown option") wasn't helpful.  So always accept
the option now, and on non-supported systems, direct user to manpage.

Trac #85

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Message-Id: <1430219063-12291-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9617
(cherry picked from commit 4ad2b65d9deb3197d847d7dcc36715aa5394836f)
src/openvpn/init.c
src/openvpn/options.c