| Message ID | 20261125182426.29675-1-gert@greenie.muc.de |
|---|---|
| State | New |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id
tl9-n1csp6125143lad;
Wed, 25 Nov 2026 10:24:39 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErFWUFisVxdQkDiuJ1JaSQFG0wXiB0YC9/sJJuoFLsDjZMfVPNvzfgjS4Er69gaC02JIaG2qnUr+PVc=@openvpn.net
X-Received: by 2002:a05:701b:4213:20b0:1a4:3169:cb with SMTP id
a92af1059eb24-1b56c5ffccfmr14068972c88.17.1795631078707;
Wed, 25 Nov 2026 10:24:38 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1795631078; cv=none;
d=google.com; s=arc-20260327;
b=PXPCJ/f4sHy4fyVvIoeaX5aWrXSBkNG1X1DSox8m3hL+bm3LMT2MLiMoX4oAsolJ+2
R6zhP/CAOzHujqjyQ647yGnk/yxYwjwo6fs5gsPz1p7gYKucPSproCdytjE1zRF+p8ns
sTYsC+cvB1//FyNucHG2FCW/wfM0/7dr57Px015hTMCTLlG3sOtliD11/5PxyB1rG+A7
/+/yhrx+MvJp+GlgxewLPQ9wUE/cXwFv2IPbMpfDtGSTJ3wNxTOGkhyM9S5Xu8RtvKW0
2dDGPOYCXl65+ClVNdUEkk+niJqqfV6G/KTmWYsOsuCxKwHLz7VN3t4lJmmfQhE23M8A
JAGQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=errors-to:content-transfer-encoding:list-subscribe:list-help
:list-post:list-archive:list-unsubscribe:list-id:precedence:subject
:mime-version:references:in-reply-to:message-id:date:to:from
:dkim-signature:dkim-signature:dkim-signature;
bh=VubbQPldkWg+Etfb9VLJn+pxxXO6txVjyqSYpYFYXOo=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=l7bXD8CLnJ3x2FgJYZ2CX8oCa4u1M91VEpy6JuyoDVCCGA4+D7gonsWBrzMCQ+/yNa
gys/z845TeR8DJ2Fl2SlpQj0xs7J3jZuZJ2ReqHVlNUmaTLM9kXI3jMjPGyd/6yunCT/
B2NsZSlmP+f0ohsN2+Re++lCBlV+tgi+j7tXBGuX2l9ZpWG1SXNOj2El0Mur+ohddVCS
YwwK3krtSOdG4052c4VsHWxZK3mNHfyBZG/Rbnzol++ymLUxTmWLzwxACxNg8G0J1pUM
uylyIRxlwNFixFBJEIZ6IDDawvO7Lf+7ksyOjz57gCd0l1f/K2JVB9Qpv5s0fZGMEgGg
337w==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=M3A86Oaq;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=gFFUKjDW;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=ZSTHCvRN;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
a92af1059eb24-1b58e6bb425si1979796c88.0.2026.11.25.10.24.38
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Wed, 25 Nov 2026 10:24:38 -0800 (PST)
Received-SPF: pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) client-ip=216.105.38.7;
Authentication-Results: mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=M3A86Oaq;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=gFFUKjDW;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=ZSTHCvRN;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:
List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:
Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender:
Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post:
List-Owner; bh=VubbQPldkWg+Etfb9VLJn+pxxXO6txVjyqSYpYFYXOo=; b=M3A86Oaqn4yzgD
5Hcje4ZPJj4XP6ubvlw/dtNPg7x//EGbUk+uXGKLfVrm5nG5PgrcfwZkDlTu7Bma6IxpZNKbX3Is+
tcVkmnqOUiTNt5seSd9deZtwGS2724fTVBlBUjZq0KSSnN/TOGV8IXhziVm5KfnDjUxIlhMjzNHzX
2+I=;
Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com)
by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.100.1)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1xWHfZ-000000001vI-2TOV;
Wed, 25 Nov 2026 18:24:37 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1)
(envelope-from <gert@blue4.greenie.muc.de>)
id 1xWHfZ-000000001vC-09EW for openvpn-devel@lists.sourceforge.net;
Wed, 25 Nov 2026 18:24:37 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References:
In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive;
bh=o7PoEzLn0WvN5D2RPd1o/U1Ir/0GaWTcN11Vdm2t5JU=; b=gFFUKjDWVWe8Or2BOQWy+6iSZP
otKMBGRWSmE4UhXfJOqHXkEaiP8TrrtFzY5OGf9wZ6Exx/7KIOPm7cTEN825ljOAk8Uhy5NfJuRW4
wC54F1O1uv2/dvk32SOCk+RlApOKgBK0gM9vC/6HX+s2fgDVxbRMezJUnVotgyPUS9kY=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:
Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=o7PoEzLn0WvN5D2RPd1o/U1Ir/0GaWTcN11Vdm2t5JU=; b=ZSTHCvRNXzxkJgHwqoax6OGN5y
o5J0pel8kZlILEyoPdv9AohV14WTrFyUnfzlfXcOZA6IM5EXef9Y5Nbp6T8C/3ysSTX6s5aakt/PK
PHnmy8cw/koiXvckT4csuNCY173GIVHugUdPKt5da9VRYqA5po2ewP4UYuVVccuShOzc=;
Received: from [193.149.48.129] (helo=blue.greenie.muc.de)
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1)
id 1xWHfV-000000001Vl-3s5l for openvpn-devel@lists.sourceforge.net;
Wed, 25 Nov 2026 18:24:36 +0000
Received: from blue.greenie.muc.de (localhost [127.0.0.1])
by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6APIOQTv029694
for <openvpn-devel@lists.sourceforge.net>; Wed, 25 Nov 2026 19:24:26 +0100
Received: (from gert@localhost)
by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6APIOQP4029693
for openvpn-devel@lists.sourceforge.net; Wed, 25 Nov 2026 19:24:26 +0100
From: Gert Doering <gert@greenie.muc.de>
To: openvpn-devel@lists.sourceforge.net
Date: Wed, 25 Nov 2026 19:24:20 +0100
Message-ID: <20261125182426.29675-1-gert@greenie.muc.de>
X-Mailer: git-send-email 2.55.0
In-Reply-To:
<gerrit.1795515967000.I7b13d8b5e0babb697191e21adf2998a090c310f4@gerrit.openvpn.net>
References:
<gerrit.1795515967000.I7b13d8b5e0babb697191e21adf2998a090c310f4@gerrit.openvpn.net>
MIME-Version: 1.0
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software,
running on the system "sfi-spamd-1.hosts.colo.sdot.me",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: From: Razvan Cojocaru <razvanc@mailbox.org> ovpn_dco_init()
switched on c->mode, a CM_* value, but used MODE_* case labels, which are
options modes. This only worked because CM_P2P/CM_TOP and
MODE_POINT_TO_POINT/MODE_SERVER share values.
Content analysis details: (1.3 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Headers-End: 1xWHfV-000000001Vl-3s5l
Subject: [Openvpn-devel] [PATCH v1] dco_win: use CM_* case labels when
switching on context mode
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: 1882855654028283464
X-GMAIL-MSGID: 1882855654028283464
|
| Series |
[Openvpn-devel,v1] dco_win: use CM_* case labels when switching on context mode
|
|
Commit Message
Gert Doering
Nov. 25, 2026, 6:24 p.m. UTC
From: Razvan Cojocaru <razvanc@mailbox.org> ovpn_dco_init() switched on c->mode, a CM_* value, but used MODE_* case labels, which are options modes. This only worked because CM_P2P/CM_TOP and MODE_POINT_TO_POINT/MODE_SERVER share values. Change-Id: I7b13d8b5e0babb697191e21adf2998a090c310f4 Signed-off-by: Razvan Cojocaru <razvanc@mailbox.org> Acked-by: Lev Stipakov <lstipakov@gmail.com> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2335 --- 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/+/2335 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Lev Stipakov <lstipakov@gmail.com>
Comments
This was actually a good test... gerrit 2334 made the compilation on
MSVC (with -Werror) fail, because two different enum types were mixed
- which is what the goal of 2333+2334 was, just that this particular
fix might have gotten in earlier.
Anyway, here it is, and now MSVC should be appeased ;-)
Since this is actually a bugfix, it lands in 2.7 as well.
Your patch has been applied to the master and release/2.7 branch (bugfix).
commit 99ee0917a97c06d30e46900467e9cea83bfe7003
commit d6fd267b57f348d4c014235d9f1bda7bce9410da (release/2.7)
Author: Razvan Cojocaru
Date: Wed Nov 25 19:24:20 2026 +0100
dco_win: use CM_* case labels when switching on context mode
Signed-off-by: Razvan Cojocaru <razvanc@mailbox.org>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2335
Message-Id: <20261125182426.29675-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg41962.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
diff --git a/src/openvpn/dco_win.c b/src/openvpn/dco_win.c index a854045..6074552 100644 --- a/src/openvpn/dco_win.c +++ b/src/openvpn/dco_win.c @@ -197,12 +197,12 @@ switch (c->mode) { - case MODE_POINT_TO_POINT: + case CM_P2P: dco->ifmode = DCO_MODE_P2P; dco_p2p_start_vpn(dco->tt); break; - case MODE_SERVER: + case CM_TOP: ovpn_dco_init_mp(dco, c->options.dev_node); break;