| Message ID | 20250727102420.25284-1-gert@greenie.muc.de |
|---|---|
| State | Superseded |
| Headers | show
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:7000:3644:b0:671:5a2c:6455 with SMTP id a4csp2460012mai;
Sun, 27 Jul 2025 03:24:32 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCXWbnoTygm7DYABJdX4svGrOMnchFOqwt/TFomi4+jKtp2useCXkU0UiBV5i8MLgW/y6GCTDwwq1UM=@openvpn.net
X-Google-Smtp-Source:
AGHT+IHCprNiIBDrroVRTgcLOze6f28EWPuSbfYqUqdmsqBE3bsHoYuVIlHxNId1sGN9/d8lVLpT
X-Received: by 2002:a05:6871:7d82:b0:2ff:d18b:5b39 with SMTP id
586e51a60fabf-306e813a7camr5876551fac.6.1753611872071;
Sun, 27 Jul 2025 03:24:32 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1753611872; cv=none;
d=google.com; s=arc-20240605;
b=MP67mt18RKCEmoLIJv+SBHjuPsI6O17ECacyK5UYoc8z/krb/IMhVNWhfut75/JABp
A/H5n6Qp2zZXtVwwI/eU+o0Aa98YB0RhngPabedEehw+gFyGAkjhlu+cdV3veSdEecvf
HXxv2wPuMBrxyr+L78Xliheiq58cgPo7I/qFZ05gBMLG5yi2Yltu1LNThC+X81J00t8d
EnNayZ1AeBQZU601CxkifYYWhXGsb9zJBuwpTlauqNEu8drY5nlhqFAl4WS6of+AFBdf
qUpNyxq1qpPDBok5wfmLP0ZrEwzN7XAbyb1051JUQXFi2E/JtE0o9dkiyipAR9F8dfD+
WXyg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
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=ftpljkc4+YEyV1pxj48lFbgcv9TTCqBi8aimihKRnZg=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=jgj/nozD6t314zZ+eKEKJmFKw4ZJNdA/e+HmNfTFRNo8nGcGDuuJSZUWW44Q8R77Hj
+CJt9zcSC2DD1oywIA4LnSfKcq7xo3+VpS0Zkq4LWoWfyBGSBKjYJ4ETH9gF54p2VIlA
4/bD8gtSLFipknmvePJJCcR6wWneIszwLKoxm9wr+bUUSCt0brbZgHBl9hcIV+7GCiMP
NAswvamFUzsOJDRZrDJ+wjw3J79QXe9Sg9z83xnU1fmnMwZL9Yez4RmbZ64mb++AkwN/
Qpck9CKghqkr4FxQ+M1m5GdEn4/iJlhEKK1y0Ns9hQTt18vM4LWfa1M4VmLSrcsHBKWi
0+lg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=XHq78EJq;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=ks+njwX2;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=ghMVzDq8;
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
46e09a7af769-741482e971csi1287208a34.221.2025.07.27.03.24.31
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sun, 27 Jul 2025 03:24:32 -0700 (PDT)
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=XHq78EJq;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=ks+njwX2;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=ghMVzDq8;
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-Owner;
bh=ftpljkc4+YEyV1pxj48lFbgcv9TTCqBi8aimihKRnZg=; b=XHq78EJqPoDuqcH2i7TebGV4uI
C5kC7S7uuTzZerGLNg+kG/ycq+sXk1OoDyf/BuMA/5HnRHgqQs6t1RSZDVVk8S65qg/vDosP8d5O5
1MekeAVWCShyrmVj55GCweemfJIO4WE4aQ8aMMKvRwnZDrqhM/o34kqEyxkW5beOJfeM=;
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.95)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1ufyYQ-0004DG-Ba;
Sun, 27 Jul 2025 10:24:30 +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.95)
(envelope-from <gert@blue4.greenie.muc.de>) id 1ufyYO-0004D4-QI
for openvpn-devel@lists.sourceforge.net;
Sun, 27 Jul 2025 10:24:28 +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-Subscribe:List-Post:List-Owner:List-Archive;
bh=mTGrxD5HNKUOpc1nL/G6UWFTspwMN2fexBrWASPvhRA=; b=ks+njwX2q0fY+vMi/2wAEWOeSe
eKnjRnwt7FFnNQ7V6rEMcYvXj/UpCz/NK0DUJFJUvPTO6AvPUenXu9EfkBT/EyhCGAwuQYx3kpysg
stXxWhne5k58F0FftG21DrI+icMBF1EmUhzA3sB6/zs+GQ5RvQ3gX8NrrHmFRFemykPE=;
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-Subscribe:
List-Post:List-Owner:List-Archive;
bh=mTGrxD5HNKUOpc1nL/G6UWFTspwMN2fexBrWASPvhRA=; b=ghMVzDq8QPjlipZEvZs0R24PEE
S3/0+3SrH/gNKvJ9gyBbaRKiDcxC1U6gB+c0sR+SHkCJHEX2WdvYVi9NFq3UW547iVt1LWG5+rCgU
2xsF8409CElLw08knizDo77QwciPut5PJ8NbvKq7t1HnFxLaOM9YD0geHwSut6+l2Wnc=;
Received: from [193.149.48.143] (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.95)
id 1ufyYN-0003Ij-Od for openvpn-devel@lists.sourceforge.net;
Sun, 27 Jul 2025 10:24:28 +0000
Received: from blue.greenie.muc.de (localhost [127.0.0.1])
by blue.greenie.muc.de (8.17.1.9/8.17.1.9) with ESMTP id 56RAOLQH025330
for <openvpn-devel@lists.sourceforge.net>; Sun, 27 Jul 2025 12:24:21 +0200
Received: (from gert@localhost)
by blue.greenie.muc.de (8.17.1.9/8.17.1.9/Submit) id 56RAOLc9025329
for openvpn-devel@lists.sourceforge.net; Sun, 27 Jul 2025 12:24:21 +0200
From: Gert Doering <gert@greenie.muc.de>
To: openvpn-devel@lists.sourceforge.net
Date: Sun, 27 Jul 2025 12:24:15 +0200
Message-ID: <20250727102420.25284-1-gert@greenie.muc.de>
X-Mailer: git-send-email 2.49.0
In-Reply-To:
<gerrit.1753488078000.I1ad5df0f6785ffe9becd9f83329a9335d1a36f24@gerrit.openvpn.net>
References:
<gerrit.1753488078000.I1ad5df0f6785ffe9becd9f83329a9335d1a36f24@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: Antonio Quartulli <antonio@mandelbit.com>
multi_process_float()
will possibly float a client and also generate and set its new prefix.
However,
after processing the PEER_FLOAT_NTF message, we were not clearing the prefix,
thus effectivly making the generated prefix permanent until the next
set_prefix() call.
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: 1ufyYN-0003Ij-Od
Subject: [Openvpn-devel] [PATCH v2] dco: drop client prefix after DCO
PEER_FLOAT notification
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: =?utf-8?q?1838795322232311153?=
X-GMAIL-MSGID: =?utf-8?q?1838795322232311153?=
|
| Series |
[Openvpn-devel,v2] dco: drop client prefix after DCO PEER_FLOAT notification
|
expand
|
diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index c90ed5b..44210cb 100644 --- a/src/openvpn/multi.c +++ b/src/openvpn/multi.c @@ -3417,6 +3417,10 @@ &m->top.c2.from.dest, (struct sockaddr *)&dco->dco_float_peer_ss); multi_process_float(m, mi, mi->context.c2.link_sockets[0]); + /* multi_process_float() generated and set a new peer prefix, but we + * don't to keep it at this point. + */ + clear_prefix(); CLEAR(dco->dco_float_peer_ss); } #endif /* if defined(TARGET_LINUX) || defined(TARGET_WIN32) */