From: "stipa (Code Review)" Date: Wed, 5 Feb 2025 11:12:09 +0000 In-Reply-To: References: Reply-To: lstipakov@...277..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="9ow5rjB6g8w="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: dco-win: disable dco in server mode if multiple --local options defined List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , cron2 , flichtenheld Cc: openvpn-devel --9ow5rjB6g8w= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3Demail 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~ChecksSubmitRul= e are unsatisfied now. Change subject: dco-win: disable dco in server mode if multiple --local opt= ions 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. Change-Id: I8724eda269b816dd2cfd0833d467e6d24054e96f Signed-off-by: Lev Stipakov --- 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 diff --git a/src/openvpn/dco.c b/src/openvpn/dco.c index b5a2136..c65aece 100644 --- a/src/openvpn/dco.c +++ b/src/openvpn/dco.c @@ -279,6 +279,12 @@ msg(msglevel, "NOTE: --remote is not defined. This DCO version doe= sn't support multipeer. Disabling Data Channel Offload"); return false; } + + if ((mode =3D=3D MODE_SERVER) && (ce->local_list->len > 1)) + { + msg(msglevel, "NOTE: multiple --local options defined, disabling d= ata channel offload"); + return false; + } #endif return true; @@ -355,6 +361,12 @@ return false; } =20 + if ((o->mode =3D=3D MODE_SERVER) && o->ce.local_list->len > 1) + { + msg(msglevel, "multiple --local options defined, disabling data ch= annel 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, otherw= ise -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/885?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: I8724eda269b816dd2cfd0833d467e6d24054e96f Gerrit-Change-Number: 885 Gerrit-PatchSet: 2 Gerrit-Owner: stipa Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Attention: stipa Gerrit-MessageType: newpatchset --9ow5rjB6g8w= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, flichtenheld, plaisthos, s= tipa.

stipa uploaded patch set #2 to this change.

View Change

The following approvals got outdated and were removed: Code-Review+2 by cron2

The change is no longer submittable: Code-Revi= ew and checks~ChecksSubmitRule are unsatisfied now.

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 t= ap-windows6.

Change-Id: I8724eda269b816dd2cfd0833d467e6d24054e96fSigned-off-by: Lev Stipakov <lev@...515...>
---
M src/openvpn/= dco.c
1 file changed, 12 insertions(+), 0 deletions(-)

git pul= l ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/885/2
diff=
 --git a/src/openvpn/dco.c b/src/openvpn/dco.c
index b5a213= 6..c65aece 100644
--- a/src/openvpn/dco.c
+= ++ b/src/openvpn/dco.c
@@ -279,6 +279,12 @@
msg(msglevel, "NOTE: --remote is not defined. This DCO versi= on doesn't support multipeer. Disabling Data Channel Offload");
return false;
}
+
+ if ((mode =3D=3D MODE_SERVER) && (ce->l= ocal_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 =3D=3D 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<= /span>
* name already exists. IF it does, it must be a DCO i= nterface, otherwise

To view, visit change 885. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I8724eda269b816dd2cfd0833d46= 7e6d24054e96f
Gerrit-Change-Number: 885
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <lstipakov@...277...>= ;
Gerrit-Reviewer: cron2 <gert@...1296...>=
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: cron2 <gert@...1296...>= ;
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: stipa <lstipakov@...1663...= .>
Gerrit-MessageType: newpatchset
--9ow5rjB6g8w=--