From nobody Tue Apr 7 15:26:23 2026 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 4fqqmN3GWsz6YRb5 for ; Tue, 07 Apr 2026 15:26:28 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqqmN2mLgz3nb1 for ; Tue, 07 Apr 2026 15:26:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775575588; 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=0Z7XJIn0nKl2x5oGBIm3rYTPA6CejG7M23kEP7+XzDo=; b=Rak/k8ayqRPxZ54u4RpjdJ6YrqxfudsMMRFebv1hhAyyEoqs53SGc6Gb7AvJdGDVG2YEAa EapkwIwWsW7655hKDX7LPhZ+UXRox9soplAElfREqdOaDf2Eojcm6GYV33eaLAg2LxwCke NtdhzZY6/dgi8nyGbAvO6SBBUv9pxO2WxeZ+p+yJgkloMVMWomJJQWpx0EcGfsmh91duB2 vrJeMOuH+9m3k6FeeJ8TNo4aUB8AP9SKlAKgRRVZcRlgOBHrZd69mBi0tA1jFOmxhrLIS2 +e3bVdoNBbxeKwbV2Rcy2dj0HbUYVAUKkPpl/Xv24F5W6w7+XTGHLpkvHYZm/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775575588; a=rsa-sha256; cv=none; b=rOXfRf+q7qas+APe8EuApzeQXg4fRwL58upocgEBZ2rOclBaUeSrf5B71g9BXkbKZ2pPI1 mmHElLZl2ZAJkWxcGfb179WLCMjkM0451on+EF+RqConne0n1eLW/bqUXZhd60B1p/TOH9 qsZzjJqmdo6rWXIEQa370z15RpmrHiIfkwVfkjMxDKcHN457zoxEodSB/c7fkokVDaIez0 C/LA5iIV7Q/raPSj1LtelUWJ+WaIF3MQbhKv+PgGMJvCvl0dHozED1siS8KLUdUzNKWRON KFU1mHbZP0EcC0orjSWbR2u9cDtxkluFXgFTWb8M+F66G7p98l8t4zHJrZDCgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775575588; 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=0Z7XJIn0nKl2x5oGBIm3rYTPA6CejG7M23kEP7+XzDo=; b=a4m1O8xuEmlGfKDqaAx20gw+80MNXe0AVqB5dqDtT3lyKnKfRmqV73wFnZmkE/r7Al84a2 i9OKg7DYAYZCmGL81fzP0LNlEQjUxz0sdKnNJe9oZ9ibgxV1V24EtxqFk6LtBn7DXufuB7 YE9bZRof2aZzcl0eGomiwPercnMFSDr60I66EE2exIqOKixLq3+pam/DkrYoyXme6ZuRDO jqX6Vf/udT5ZBDp3o0PWAJzRFNKe/JYYSY8hyNhVI0vUl6XSP/Ke/iZeOpj/BBNNcVj50X 5hLU4uTyfR5tMSzDP01AeYcbINTlyvAI/KoGvC12p9qHym02bYV4PAd/B4WfaA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fqqmN2GXlzlm4 for ; Tue, 07 Apr 2026 15:26:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41ec0 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 07 Apr 2026 15:26:23 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 6642ba36f186 - main - pf tests: explicitly test zeroing counters within an anchor 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/main X-Git-Reftype: branch X-Git-Commit: 6642ba36f1860599a4c5562dc24f5dff080bbb42 Auto-Submitted: auto-generated Date: Tue, 07 Apr 2026 15:26:23 +0000 Message-Id: <69d5221f.41ec0.ba5f2e2@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=6642ba36f1860599a4c5562dc24f5dff080bbb42 commit 6642ba36f1860599a4c5562dc24f5dff080bbb42 Author: Kristof Provost AuthorDate: 2026-04-07 14:07:45 +0000 Commit: Kristof Provost CommitDate: 2026-04-07 14:58:32 +0000 pf tests: explicitly test zeroing counters within an anchor While here fix the match pattern in the existing test. Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netpfil/pf/anchor.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/sys/netpfil/pf/anchor.sh b/tests/sys/netpfil/pf/anchor.sh index f321c742788e..df4a1660d797 100644 --- a/tests/sys/netpfil/pf/anchor.sh +++ b/tests/sys/netpfil/pf/anchor.sh @@ -352,8 +352,20 @@ counter_body() # Generate traffic atf_check -s exit:0 -o ignore ping -c 1 192.0.2.1 atf_check -s exit:0 -e ignore \ - -o match:'[ Evaluations: 1 Packets: 2 Bytes: 168 States: 1 ]' \ + -o match:'\[ Evaluations: 1 Packets: 2 Bytes: 168 States: 1 \]' \ jexec alcatraz pfctl -sr -vv + + # Zero counters outside of the anchor + jexec alcatraz pfctl -sr -vv -z + atf_check -s exit:0 -e ignore \ + -o match:'\[ Evaluations: 1 Packets: 2 Bytes: 168 States: 1 \]' \ + jexec alcatraz pfctl -sr -vv -a "foo" + + # Zero the anchor's counters + jexec alcatraz pfctl -sr -vv -z -a "foo" + atf_check -s exit:0 -e ignore \ + -o match:'\[ Evaluations: 0 Packets: 0 Bytes: 0 States: 1 \]' \ + jexec alcatraz pfctl -sr -vv -a "foo" } counter_cleanup()