From: "its_Giaan (Code Review)" Date: Tue, 9 Sep 2025 08:21:07 +0000 References: Reply-To: gianmarco@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <85a451702057aa482c4338e809f6d48864c98a8c-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="4Vq27eyBgAw="; 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: plaisthos , flichtenheld Cc: openvpn-devel --4Vq27eyBgAw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1173?usp=3Demail to review the following change. 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 --- M src/openvpn/dco.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/73/1173/1 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: 1 Gerrit-Owner: its_Giaan Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --4Vq27eyBgAw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

its_Giaan would like plaisthos and flichtenheld to review this change.

V= iew Change

Fix multi-socket and dco-win interaction

The dco_chec= k_option_ce(), for dco_win, checked only
the global protocol of the curr= ent connection entry,
but now it should be extended to the local_listand since dco_win does not support more than 1
socket, checking the fir= st entry of the local_list
will be enough.

Change-Id: I74e2b6aed3= c7454e897db57f777e6a191be3d87f
Signed-off-by: Gianmarco De Gregori <g= ianmarco@...2726...>
---
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/1
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: 1
Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--4Vq27eyBgAw=--