From nobody Sat Dec 14 14:42:35 2024 X-Original-To: pf@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 4Y9TSr5CSBz5gK1v for ; Sat, 14 Dec 2024 14:42:36 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y9TSr3dq7z4yPK for ; Sat, 14 Dec 2024 14:42:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734187356; 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: in-reply-to:in-reply-to:references:references; bh=7VKBvZGSKE4unHFOmTwv4xKguPT4WiWcuF/TyCVg25g=; b=kKWBX8NCXl7nRmU4Q4HCKi28CMDiwS+no3GYSi62Q9MqVx+qRf5avAT+DYhuEwFPc3Jyl+ 9aFLZ/YBNaW/YlQHb+g4xOozmREWhvPc1Xf6aSbNv+fAGW0XMmNWO5j5c5zIx5XOUOoYWJ jnYJNW5MMMYMhr7H4M//7vs2NL0zzWO0B5GPuAuDsXFcF6FGLlrZolPj6szHWE+tMlrI6y Fkn7PNR7Sp53va1w35T3V6gY/7IDC6skH3U5i4V/ZhD10BJasw7eTAMdGrNeFc8cP9I3vI wo/G2CKej4d9gaKwPXG8WKQ23PVCYyfkyMjacDywHjgVj6I3c/s59G97KJsDUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734187356; a=rsa-sha256; cv=none; b=HyJT0DbNxY7qNa/E2HgTfQwDOBZoZUCyiKhTewdq1LQmtliKBSus9ixweBUKXzUE8/Hdv5 +nWpwwJ+PCanHrM9rtMmNBphnosf9vr2avcqX1tOvCh+TLRdS9dvOFIPIJII3XvS4Y7QTh namMtqNJCP6+lrsFiFzSCd09NnkVwKVFXmeOcA3ApKOssXx3ZJLmLYpm6neGwQZvskF6z4 XqNlqzNYCEmtRSGvKbFcKsZ3GcBoAKe9DLTMi6HOuTCKeXVKJBXxBT0uvpzS125TGYtZHv RuEiG8eoSCPEiQng7pws2B/rtlxQQL0z/6b+41BYyvFOHY3Khca95WRw2sD5lg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4Y9TSr3Ds3zRr5 for ; Sat, 14 Dec 2024 14:42:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BEEgaFM031045 for ; Sat, 14 Dec 2024 14:42:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BEEgaDt031044 for pf@FreeBSD.org; Sat, 14 Dec 2024 14:42:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pf@FreeBSD.org Subject: [Bug 282877] pfctl: [Feature request] Allow pfctl to reset statistics for an individual IP address Date: Sat, 14 Dec 2024 14:42:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: feature X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282877 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D642ade0a3d8244c4c0cf82a335c4e940c= b300a96 commit 642ade0a3d8244c4c0cf82a335c4e940cb300a96 Author: Kristof Provost AuthorDate: 2024-11-21 20:33:41 +0000 Commit: Kristof Provost CommitDate: 2024-12-14 10:03:25 +0000 pfctl: clear statistic for specified addresses The ioctl DIOCRCLRASTATS provides the functionality of clearing stats not only for the whole table for for addresses stored in that table. The functionality was missing from pfctl, though. Add it now. PR: 282877 Obtained from: OpenBSD, kirill , e496dff3a7 MFC after: 3 weeks (cherry picked from commit 6463b6b59152fb1695bbe0de78f6e2675c5a765a) sbin/pfctl/pfctl.8 | 6 ++--- sbin/pfctl/pfctl.h | 1 + sbin/pfctl/pfctl_radix.c | 23 +++++++++++++++++ sbin/pfctl/pfctl_table.c | 17 +++++++++++-- tests/sys/netpfil/pf/table.sh | 57 +++++++++++++++++++++++++++++++++++++++= ++++ 5 files changed, 99 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=