Change in openvpn[master]: Fix multi-socket and dco-win interaction
A message that is not in the archive (sent off-list or not yet received): gerrit.1757406065000.I74e2b6aed3c7454e897db57f777e6a191be3d87f@...2715...
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=email
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.
---
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
src/openvpn/dco.c +1 -1
@@ -268,7 +268,7 @@#endif #if defined(_WIN32) -if (!proto_is_udp (ce->proto) && mode ==MODE_SERVER ) +if (!proto_is_udp (ce->local_list->array[0 ]->proto) && mode ==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=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74e2b6aed3c7454e897db57f777e6a191be3d87f
Gerrit-Change-Number: 1173
Gerrit-PatchSet: 1
Gerrit-Owner: its_Giaan <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: flichtenheld, its_Giaan, plaisthos.
stipa has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1173?usp=email )
Change subject: Fix multi-socket and dco-win interaction
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
Patchset:
PS1:
Indeed it was broken before the fix and not broken now.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1173?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74e2b6aed3c7454e897db57f777e6a191be3d87f
Gerrit-Change-Number: 1173
Gerrit-PatchSet: 1
Gerrit-Owner: its_Giaan <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: its_Giaan <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Fri, 12 Sep 2025 06:52:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH 1/1 Fix multi-socket and dco-win interaction
In reply to a message not in the archiveFrom: Gianmarco De Gregori <[email protected]...>
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.
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1173
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Lev Stipakov <[email protected]...>
src/openvpn/dco.c +1 -1
@@ -268,7 +268,7 @@#endif #if defined(_WIN32) -if (!proto_is_udp (ce->proto) && mode ==MODE_SERVER ) +if (!proto_is_udp (ce->local_list->array[0 ]->proto) && mode ==MODE_SERVER ) {msg (msglevel,"NOTE: TCP transport disables data channel offload on Windows in server mode." );
[Openvpn-devel] [PATCH applied] Re: Fix multi-socket and dco-win interaction
So, we discussed the background of this on IRC for quite a bit - with the multisocket patch, there is a disconnect between ce->proto ("reflects the global 'proto' setting in the config") and the ce->local_list->array[*]->proto values ("one for each 'local' statement").
For servers, it depends a bit on how the server config is set up, but if you do
--proto udp (default)
--local * 443 tcp
the "tcp" part will not be visible in ce->proto.
If there is *no* "local" statement (just lport + bind), the code will synthesize local_list->array[0] from the config settings provided - so whatever happens, for a server config, array[0]->proto contains the protocol for the first listening socket requested.
Lev has actually tested this, while I've discussed it at length to understand the subtle differences - written up for the benefit of the archives.
Again, mail-archive.org refuses to acknowledge that this mail was ever sent, so referencing sf.net + gerrit.
Your patch has been applied to the master branch.
commit 864bb498ef7a15eb256cbe6013350e76ae96c32b
Author: Gianmarco De Gregori Date: Fri Sep 12 15:10:56 2025 +0200
Fix multi-socket and dco-win interaction
Signed-off-by: Gianmarco De Gregori <[email protected]...>
Acked-by: Lev Stipakov <[email protected]...>
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59232442/
URL: https://gerrit.openvpn.net/c/openvpn/+/1173
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by its_Giaan. ( http://gerrit.openvpn.net/c/openvpn/+/1173?usp=email )
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.
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59232442/
URL: https://gerrit.openvpn.net/c/openvpn/+/1173
---
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
src/openvpn/dco.c +1 -1
@@ -268,7 +268,7 @@#endif #if defined(_WIN32) -if (!proto_is_udp (ce->proto) && mode ==MODE_SERVER ) +if (!proto_is_udp (ce->local_list->array[0 ]->proto) && mode ==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=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74e2b6aed3c7454e897db57f777e6a191be3d87f
Gerrit-Change-Number: 1173
Gerrit-PatchSet: 2
Gerrit-Owner: its_Giaan <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1173?usp=email )
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.
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59232442/
URL: https://gerrit.openvpn.net/c/openvpn/+/1173
---
M src/openvpn/dco.c
1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/dco.c +1 -1
@@ -268,7 +268,7 @@#endif #if defined(_WIN32) -if (!proto_is_udp (ce->proto) && mode ==MODE_SERVER ) +if (!proto_is_udp (ce->local_list->array[0 ]->proto) && mode ==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=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74e2b6aed3c7454e897db57f777e6a191be3d87f
Gerrit-Change-Number: 1173
Gerrit-PatchSet: 2
Gerrit-Owner: its_Giaan <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged