Change in openvpn[master]: dco-win: disable dco in server mode if multiple --local options defined
A message that is not in the archive (sent off-list or not yet received): gerrit.1738750933000.I8724eda269b816dd2cfd0833d467e6d24054e96f@...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/+/885?usp=email
to review the following change.
Change subject: dco-win: disable dco in server mode if multiple --local options defined
......................................................................
dco-win: disable dco in server mode if multiple --local options defined
dco-win doesn't yet support multisocket, so for the time being we have to fallback to tap-windows6.
---
M src/openvpn/dco.c
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/885/1
src/openvpn/dco.c +12 -0
@@ -279,6 +279,12 @@msg (msglevel,"NOTE: --remote is not defined. This DCO version doesn't support multipeer. Disabling Data Channel Offload" ); return false; } + +if ((mode ==MODE_SERVER ) && (ce->local_list->len >1 )) + { +msg (msglevel,"multiple --local options defined, disabling data channel offload" ); +return false; + }#endif return true;
@@ -355,6 +361,12 @@ return false; } +if ((o->mode ==MODE_SERVER ) && o->ce.local_list->len >1 ) + { +msg (msglevel,"multiple --local options defined, disabling data channel offload" ); +return false; + } +#elif defined(TARGET_LINUX)/* if the device name is fixed, we need to check if an interface with this * name already exists. IF it does, it must be a DCO interface, otherwise
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/885?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: I8724eda269b816dd2cfd0833d467e6d24054e96f
Gerrit-Change-Number: 885
Gerrit-PatchSet: 1
Gerrit-Owner: stipa <[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, plaisthos, stipa.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/885?usp=email )
Change subject: dco-win: disable dco in server mode if multiple --local options defined
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/885?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: I8724eda269b816dd2cfd0833d467e6d24054e96f
Gerrit-Change-Number: 885
Gerrit-PatchSet: 1
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: cron2 <[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-Attention: stipa <[email protected]...>
Gerrit-Comment-Date: Wed, 05 Feb 2025 10:29:03 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH 1/1 dco-win: disable dco in server mode if multiple --local options defined
In reply to a message not in the archiveFrom: Lev Stipakov <[email protected]...>
dco-win doesn't yet support multisocket, so for the time being we have to fallback to tap-windows6.
---
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/+/885
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/dco.c +12 -0
@@ -279,6 +279,12 @@msg (msglevel,"NOTE: --remote is not defined. This DCO version doesn't support multipeer. Disabling Data Channel Offload" ); return false; } + +if ((mode ==MODE_SERVER ) && (ce->local_list->len >1 )) + { +msg (msglevel,"multiple --local options defined, disabling data channel offload" ); +return false; + }#endif return true;
@@ -355,6 +361,12 @@ return false; } +if ((o->mode ==MODE_SERVER ) && o->ce.local_list->len >1 ) + { +msg (msglevel,"multiple --local options defined, disabling data channel offload" ); +return false; + } +#elif defined(TARGET_LINUX)/* if the device name is fixed, we need to check if an interface with this * name already exists. IF it does, it must be a DCO interface, otherwise
Attention is currently required from: cron2, flichtenheld, plaisthos, stipa.
Hello cron2, flichtenheld, plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/885?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review+2 by cron2
The change is no longer submittable: Code-Review and checks~ChecksSubmitRule are unsatisfied now.
Change subject: dco-win: disable dco in server mode if multiple --local options defined
......................................................................
dco-win: disable dco in server mode if multiple --local options defined
dco-win doesn't yet support multisocket, so for the time being we have to fallback to tap-windows6.
---
M src/openvpn/dco.c
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/885/2
src/openvpn/dco.c +12 -0
@@ -279,6 +279,12 @@msg (msglevel,"NOTE: --remote is not defined. This DCO version doesn't support multipeer. Disabling Data Channel Offload" ); return false; } + +if ((mode ==MODE_SERVER ) && (ce->local_list->len >1 )) + { +msg (msglevel,"NOTE: multiple --local options defined, disabling data channel offload" ); +return false; + }#endif return true;
@@ -355,6 +361,12 @@ return false; } +if ((o->mode ==MODE_SERVER ) && o->ce.local_list->len >1 ) + { +msg (msglevel,"multiple --local options defined, disabling data channel offload" ); +return false; + } +#elif defined(TARGET_LINUX)/* if the device name is fixed, we need to check if an interface with this * name already exists. IF it does, it must be a DCO interface, otherwise
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/885?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: I8724eda269b816dd2cfd0833d467e6d24054e96f
Gerrit-Change-Number: 885
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: cron2 <[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: cron2 <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: flichtenheld, plaisthos, stipa.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/885?usp=email )
Change subject: dco-win: disable dco in server mode if multiple --local options defined
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/885?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: I8724eda269b816dd2cfd0833d467e6d24054e96f
Gerrit-Change-Number: 885
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: cron2 <[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-Attention: stipa <[email protected]...>
Gerrit-Comment-Date: Wed, 05 Feb 2025 12:22:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH v2 1/1 dco-win: disable dco in server mode if multiple --local options defined
In reply to a message not in the archiveFrom: Lev Stipakov <[email protected]...>
dco-win doesn't yet support multisocket, so for the time being we have to fallback to tap-windows6.
---
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/+/885
This mail reflects revision 2 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/dco.c +12 -0
@@ -279,6 +279,12 @@msg (msglevel,"NOTE: --remote is not defined. This DCO version doesn't support multipeer. Disabling Data Channel Offload" ); return false; } + +if ((mode ==MODE_SERVER ) && (ce->local_list->len >1 )) + { +msg (msglevel,"NOTE: multiple --local options defined, disabling data channel offload" ); +return false; + }#endif return true;
@@ -355,6 +361,12 @@ return false; } +if ((o->mode ==MODE_SERVER ) && o->ce.local_list->len >1 ) + { +msg (msglevel,"multiple --local options defined, disabling data channel offload" ); +return false; + } +#elif defined(TARGET_LINUX)/* if the device name is fixed, we need to check if an interface with this * name already exists. IF it does, it must be a DCO interface, otherwise
[Openvpn-devel] [PATCH applied] Re: dco-win: disable dco in server mode if multiple --local options defined
As discussed on IRC - this is a preliminary patch for making sure the windows "multi-peer support in DCO" patchset and the "multi-socket patchset" can cooperate peacefully, while win-dco has no multi-socket capability yet (due to the way win-dco socket handling differs from linux-dco/freebsd-dco, the challenges are different).
There is also a GH issue to clean up the confusing code around --local and <connection> later... so we'll see more code changes here.
Your patch has been applied to the master branch.
commit 4719687ef3ec8acefcdde584df0e7fa86ddcf333
Author: Lev Stipakov Date: Wed Feb 5 13:23:41 2025 +0100
dco-win: disable dco in server mode if multiple --local options defined
Signed-off-by: Lev Stipakov <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg30805.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#3) to the change originally created by stipa. ( http://gerrit.openvpn.net/c/openvpn/+/885?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: dco-win: disable dco in server mode if multiple --local options defined
......................................................................
dco-win: disable dco in server mode if multiple --local options defined
dco-win doesn't yet support multisocket, so for the time being we have to fallback to tap-windows6.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg30805.html
---
M src/openvpn/dco.c
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/885/3
src/openvpn/dco.c +12 -0
@@ -279,6 +279,12 @@msg (msglevel,"NOTE: --remote is not defined. This DCO version doesn't support multipeer. Disabling Data Channel Offload" ); return false; } + +if ((mode ==MODE_SERVER ) && (ce->local_list->len >1 )) + { +msg (msglevel,"NOTE: multiple --local options defined, disabling data channel offload" ); +return false; + }#endif return true;
@@ -355,6 +361,12 @@ return false; } +if ((o->mode ==MODE_SERVER ) && o->ce.local_list->len >1 ) + { +msg (msglevel,"multiple --local options defined, disabling data channel offload" ); +return false; + } +#elif defined(TARGET_LINUX)/* if the device name is fixed, we need to check if an interface with this * name already exists. IF it does, it must be a DCO interface, otherwise
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/885?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: I8724eda269b816dd2cfd0833d467e6d24054e96f
Gerrit-Change-Number: 885
Gerrit-PatchSet: 3
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/885?usp=email )
Change subject: dco-win: disable dco in server mode if multiple --local options defined
......................................................................
dco-win: disable dco in server mode if multiple --local options defined
dco-win doesn't yet support multisocket, so for the time being we have to fallback to tap-windows6.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg30805.html
---
M src/openvpn/dco.c
1 file changed, 12 insertions(+), 0 deletions(-)
src/openvpn/dco.c +12 -0
@@ -279,6 +279,12 @@msg (msglevel,"NOTE: --remote is not defined. This DCO version doesn't support multipeer. Disabling Data Channel Offload" ); return false; } + +if ((mode ==MODE_SERVER ) && (ce->local_list->len >1 )) + { +msg (msglevel,"NOTE: multiple --local options defined, disabling data channel offload" ); +return false; + }#endif return true;
@@ -355,6 +361,12 @@ return false; } +if ((o->mode ==MODE_SERVER ) && o->ce.local_list->len >1 ) + { +msg (msglevel,"multiple --local options defined, disabling data channel offload" ); +return false; + } +#elif defined(TARGET_LINUX)/* if the device name is fixed, we need to check if an interface with this * name already exists. IF it does, it must be a DCO interface, otherwise
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/885?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: I8724eda269b816dd2cfd0833d467e6d24054e96f
Gerrit-Change-Number: 885
Gerrit-PatchSet: 3
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged