From nobody Thu Feb 12 21:39:36 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 4fBpbr5QyLz6Rgvp for ; Thu, 12 Feb 2026 21:39:36 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fBpbr3Hfdz3pWM for ; Thu, 12 Feb 2026 21:39:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770932376; 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=wcVrATw7MByEGIyegxi8aVbaOGr23168xA9kb+7RCdE=; b=u0CHO+fkDXPj7xj14O8XzDH90qm4lopDGpT+n6dHNhXAh8udycYm9FlZRRU2/Zsti/NqMx GWOnrn7M9bhjH0uQ3hRTvufyNxkJ4OhK0EZk9vydMUhGcA3eOpHr/NWh1QehTNAZFauzTF vjbg2sBXLsYg7sCNw2qVVe9o/Tx2jOmMhlqyzyo/O8RqHCxweU7uWFaLPk8S7oKEhYyxHu REsxe7CWwblP3oE4udw3E0EYJ314ioRHL0DvjxTXSA5TdsNpAa85MuzMrTprNdOtqZUncS thsyCHpUlVLW16VcpEKlJIihBtSglxd1b3KBPUhVn3ENZCbSOQpJFx6ag+JFKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770932376; a=rsa-sha256; cv=none; b=xKJy3e8ssRiESdHdVWEePUgJJu24svHEhHhTOuyL1XJ2miiMhDwKIe22efS7kvKELeviyt u/j21ibgoeS6+HT9JTWuppj7D6LM/LPNWwWQe7S5JGx0SOSIvtNerGLxHZTcOMyfBig3W0 /bci62j+73Dl95rTsqU2a129dw/ES1fjxJlTfUuHqlewOkwbuwQ8WquZOZ4EDIG6yWikGi mlTi1Du0J4Q3ohcKAkmyr0TiJrCehSW7UqMiK1pzsWa8y5N8Uon8jLzZTYX49qPLe90mFh YeHqni2KuQp1ZGrJ0IORwgnI/2pTKznOd3ZVzIp5seWbt/GypGOcvkf7ch5Deg== 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=1770932376; 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=wcVrATw7MByEGIyegxi8aVbaOGr23168xA9kb+7RCdE=; b=DAhUgmmJiQMJwb0lJID16/tYYy2Xs3E7XpG513leZQ04LDAm8EKM8h3mILC4bDPZpXcP8V WEI7PJw1tIewjdcdO6g+DsbeYv4QoGyImETBT5sKrz5J7s218U+G/So2qAxZI5eJ4RChto 6cshleq5IHOC110vITQQZQwl1VShh5LTnTSmhTaX3tQ2oDGFwry4PJFfXHOwWZEoRInAHq /lI2likuyUvlZYwKLI1uAf+kfxFMr9xu4kc+kJJgaZVVYapFu3Z+OTBde8+Sj2VrgB4M3k TigQ4lLPuLj1Nf6XhF2N9M9jV6IEym3FfJVmQ81j7j27KS24dHvb+dGSgCfl0g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fBpbr2YJmztYt for ; Thu, 12 Feb 2026 21:39:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c5db by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 12 Feb 2026 21:39:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: d03b6bb766f8 - main - pf tests: verify blocked count on log interface 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: d03b6bb766f8c816547f9c39e05af8238242251e Auto-Submitted: auto-generated Date: Thu, 12 Feb 2026 21:39:36 +0000 Message-Id: <698e4898.1c5db.6e38914f@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=d03b6bb766f8c816547f9c39e05af8238242251e commit d03b6bb766f8c816547f9c39e05af8238242251e Author: Kristof Provost AuthorDate: 2026-02-12 13:06:34 +0000 Commit: Kristof Provost CommitDate: 2026-02-12 16:05:16 +0000 pf tests: verify blocked count on log interface Also check the IPv6 pass/block numbers. PR: 291763 MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netpfil/pf/loginterface.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/sys/netpfil/pf/loginterface.sh b/tests/sys/netpfil/pf/loginterface.sh index 6decb69fe63d..c192d8e4e4a4 100644 --- a/tests/sys/netpfil/pf/loginterface.sh +++ b/tests/sys/netpfil/pf/loginterface.sh @@ -41,9 +41,11 @@ basic_body() epair=$(vnet_mkepair) ifconfig ${epair}a 192.0.2.2/24 up + ifconfig ${epair}a inet6 2001:db8::2/64 no_dad vnet_mkjail alcatraz ${epair}b jexec alcatraz ifconfig ${epair}b 192.0.2.1/24 up + jexec alcatraz ifconfig ${epair}b inet6 2001:db8::1/64 no_dad # Sanity check atf_check -s exit:0 -o ignore ping -c 1 192.0.2.1 @@ -63,10 +65,11 @@ basic_body() # And after we've sent traffic there's non-zero counters atf_check -s exit:0 -o ignore ping -c 1 192.0.2.1 + atf_check -s exit:0 -o ignore ping -c 1 2001:db8::1 atf_check -o match:"Interface Stats for ${epair}b" \ jexec alcatraz pfctl -s info - atf_check -o match:"Passed 1" \ + atf_check -o match:"Passed 1 [1-9]" \ jexec alcatraz pfctl -s info # And no interface stats once we remove the loginterface @@ -74,6 +77,15 @@ basic_body() "pass" atf_check -o not-match:"Interface Stats for ${epair}b" \ jexec alcatraz pfctl -s info + + # Check blocked count + pft_set_rules alcatraz \ + "set loginterface ${epair}b" \ + "block" + atf_check -s exit:2 -o ignore ping -c 1 2001:db8::1 + atf_check -s exit:2 -o ignore ping -c 1 192.0.2.1 + atf_check -o match:"Blocked 1 [1-9]" \ + jexec alcatraz pfctl -s info } basic_cleanup()