Message ID | 20250121161025.37545-1-frank@lichtenheld.com |
---|---|
State | New |
Headers | show
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:6166:b0:5e7:b9eb:58e8 with SMTP id t6csp158554mab; Tue, 21 Jan 2025 08:10:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWyXSBCzGBgL4PhF6dtMQsQMAekV7bNRZISfULi9MSmOf9WivVHPCwuCbcfclsLrzyPmqKWaVbJKew=@openvpn.net X-Google-Smtp-Source: AGHT+IEa7/gG3LYTY2c3c9MUgCQlUMl0lWQh4sFgmoGhjJqvcLVConkhxii1VM0MyqWiQrWv4AU4 X-Received: by 2002:a05:6871:d085:b0:29d:efe8:5a49 with SMTP id 586e51a60fabf-2b1869b4c27mr14577267fac.3.1737475850761; Tue, 21 Jan 2025 08:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737475850; cv=none; d=google.com; s=arc-20240605; b=b/DOpant0enlisqEinGjCjEFjI6gcQTan0+7oHP/7lRBT/luOkk8/f3U2j0fNLPexo Btq3xK/TgEUDrkvBCFMXRxkPsyZr8o/YYaoTPQ23/BD3CnuRLlnOLgKIQ4MwbXXXtYMc UReMcECkkuKG1oeMDAkVcci/x8Eaz2BU8G9E3ZVZlezw+UNgLMW96ro0obaaGE2vKaEH 8WfzLFpSo7e/YrWDJEKklSVINVaKdeEsfbf4d3blaonosDG6avITSILai3Ecc6uvuZAf eVWggqZgDNGuJSEhdOoCPfCMmTqTH4ld1XdODOrZ4uNwxgDLn0Pbowx90L5cs/3EXt7N LI7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:content-transfer-encoding:cc: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=LpViZRQV8ByvrCYmt33KyJfq9fpBdxGxwL7q5q2AAkQ=; fh=ZRBZ3p4fvLYBwsG7McdxRCx2fnmH9YCsPK+JAqT+6LA=; b=RVOfi9Xn7ZoQJNyxgFLcQXWRqlsNukyniPPul05/xyJwFKLbbLZF12qNCqXpp4gY3z 3e/xRst5R2o7QbuVwSVhcVSojNLMP4Xs5NuDI7wxTdgXBfc4z/GNmOfS47v3SVX4w+pa b34JafmK8pJMw6WVBKmKl4agLzrG9lJqwj9lE12HDat6+/V0ZU0iexeOtLGDQ3oj8XYI vXenjIN0tq6IbgSJXGTF2XsC8wfSAX7dJcEiPIFMdK2zJaNzSpZserEZAIYds8uosvyq tVY4PHdLGvycC2WKIE1WC06gU4+7dPqkIJ8kZz6W3S2LH8dwH8ML82GBTqLyg7sF5xmU We2A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=DaRCEISL; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=f5HxiWS6; dkim=neutral (body hash did not verify) header.i=@lichtenheld.com header.s=MBO0001 header.b="B1fKh/yD"; 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 Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 586e51a60fabf-2b1b8ce2123si10053524fac.81.2025.01.21.08.10.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jan 2025 08:10:50 -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=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=DaRCEISL; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=f5HxiWS6; dkim=neutral (body hash did not verify) header.i=@lichtenheld.com header.s=MBO0001 header.b="B1fKh/yD"; 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 Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1taGpx-000461-E0; Tue, 21 Jan 2025 16:10:44 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <frank@lichtenheld.com>) id 1taGpu-00045q-S5 for openvpn-devel@lists.sourceforge.net; Tue, 21 Jan 2025 16:10:43 +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:Cc:To:From:Sender:Reply-To: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=tvZtTZqRi9K5eg1x15dt79TsmUzAIhhpk1y4SoRr5tY=; b=DaRCEISLxqYjj+/s/0ARICO+BG /dmEcxLqrm0h/nu4QzBnYLLLWtWFzP5QsfKLC8jz3+UO046VG6SHnTqDxPkWH/awkO2IkkbS7XSIG 71NEpYrVunZ7bFh2nyvuQFmvT1YDeP9xrDW1YloYzVy0Z9BeYy1fxLXUlXPGazqYyFlk=; 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:Cc:To:From:Sender:Reply-To: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=tvZtTZqRi9K5eg1x15dt79TsmUzAIhhpk1y4SoRr5tY=; b=f5HxiWS6wCso4wq4BH2fvCbt1h T+u+8HMGBv5EK9knFWvhmg3utXXPcxR3P8YXnhhSa9VHFM7+yh4MEoEFILqkigAx+xAaEmNg7yOrC E8p4EfW9ALxAFVAIs4NKtJG7cxbPoJrixxF+V5vPcx5sxZgN/OzrmKsUJizEUGaLj2HQ=; Received: from mout-p-101.mailbox.org ([80.241.56.151]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1taGps-0002Hi-Ih for openvpn-devel@lists.sourceforge.net; Tue, 21 Jan 2025 16:10:42 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4Ycscf6ypsz9sq4; Tue, 21 Jan 2025 17:10:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lichtenheld.com; s=MBO0001; t=1737475827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tvZtTZqRi9K5eg1x15dt79TsmUzAIhhpk1y4SoRr5tY=; b=B1fKh/yDAyh9A3vVvf6Jb2/Trt2A/9mulNBM4ZjweA38AJcdf4l2MmimhjSeFyHB+CNPpA zLmnsokChnqetkxMe26x44ZmL3NjmoUy4oUdYJHqHdPFlA2K/eAO6C36LAhAKosmKEx7Sh dLF1EehxBRIz0RIMg2zyvaK2SMFffFpDCMvFoX8r7hjm8Zo+doIBf9hDW/mrS2YuqxxQP1 u/yjxl7tgdn1h04KV5K1ss2aphwb1LpFJ80c65R72apwA2Z40uqcL5HxyZDEa2s1np8ykP aF6dHYMB+fa+XUp+gNWiX+chu6fKBIKTNckm642l2v9jKSQGJcLBpztdpRbqcQ== From: Frank Lichtenheld <frank@lichtenheld.com> To: openvpn-devel@lists.sourceforge.net Date: Tue, 21 Jan 2025 17:10:25 +0100 Message-Id: <20250121161025.37545-1-frank@lichtenheld.com> In-Reply-To: <gerrit.1732212459000.I145573555aaace5e94774b5f977d032d3747ed72@gerrit.openvpn.net> References: <gerrit.1732212459000.I145573555aaace5e94774b5f977d032d3747ed72@gerrit.openvpn.net> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4Ycscf6ypsz9sq4 X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-1.v13.lw.sourceforge.com", 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: Lev Stipakov <lev@openvpn.net> dco-win requires control packets to be prepended with sockaddr. For that, an offset value in buffer must be kept. Doing it always doesn't harm and makes code cleaner compared to adding "if (dco_win_se [...] Content analysis details: (-0.9 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [80.241.56.151 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [80.241.56.151 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [80.241.56.151 listed in bl.score.senderscore.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-Headers-End: 1taGps-0002Hi-Ih Subject: [Openvpn-devel] [PATCH v10] mudp.c: keep offset value when resetting buffer 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> Cc: Lev Stipakov <lev@openvpn.net> 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?1821875477295727476?= X-GMAIL-MSGID: =?utf-8?q?1821875477295727476?= |
Series |
[Openvpn-devel,v10] mudp.c: keep offset value when resetting buffer
|
expand
|
diff --git a/src/openvpn/mudp.c b/src/openvpn/mudp.c index 6137578..1a3a4c7 100644 --- a/src/openvpn/mudp.c +++ b/src/openvpn/mudp.c @@ -54,7 +54,9 @@ struct context *c = &m->top; - buf_reset_len(&c->c2.buffers->aux_buf); + /* dco-win server requires prepend with sockaddr, so preserve offset */ + ASSERT(buf_init(&c->c2.buffers->aux_buf, buf.offset)); + buf_copy(&c->c2.buffers->aux_buf, &buf); m->hmac_reply = c->c2.buffers->aux_buf; m->hmac_reply_dest = &m->top.c2.from;