Message ID | 20251017205618.8273-1-gert@greenie.muc.de |
---|---|
State | New |
Headers | show
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:7d42:b0:72f:f16c:e055 with SMTP id fr2csp4749946mab; Fri, 17 Oct 2025 13:56:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVTsj1C/+3YJkn/310aoXsSDYi5wbsh7+F3AL1GpP/TXPgyJTIAabSIYWtrUC79zTuQKskwE6fp9+E=@openvpn.net X-Google-Smtp-Source: AGHT+IFCbuTO2mV0Zhhi30AnzlQQdU43TGtHPViao6+ju7PeHAF6ge1UEYyFeduNvTt00sEnU01a X-Received: by 2002:a05:6808:80cc:b0:43f:75e2:af41 with SMTP id 5614622812f47-443a2f27f12mr2924792b6e.15.1760734602464; Fri, 17 Oct 2025 13:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1760734602; cv=none; d=google.com; s=arc-20240605; b=XcjhP2a+7I9elgK5MEPEuQ3sAn6FXN3hhrLtLMZMTzdACNSKJabQwQJdTVNHG/OcGM QkpgoLhRetgLPVUNUYcDDQe3WA2l5XXWuYSbS4Pmh6Jo6xac5Wj+4VA7Be9eYqncb5rQ Sj34EPMHlK5axUJ8dXu8aYmPsToFV0i8an7zufYVcctZLa6MHGpuZJtZlQkK61YeRQuD NsvY2vgO5iQmEw9BP0kjUah26SLF1348nn26IQEXyL5RwP0PPd4g7KCPlLmiFWrecIMx NvI0cvd/RXVv0/rKzpjeEIclkytAYSW689FvAjZt28ywWiE76iBCI3nW+PTRaKoP1S68 L/Nw== 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=Cn5/mUr6xehe84w+qPsA+F102XXGibUy0aBlV4q5Oig=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=VRfzXclvvd9Q6uosjNCcDQ2IbcatzsEt7kztSwpYe3+G8L46oOQwbRk+qY4oOkIf5D 4LYU9BN1x85POSKqF7ppFQgudaSkaJYuz8L7mYjOREsLkMczpDxS0aYEVMchFPA6MaRh 09G/4m2P/LaNxemGaSMBNcFHbrHr0vMqzxsgQZQbfcyOBYZSFBlITl8jxFITvva60yMR ZXqG9u1oViBohmCHFgs4Vc0sHgftQ1zvjOXTW4eDszZr3lrLJw+jON491SLQs29hhcRV QoJhrl9WlQ78RC2kPUWnSo+L9mOq9NetYl08OG2ddziy+R4a6aLLn171uaUWFrthwdYx L2+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=WMSWU7sM; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=kVYM002X; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=W7CsuBJN; 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 006d021491bc7-651d3fa0038si146195eaf.125.2025.10.17.13.56.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Oct 2025 13:56:42 -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=WMSWU7sM; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=kVYM002X; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=W7CsuBJN; 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=Cn5/mUr6xehe84w+qPsA+F102XXGibUy0aBlV4q5Oig=; b=WMSWU7sMbP0MRfea/vYf87/s/F ooB8eEeODn3zsDtB7bLtlPckCLS3765+6K2CXRQbdXW9MVXcOdw1ivsVUxp2BsHE8Cm1ee15+Q+y1 /nBwY2vQpSlMHvJWK8TLv1WHmWDMkqjALIxhnV9JKo3EDeENEd5Yu+vKhWCrc5vqEpY8=; 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 1v9rV9-0005bx-09; Fri, 17 Oct 2025 20:56:39 +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 1v9rV2-0005bl-TA for openvpn-devel@lists.sourceforge.net; Fri, 17 Oct 2025 20:56:32 +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=q591l1QuIBEXikPcSopbRxUhWMdk5V0k+TDtftwEcQ0=; b=kVYM002X7kO4SVlADPdoajkAVY OPWZGs63X7uI0Z7Ek4PdbMpR+SVnHky4e7dVV5u1Ofl2B3VskCqav2bd9ax54We1aKLw6r99F1R6S V3rFUilBW5Y7M1RerNvS8uATX91ZAmI3bRDNe0SygV40qs2bM6bVcebxQ6Q0XxST1G/o=; 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=q591l1QuIBEXikPcSopbRxUhWMdk5V0k+TDtftwEcQ0=; b=W7CsuBJN56kEGaXf4GsYSkRi7E jhxcg68SE1ug0nsegb3SaX+m1rlg/IVWrLgrJivbEOMdTMK7IAHAkzVC80qCHu45BsAVx8qOOoWMJ w59tKEvoxfVsLzMLZGlbeUWEQWs7qAWZaOb835f6dkzX7ac2H5PKemWmeAr92ORTqBTw=; Received: from [193.149.48.134] (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 1v9rV0-0006RR-C7 for openvpn-devel@lists.sourceforge.net; Fri, 17 Oct 2025 20:56:31 +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 59HKuIuE008290 for <openvpn-devel@lists.sourceforge.net>; Fri, 17 Oct 2025 22:56:18 +0200 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.1/8.18.1/Submit) id 59HKuIKb008289 for openvpn-devel@lists.sourceforge.net; Fri, 17 Oct 2025 22:56:18 +0200 From: Gert Doering <gert@greenie.muc.de> To: openvpn-devel@lists.sourceforge.net Date: Fri, 17 Oct 2025 22:56:12 +0200 Message-ID: <20251017205618.8273-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.49.1 In-Reply-To: <gerrit.1760513121000.I53dd40fabdeacb9dca843e28fdd3b357711c5a84@gerrit.openvpn.net> References: <gerrit.1760513121000.I53dd40fabdeacb9dca843e28fdd3b357711c5a84@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: Ralf Lici <ralf@mandelbit.com> The dco_context_t structure includes a reference to the general context structure c, which allows us to store dco_read_bytes and dco_write_bytes directly as c2 fields. This aligns the FreeBSD implemen [...] 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: 1v9rV0-0006RR-C7 Subject: [Openvpn-devel] [PATCH v2] dco-freebsd: store peer stats directly in c2 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?1846264046774103918?= X-GMAIL-MSGID: =?utf-8?q?1846264046774103918?= |
Series |
[Openvpn-devel,v2] dco-freebsd: store peer stats directly in c2
|
expand
|
diff --git a/src/openvpn/dco_freebsd.c b/src/openvpn/dco_freebsd.c index 947a769..f7ed02f 100644 --- a/src/openvpn/dco_freebsd.c +++ b/src/openvpn/dco_freebsd.c @@ -621,8 +621,8 @@ { const nvlist_t *bytes = nvlist_get_nvlist(nvl, "bytes"); - dco->dco_read_bytes = nvlist_get_number(bytes, "in"); - dco->dco_write_bytes = nvlist_get_number(bytes, "out"); + dco->c->c2.dco_read_bytes = nvlist_get_number(bytes, "in"); + dco->c->c2.dco_write_bytes = nvlist_get_number(bytes, "out"); } dco->dco_message_type = OVPN_CMD_DEL_PEER;