wintun: check for conflicting options
PATCH 1/1 wintun: check for conflicting options
--windows-driver wintun requires --dev tun. This is now checked and documented.
--- doc/openvpn.8 | 4 ++++ src/openvpn/options.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-)
doc/openvpn.8 +4 -0
@@ -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
src/openvpn/options.c +6 -1
@@ -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.
Signature · 1 line
2.24.1.windows.2
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 <[email protected]...>
Acked-by: Lev Stipakov <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg19368.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
Hi,
Quoted 5 lines · Gert Doering
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 <[email protected]...> Date: Wed Feb 5 19:49:22 2020 +0100
wintun: check for conflicting options
commit baef44fc8769bbd99f4d699ce9f63180c29a5455
Author: Simon Rozman <[email protected]...> Date: Wed Feb 5 18:59:44 2020 +0100
tun.c: uncrustify
commit 4c71a647c460e276b81476a409143b97f01a03cc
Author: Simon Rozman <[email protected]...> Date: Wed Feb 5 18:55:56 2020 +0100
tun.c: refactor driver detection and make it case-insensitive
commit b111aa8006ae39f5ca9cf251d158d5850806f536
Author: Lev Stipakov <[email protected]...> Date: Sat Feb 29 14:35:15 2020 +0200
interactive.c: remove unused function
Apologies.
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...