From: "cron2 (Code Review)" Date: Wed, 10 Dec 2025 08:47:28 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Am3SAg9ZIro="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Remove some obsolete references to --windows-driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos , stipa Cc: openvpn-devel --Am3SAg9ZIro= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1426?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2, Code-Review+2 by stipa Change subject: Remove some obsolete references to --windows-driver ...................................................................... Remove some obsolete references to --windows-driver The option doesn't exist anymore so don't point people to it. But add it to the list of unsupported options. Change-Id: I78c6f335c635e97bb41d26ed8908a978d7b49387 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1426 Message-Id: <20251210074904.27067-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 970.html Signed-off-by: Gert Doering --- M doc/man-sections/unsupported-options.rst M doc/man-sections/vpn-network-options.rst M src/openvpn/options.c M src/openvpn/tun.c 4 files changed, 8 insertions(+), 12 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/26/1426/2 diff --git a/doc/man-sections/unsupported-options.rst b/doc/man-sections/un= supported-options.rst index e8e76eb..821ac07 100644 --- a/doc/man-sections/unsupported-options.rst +++ b/doc/man-sections/unsupported-options.rst @@ -49,3 +49,8 @@ --opt-verify Removed in OpenVPN 2.7. This option does not make sense anymore as opti= on strings may not match due to the introduction of parameters negotiation. + +--windows-driver + Removed in OpenVPN 2.7. OpenVPN will always use ovpn-dco as the default + driver on Windows. It will fall back to tap-windows6 if options are used + that are incompatible with ovpn-dco. diff --git a/doc/man-sections/vpn-network-options.rst b/doc/man-sections/vp= n-network-options.rst index 2a06ef6..33ebedb 100644 --- a/doc/man-sections/vpn-network-options.rst +++ b/doc/man-sections/vpn-network-options.rst @@ -89,7 +89,7 @@ On Windows, only the names :code:`tun` and :code:`tap` are supported. Selection among multiple installed drivers or driver instances is done - with ``--dev-node`` and ``--windows-driver``. + with ``--dev-node``. --dev-node node This is a highly system dependent option to influence tun/tap driver diff --git a/src/openvpn/options.c b/src/openvpn/options.c index a3fc19d..1be105b 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -3905,16 +3905,7 @@ } else { - if (o->windows_driver =3D=3D DRIVER_DCO) - { - msg(M_WARN, - "Option --windows-driver ovpn-dco is ignored because Data = Channel Offload is disabled"); - o->windows_driver =3D WINDOWS_DRIVER_TAP_WINDOWS6; - } - else if (o->windows_driver =3D=3D WINDOWS_DRIVER_UNSPECIFIED) - { - o->windows_driver =3D WINDOWS_DRIVER_TAP_WINDOWS6; - } + o->windows_driver =3D WINDOWS_DRIVER_TAP_WINDOWS6; } #else /* _WIN32 */ if (dco_enabled(o) && o->dev_node) diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 0299285..7236033 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -5826,7 +5826,7 @@ if (tt->backend_driver !=3D windows_driver) { msg(M_FATAL, - "Adapter '%s' is using %s driver, %s expected. If you want= to use this device, adjust --windows-driver.", + "Adapter '%s' is using %s driver, %s expected.", dev_node, print_tun_backend_driver(windows_driver), print_tun_backend_driver(tt->backend_driver)); } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1426?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I78c6f335c635e97bb41d26ed8908a978d7b49387 Gerrit-Change-Number: 1426 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-Reviewer: stipa Gerrit-CC: openvpn-devel --Am3SAg9ZIro= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by flichtenhel= d.

View Change

The following approvals got outdated and were remove= d: Code-Review+2 by cron2, Code-Review+2 by stipa

Remove some=
 obsolete references to --windows-driver

The option doesn't exis= t anymore so don't point
people to it.

But add it to the list= of unsupported options.

Change-Id: I78c6f335c635e97bb41d26ed8908a97= 8d7b49387
Signed-off-by: Frank Lichtenheld <frank@...2641...>
A= cked-by: Gert Doering <gert@...1296...>
Gerrit URL: https://gerrit= .openvpn.net/c/openvpn/+/1426
Message-Id: <20251210074904.27067-1-ger= t@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1096...= ourceforge.net/msg34970.html
Signed-off-by: Gert Doering <gert@...1826...= 6...>
---
M doc/man-sections/unsupported-options.rst
M doc/man-= sections/vpn-network-options.rst
M src/openvpn/options.c
M src/openvp= n/tun.c
4 files changed, 8 insertions(+), 12 deletions(-)

<= pre class=3D"blocks" style=3D"font-family: monospace,monospace; white-space= : pre-wrap;">git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/2= 6/1426/2
diff --git a/doc/man-sections/unsupported-options.rst b/do=
c/man-sections/unsupported-options.rst
index e8e76eb..821ac= 07 100644
--- a/doc/man-sections/unsupported-options.rst
+++ b/doc/man-sections/unsupported-options.rst
@@ -49,3 +49,8 @@

--opt-verify
Remove= d in OpenVPN 2.7. This option does not make sense anymore as option=
strings may not match due to the introduction of parameters ne= gotiation.
++--windows-driver
<= span style=3D"color: hsl(120, 100%, 40%);">+ Removed in OpenVPN 2.7. OpenV= PN will always use ovpn-dco as the default
+ driver on Windows. It will fall back to tap-window= s6 if options are used
- with ``--dev-node`` and ``--windows-driver``.
+ with ``--dev-node``.

--dev-node node
This is a highly s= ystem dependent option to influence tun/tap driver
diff --g= it a/src/openvpn/options.c b/src/openvpn/options.c
index a3= fc19d..1be105b 100644
--- a/src/openvpn/options.c+++ b/src/openvpn/options.c
@@ -3905,16 +3905,7 @@
}
else
{
- if (o->windows_= driver =3D=3D DRIVER_DCO)
- {
- = msg(M_WARN,
- = "Option --windows-driver ovpn-dco is ignored because Data Ch= annel Offload is disabled");
- o->windows_driver =3D WINDOWS_DRIVER_TAP_WINDOWS= 6;
- }- else if (o->windows_= driver =3D=3D WINDOWS_DRIVER_UNSPECIFIED)
- {
- o->windows_driver =3D WINDOWS_DRIVER_TAP_WINDOWS6;
- }
+ o->windows_driver =3D = WINDOWS_DRIVER_TAP_WINDOWS6;

}
#else = /* _WIN32 */
if (dco_enabled(o) && o->dev_= node)
diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c
index 0299285..7236033 100644
--- a/src/openv= pn/tun.c
+++ b/src/openvpn/tun.c
@@ -5826,7= +5826,7 @@
if (tt->backend_driver !=3D windows= _driver)
{
msg(M_FATA= L,
- &qu= ot;Adapter '%s' is using %s driver, %s expected. If you want to use= this device, adjust --windows-driver.",
+ "Adapter '%s' is usi= ng %s driver, %s expected.",
dev_node= , print_tun_backend_driver(windows_driver),
= print_tun_backend_driver(tt->backend_driver));
= }

To view, visit change 1426. To unsubscr= ibe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I78c6f335c635e97bb41d26ed890= 8a978d7b49387
Gerrit-Change-Number: 1426
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: stipa <lstipakov@...277...= >
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --Am3SAg9ZIro=--