From: "cron2 (Code Review)" Date: Sun, 14 Sep 2025 12:08:46 +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="EpmMEL+bTQg="; 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 Cc: stipa , plaisthos , flichtenheld , openvpn-devel --EpmMEL+bTQg= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/11= 73?usp=3Demail ) 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(-) 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: merged --EpmMEL+bTQg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

Fix multi-socket and dco-win interaction
<= br>The dco_check_option_ce(), for dco_win, checked only
the global proto= col of the current connection entry,
but now it should be extended to th= e local_list
and since dco_win does not support more than 1
socket, c= hecking the first entry of the local_list
will be enough.

Change-= Id: I74e2b6aed3c7454e897db57f777e6a191be3d87f
Signed-off-by: Gianmarco D= e Gregori <gianmarco@...2726...>
Acked-by: Lev Stipakov <lstipa= kov@...277...>
Message-Id: <20250912131056.42342-1-frank@...2723...= .>
URL: https://sourceforge.net/p/openvpn/mailman/message/59232442/URL: https://gerrit.openvpn.net/c/openvpn/+/1173
Signed-off-by: Gert D= oering <gert@...1296...>
---
M src/openvpn/dco.c
1 file chan= ged, 1 insertion(+), 1 deletion(-)

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-&g= t;proto) && mode =3D=3D MODE_SERVER)
+ if (!proto_is_udp(ce->local_list->array[= 0]->proto) && mode =3D=3D MODE_SERVER)
{
msg(msglevel,
"NOT= E: TCP transport disables data channel offload on Windows in server mode.&q= uot;);

To view, visit change 1173. To unsub= scribe, or for help writing mail filters, 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: merged
--EpmMEL+bTQg=--