From: "cron2 (Code Review)"
Date: Tue, 19 Mar 2024 19:35:39 +0000
In-Reply-To:
References:
Reply-To: gert@...1296..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, frank@...2641...,
lstipakov@...277...
Message-ID: <5ba181293b502c60d3c010ffa3d1ca274794799c-EmailReplacePatchSet-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="baBwfdYHRo8="; charset=UTF-8
Subject: [Openvpn-devel] [S] Change in openvpn[master]: Disable DCO if proxy
is set via management
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: stipa , plaisthos , flichtenheld
Cc: openvpn-devel
--baBwfdYHRo8=
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=
stipa. ( http://gerrit.openvpn.net/c/openvpn/+/543?usp=3Demail )
The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld
Change subject: Disable DCO if proxy is set via management
......................................................................
Disable DCO if proxy is set via management
Commit
45a1cb2a ("Disable DCO if proxy is set via management")
attempted to disable DCO when proxy is set via management interface. Howeve=
r,
at least on Windows this doesn't work, since:
- setting tuntap_options->disable_dco to true is not enough to disable DCO
- at this point it is a bit too late, since we've already done DCO-specific
adjustments
Since proxy can be set via management only if --management-query-proxy is
specified, the better way is to add a check to dco_check_startup_option().
Github: fixes OpenVPN/openvpn#522
Change-Id: I16d6a9fefa317d7d4a195e786618328445bdbca8
Signed-off-by: Lev Stipakov
Acked-by: Frank Lichtenheld
Message-Id: <20240318181744.20625-1-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28=
415.html
Signed-off-by: Gert Doering
---
M src/openvpn/dco.c
M src/openvpn/init.c
2 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/543/2
diff --git a/src/openvpn/dco.c b/src/openvpn/dco.c
index d7c9d48..78243b1 100644
--- a/src/openvpn/dco.c
+++ b/src/openvpn/dco.c
@@ -387,6 +387,12 @@
return false;
}
+ if (o->management_flags & MF_QUERY_PROXY)
+ {
+ msg(msglevel, "Note: --management-query-proxy disables data channe=
l offload.");
+ return false;
+ }
+
/* now that all options have been confirmed to be supported, check
* if DCO is truly available on the system
*/
diff --git a/src/openvpn/init.c b/src/openvpn/init.c
index 6209fa8..f2ce926 100644
--- a/src/openvpn/init.c
+++ b/src/openvpn/init.c
@@ -221,12 +221,6 @@
}
else if (p[2] && p[3])
{
- if (dco_enabled(&c->options))
- {
- msg(M_INFO, "Proxy set via management, disabling Data Channel =
Offload.");
- c->options.tuntap_options.disable_dco =3D true;
- }
-
if (streq(p[1], "HTTP"))
{
struct http_proxy_options *ho;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/543?usp=3Demail
To unsubscribe, or for help writing mail filters, visit http://gerrit.openv=
pn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I16d6a9fefa317d7d4a195e786618328445bdbca8
Gerrit-Change-Number: 543
Gerrit-PatchSet: 2
Gerrit-Owner: stipa
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-MessageType: newpatchset
--baBwfdYHRo8=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
cron2 uploaded patch set #2 to the change originally cr=
eated by stipa.
View Change
The following approvals got outdated and=
were removed:
Code-Review+2 by flichtenheld
Disable DCO if proxy is set via management
Commit
45a1cb2a ("Disable DCO if proxy is set via mana=
gement")
attempted to disable DCO when proxy is set via managem=
ent interface. However,
at least on Windows this doesn't work, since=
:
- setting tuntap_options->disable_dco to true is not enough to=
disable DCO
- at this point it is a bit too late, since we've alre=
ady done DCO-specific
adjustments
Since proxy can be set via m=
anagement only if --management-query-proxy is
specified, the better way =
is to add a check to dco_check_startup_option().
Github: fixes OpenV=
PN/openvpn#522
Change-Id: I16d6a9fefa317d7d4a195e786618328445bdbca8<=
br>Signed-off-by: Lev Stipakov <lev@...515...>
Acked-by: Frank Lic=
htenheld <frank@...2641...>
Message-Id: <20240318181744.20625-1=
-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1484...=
ts.sourceforge.net/msg28415.html
Signed-off-by: Gert Doering <gert@...1186...=
.1296...>
---
M src/openvpn/dco.c
M src/openvpn/init.c
2 fil=
es changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit=
.openvpn.net:29418/openvpn refs/changes/43/543/2
diff --git a/src/o=
penvpn/dco.c b/src/openvpn/dco.c
index d7c9d48..78243b1 100=
644
--- a/src/openvpn/dco.c
+++ b/src/openv=
pn/dco.c
@@ -387,6 +387,12 @@
retu=
rn false;
}
+ if (o->management_flags & MF_QUER=
Y_PROXY)
+ {
+ msg(msglevel, &qu=
ot;Note: --management-query-proxy disables data channel offload.");
+ return false;<=
/span>
+ }
+
/* now that =
all options have been confirmed to be supported, check
=
* if DCO is truly available on the system
*/=
diff --git a/src/openvpn/init.c b/src/openvpn/init.c
index 6209fa8..f2ce926 100644
--- a/src/openvpn/init.c<=
/span>
+++ b/src/openvpn/init.c
@@ -221,12 +221,6 =
@@
}
else if (p[2] && p[3=
])
{
- if (dco_enabled(&c->options))
- {
- msg(M_INFO, "Proxy set via management, disa=
bling Data Channel Offload.");
- c->options.tuntap_options.disable_dco =3D true=
;
- }
=
-
if (st=
req(p[1], "HTTP"))
{
=
struct http_proxy_options *ho;
<=
p>To view, visit change 543. To unsubscribe, or for help writing mail filters,=
visit settings.
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I16d6a9fefa317d7d4a195e78661=
8328445bdbca8
Gerrit-Change-Number: 543
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <lstipakov@...277...>=
;
Gerrit-Reviewer: flichtenheld <frank@...2716...=
1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--baBwfdYHRo8=--