| Message ID | 20200205184922.883-1-simon@rozman.si |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director7.mail.ord1d.rsapps.net ([172.30.191.6]) by backend30.mail.ord1d.rsapps.net with LMTP id uC9qF4oOO15BbQAAIUCqbw for <patchwork@openvpn.net>; Wed, 05 Feb 2020 13:50:50 -0500 Received: from proxy4.mail.ord1d.rsapps.net ([172.30.191.6]) by director7.mail.ord1d.rsapps.net with LMTP id WOMlF4oOO17dWQAAovjBpQ ; Wed, 05 Feb 2020 13:50:50 -0500 Received: from smtp8.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy4.mail.ord1d.rsapps.net with LMTP id eNmNFooOO17tMwAAiYrejw ; Wed, 05 Feb 2020 13:50:50 -0500 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp8.gate.ord1d.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=rozman.si; dmarc=fail (p=none; dis=none) header.from=rozman.si X-Suspicious-Flag: YES X-Classification-ID: 6cb95ddc-4848-11ea-9d04-5254001e5a60-1-1 Received: from [216.105.38.7] ([216.105.38.7:35302] helo=lists.sourceforge.net) by smtp8.gate.ord1d.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 11/B5-09334-98E0B3E5; Wed, 05 Feb 2020 13:50:49 -0500 Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1izPkC-0004QQ-La; Wed, 05 Feb 2020 18:49:48 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from <simon@rozman.si>) id 1izPkC-0004QK-0t for openvpn-devel@lists.sourceforge.net; Wed, 05 Feb 2020 18:49:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TIBNqDXZLKK1t8TqPIvxFFRfDXViNmyW1bfBhm1MOmk=; b=EUzohiqegGJVWoMErpsVRhRxf5 AKgaoKY32rLFuJStWBMIFjph2vUyJ8+Y7tJP5D+F1sEA0D7t97uvjxo0IMoBWk4l4EnX9MC6s96NP bb15JuVD4tiJ4KNmEcB5NfQLpA+prSbePllq/Tg0FoNXBVwp2Q+WkoTZogiZMUlQ0Yfk=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=TIBNqDXZLKK1t8TqPIvxFFRfDXViNmyW1bfBhm1MOmk=; b=e iy3Kma/9t62NKOHZJZnYZIf4uqLCd9dWsKfhqs6IzH5agwcYymkVWA7xRCaN/l+/QfZ5pfDRQVPVE TR64TdXhD7nYvE/BjeDcByZrOjbE1ifWE03oHi3Oegg0mHosOf1WH0+hRrMofI4GwUUyrBT4F4xmH GBjattguyBiB72eg=; Received: from pub5.amebis.si ([213.250.55.21]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1izPk8-00BE4D-33 for openvpn-devel@lists.sourceforge.net; Wed, 05 Feb 2020 18:49:47 +0000 Received: by pub5.amebis.si (Postfix, from userid 1000) id 8EEC11002FBE; Wed, 5 Feb 2020 19:49:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rozman.si; s=default; t=1580928570; bh=TIBNqDXZLKK1t8TqPIvxFFRfDXViNmyW1bfBhm1MOmk=; h=From:To:Cc:Subject:Date:From; b=BECBPi+2/LCdn48/Kb0dP2SXwgOok1v9qHU8vPBz9oAH4IyAhiRo3taAvT+stuCvg xcnZqB/HVeK3NiKrn/PAqQZ0DoU/Qu1lVIPeCsin1ZMCD8S5kNp0WIS50NbBi1Zfz8 HL7fr2kfmTcipfli3jVTuXYS23jZOlr6pCJ3zub4= X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on brana.amebis.doma X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.3 Received: from SR6.amebis.doma (unknown [IPv6:2a00:ee2:209:164:dc1d:9533:3ace:bf6b]) by pub5.amebis.si (Postfix) with ESMTP id 2BC651002FB5; Wed, 5 Feb 2020 19:49:28 +0100 (CET) From: Simon Rozman <simon@rozman.si> To: openvpn-devel@lists.sourceforge.net Date: Wed, 5 Feb 2020 19:49:22 +0100 Message-Id: <20200205184922.883-1-simon@rozman.si> X-Mailer: git-send-email 2.24.1.windows.2 MIME-Version: 1.0 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: rozman.si] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1izPk8-00BE4D-33 Subject: [Openvpn-devel] [PATCH] wintun: check for conflicting options X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
| Series |
[Openvpn-devel] wintun: check for conflicting options
|
|
Commit Message
Simon Rozman
Feb. 5, 2020, 7:49 a.m. UTC
`--windows-driver wintun` requires `--dev tun`. This is now checked and
documented.
Signed-off-by: Simon Rozman <simon@rozman.si>
---
doc/openvpn.8 | 4 ++++
src/openvpn/options.c | 7 ++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
Comments
Makes sense.
Compiled, tested.
Acked-by: Lev Stipakov <lstipakov@gmail.com>
<div dir="ltr"><div dir="ltr">Makes sense.<div><br></div><div>Compiled, tested.</div><div><br></div><div>Acked-by: Lev Stipakov <<a href="mailto:lstipakov@gmail.com">lstipakov@gmail.com</a>></div></div></div>
Your patch has been applied to the master branch.
Indeed, check makes sense :-) - compile tested on Ubuntu 16 / MinGW.
commit 05ce4563fbea51a2653a6aa1ee51154ae6b7c6a0
Author: Simon Rozman
Date: Wed Feb 5 19:49:22 2020 +0100
wintun: check for conflicting options
Signed-off-by: Simon Rozman <simon@rozman.si>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20200205184922.883-1-simon@rozman.si>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19368.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
Hi, On Sun, Mar 08, 2020 at 08:55:37PM +0100, Gert Doering wrote: > Your patch has been applied to the master branch. > > Indeed, check makes sense :-) - compile tested on Ubuntu 16 / MinGW. > > commit 05ce4563fbea51a2653a6aa1ee51154ae6b7c6a0 *sigh* I forgot to pull & rebase before applying Simon's and Lev's 4 patches, and at push time, git told me... So the commits for those 4 patches are all wrong. Here are the commit IDs after rebasing, which I am going to push now: commit 53e7d8dba4f3d0a0c54641ad5e94acf060e352da (HEAD -> master) Author: Simon Rozman <simon@rozman.si> Date: Wed Feb 5 19:49:22 2020 +0100 wintun: check for conflicting options commit baef44fc8769bbd99f4d699ce9f63180c29a5455 Author: Simon Rozman <simon@rozman.si> Date: Wed Feb 5 18:59:44 2020 +0100 tun.c: uncrustify commit 4c71a647c460e276b81476a409143b97f01a03cc Author: Simon Rozman <simon@rozman.si> Date: Wed Feb 5 18:55:56 2020 +0100 tun.c: refactor driver detection and make it case-insensitive commit b111aa8006ae39f5ca9cf251d158d5850806f536 Author: Lev Stipakov <lev@openvpn.net> Date: Sat Feb 29 14:35:15 2020 +0200 interactive.c: remove unused function Apologies. gert
diff --git a/doc/openvpn.8 b/doc/openvpn.8 index 8feb3b9c..e2227a47 100644 --- a/doc/openvpn.8 +++ b/doc/openvpn.8 @@ -6257,6 +6257,10 @@ Specifies which tun driver to use. Values are (default) and .B wintun. This is Windows-only option. +"wintun" requires +.B \-\-dev tun +and the OpenVPN process to run elevated, or be invoked using +the Interactive Service. .\"********************************************************* .TP .B \-\-dhcp\-renew diff --git a/src/openvpn/options.c b/src/openvpn/options.c index c459b260..101cca38 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -2204,7 +2204,12 @@ options_postprocess_verify_ce(const struct options *options, const struct connec { msg(M_USAGE, "--dhcp-options requires --ip-win32 dynamic or adaptive"); } -#endif + + if (options->windows_driver == WINDOWS_DRIVER_WINTUN && dev != DEV_TYPE_TUN) + { + msg(M_USAGE, "--windows-driver wintun requires --dev tun"); + } +#endif /* ifdef _WIN32 */ /* * Check that protocol options make sense.