From: "cron2 (Code Review)" Date: Sun, 14 Sep 2025 12:08:43 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., gianmarco@...2726..., 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="Ykrv4zeYzbw="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Fix multi-socket and dco-win interaction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: its_Giaan , plaisthos , flichtenheld , stipa Cc: openvpn-devel --Ykrv4zeYzbw= 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= its_Giaan. ( http://gerrit.openvpn.net/c/openvpn/+/1173?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by stipa Change subject: Fix multi-socket and dco-win interaction ...................................................................... Fix multi-socket and dco-win interaction The dco_check_option_ce(), for dco_win, checked only the global protocol of the current connection entry, but now it should be extended to the local_list and since dco_win does not support more than 1 socket, checking the first entry of the local_list will be enough. Change-Id: I74e2b6aed3c7454e897db57f777e6a191be3d87f Signed-off-by: Gianmarco De Gregori Acked-by: Lev Stipakov Message-Id: <20250912131056.42342-1-frank@...2641...> URL: https://sourceforge.net/p/openvpn/mailman/message/59232442/ URL: https://gerrit.openvpn.net/c/openvpn/+/1173 Signed-off-by: Gert Doering --- M src/openvpn/dco.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/73/1173/2 diff --git a/src/openvpn/dco.c b/src/openvpn/dco.c index 1abebbb..70a8c0a 100644 --- a/src/openvpn/dco.c +++ b/src/openvpn/dco.c @@ -268,7 +268,7 @@ #endif #if defined(_WIN32) - if (!proto_is_udp(ce->proto) && mode =3D=3D MODE_SERVER) + if (!proto_is_udp(ce->local_list->array[0]->proto) && mode =3D=3D MODE= _SERVER) { msg(msglevel, "NOTE: TCP transport disables data channel offload on Windows = in server mode."); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1173?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: I74e2b6aed3c7454e897db57f777e6a191be3d87f Gerrit-Change-Number: 1173 Gerrit-PatchSet: 2 Gerrit-Owner: its_Giaan Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-Reviewer: stipa Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --Ykrv4zeYzbw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #2 to the change originally cr= eated by its_Giaan.

View Change

The following approvals got outdate= d and were removed: Code-Review+2 by stipa

Fix multi-socket and dco-win interaction

The = dco_check_option_ce(), for dco_win, checked only
the global protocol of = the current connection entry,
but now it should be extended to the local= _list
and since dco_win does not support more than 1
socket, checking= the first entry of the local_list
will be enough.

Change-Id: I74= e2b6aed3c7454e897db57f777e6a191be3d87f
Signed-off-by: Gianmarco De Grego= ri <gianmarco@...2726...>
Acked-by: Lev Stipakov <lstipakov@...493...= 277...>
Message-Id: <20250912131056.42342-1-frank@...2641...>URL: https://sourceforge.net/p/openvpn/mailman/message/59232442/
URL: = https://gerrit.openvpn.net/c/openvpn/+/1173
Signed-off-by: Gert Doering = <gert@...1296...>
---
M src/openvpn/dco.c
1 file changed, 1 = insertion(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:294=
18/openvpn refs/changes/73/1173/2
diff --git a/src/openvpn/dco.c b/=
src/openvpn/dco.c
index 1abebbb..70a8c0a 100644
<= span>--- a/src/openvpn/dco.c
+++ b/src/openvpn/dco.c=
@@ -268,7 +268,7 @@
#endif

#if defined(_WIN32)
- if (!proto_is_udp(ce->proto) && mode =3D=3D MODE= _SERVER)
+ if (!pr= oto_is_udp(ce->local_list->array[0]->proto) && mode =3D=3D= MODE_SERVER)
{
msg(msglevel,=
"NOTE: TCP transport disables data chann= el offload on Windows in server mode.");

To view, visit change 1173. To unsubscribe, or for help writing mail fil= ters, visit settings.

=
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74e2b6aed3c7454e897db57f777= e6a191be3d87f
Gerrit-Change-Number: 1173
Gerrit-PatchSet: 2
Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: stipa <lstipakov@...277...= >
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--Ykrv4zeYzbw=--