From nobody Thu Nov 02 15:11:04 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SLnQ041wSz4ybJp; Thu, 2 Nov 2023 15:11:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SLnQ03PGgz4bvF; Thu, 2 Nov 2023 15:11:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698937864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Yzpt58dv9UNw3t+fP7rYcH6gHjk0DlNVXB4Sv48qXzU=; b=Om78amnWWcjkHUAUwjR/7/SNP9AtinDMAkFE7sxHeFXgcQCECJRGE7NGOlQv23rTdeeIEw PWyuOMAQPQJB3ZMwnHmay72Ew1rNvFd/4LSxXEgxtmqjmXNi2E/PfhMwpcLz7po/uUnZYj y8TeQA/yIRGMOH30kazTT7O++NTcEo7ICtxXDfPhvO7BEhz6VRN1fPFt5ykWF7GhO2fEXV tel66C8rtX5jfU7M2lfQnkwagvU0ECUKrpiivfNWE7oLE6j6f/5x3qSDh2XgtLmlszzIG4 fyCWjz3NcL5pwMXf3p7ob1CoJ4y9LLU5B8VGzBJBShFFAeJ1xgsyTIS5+L3BSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698937864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Yzpt58dv9UNw3t+fP7rYcH6gHjk0DlNVXB4Sv48qXzU=; b=H+po8h0e7JxMZcG2bYOUVz5SBqeYR0oFGotDpjXLOQla69MFlxJ38ujLMWAl7oexhdqH6+ DNoBElyLhNGv1sWyQYNOaTYECsHpKbmOnH3OLGlq55xzdhKkpKyYJV2sdtKoPON+QnpQDk vjWivnCb/J+kOH9lj0ZoI5shz2xmpNPjD5qXV1FdAr2TkhsY+j+7UwjUDzhraFQk+wyR8O niJ3YruJ2Z43jcPNpCeJ3BXzxVTaJj6KvD3Nvju+PSBxLbXEC7/i4Hu43XtrgKKQ3U9vRm BVtOoywaj6uQE/aTxEnrvTUbm85mqKe7WgicD/YMXQ3RogtCWiar5S4xbQII+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698937864; a=rsa-sha256; cv=none; b=w5tsIk0786QCb5uTa0PGuUTzje5TVsu64c+Cvs+jWEz428cbofktyW6b/pvAQrLUlGyN6s 848kIOChSrxSRIfIUNr6Y7EZRiQZjfBMxnLZhz+VkLXFSP9SiiVYK9nJEuR2WF7NIWYy5i xk1+JkMYc7tQunSd74U+pnb3El07x49G28eDwBmwwtAk8yw+Po06pGilJ8CrOgaHf1e2U2 GmUCnKlMyWKKjTyYK1GAD0AEH593anOkXN7sRa5nSd61Aho0gRc7fIOhPN8PjcrIAw3TYx vghT77MdI3GcGQUrXK9pYUqN8Ql17lfutWTQN2pkpSsp4Dgs3VQb4Z9lj3/LZA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SLnQ02VmjzYkn; Thu, 2 Nov 2023 15:11:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A2FB4LW088207; Thu, 2 Nov 2023 15:11:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A2FB4dT088197; Thu, 2 Nov 2023 15:11:04 GMT (envelope-from git) Date: Thu, 2 Nov 2023 15:11:04 GMT Message-Id: <202311021511.3A2FB4dT088197@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 64ad7cdbbd0d - stable/13 - libpfctl: add missing pfctl_status_lcounter() function List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 64ad7cdbbd0dbfb2fd245cb8727e81a49c4e058a Auto-Submitted: auto-generated The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=64ad7cdbbd0dbfb2fd245cb8727e81a49c4e058a commit 64ad7cdbbd0dbfb2fd245cb8727e81a49c4e058a Author: Kristof Provost AuthorDate: 2023-10-30 18:02:29 +0000 Commit: Kristof Provost CommitDate: 2023-11-02 08:48:38 +0000 libpfctl: add missing pfctl_status_lcounter() function We already had accessors for the other types of counters, but not this one. MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 1c824f430a395cdc66e22406e72f20ebd300e47e) --- lib/libpfctl/libpfctl.c | 6 ++++++ lib/libpfctl/libpfctl.h | 1 + 2 files changed, 7 insertions(+) diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c index e0fc90960d7c..2a77aeb0efad 100644 --- a/lib/libpfctl/libpfctl.c +++ b/lib/libpfctl/libpfctl.c @@ -271,6 +271,12 @@ pfctl_status_counter(struct pfctl_status *status, int id) return (_pfctl_status_counter(&status->counters, id)); } +uint64_t +pfctl_status_lcounter(struct pfctl_status *status, int id) +{ + return (_pfctl_status_counter(&status->lcounters, id)); +} + uint64_t pfctl_status_fcounter(struct pfctl_status *status, int id) { diff --git a/lib/libpfctl/libpfctl.h b/lib/libpfctl/libpfctl.h index e500bbf0bddf..c32cee523d05 100644 --- a/lib/libpfctl/libpfctl.h +++ b/lib/libpfctl/libpfctl.h @@ -291,6 +291,7 @@ struct pfctl_syncookies { struct pfctl_status* pfctl_get_status(int dev); uint64_t pfctl_status_counter(struct pfctl_status *status, int id); +uint64_t pfctl_status_lcounter(struct pfctl_status *status, int id); uint64_t pfctl_status_fcounter(struct pfctl_status *status, int id); uint64_t pfctl_status_scounter(struct pfctl_status *status, int id); void pfctl_free_status(struct pfctl_status *status);