From nobody Thu Nov 19 16:59:53 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 4jVl7s5rVLz71RNJ for ; Thu, 19 Nov 2026 16:59:53 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jVl7s5G3Mz4HkY for ; Thu, 19 Nov 2026 16:59:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795107593; 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=z/m+AM5nthhXlPPOCfaV1KOPinjxjZpyFZdZiby1e04=; b=xS2Ys37etqGjeD82Tse64NhS0BwjwNXlXgQJ0py2Tb6dsQ5V18yuR8j6urBNlmzZ8tMDJl NttYgXuNWHyzZKqGg3tFZ7eCiy7xbmQR3tIzA64G86VyBNhHsG9TxDyWokk5+KMomB79Zm ejtCiI7KaqeaDnQBwEEjE5Qc3G5f8l/N22VSO6Kb2pylBviI+OSa7M64QG3m8onPa2TDjc yooup9G5lJpND3GkLPPaMNFzE4RBM+r435hYULHZ5TWz3ZLpKrNz28Ka+FIpzfu++kKkyP KzUgxaSJ/QVgf6OHPgJq1K5Gf0R/GcSlq/c4k/8DUPQyU5EIggSFKe0zZqfnfw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795107593; b=ZVgC5z8/tQ2SNhP/GMppAEcOmk2qbcAYdJdxBTjjtQ7MTfLnYOuWNTatBVJnXJsN3u0J0X jT8BimFAC4AeKzew43DE5y1De8LUS4xebRQijoDk6si+VIpqvMwtkEkvDIH+qxpeGlXAb2 oNAhTYGBf3Lx9Igoo0JwN1vTfrrpedXaMPnfiBkAt3+6ONtCF6toI45UK4WcyRV5QQ59/o PgU3ASEpupwDBcv2lfhjtY5gwgFPsMtP5hEPZ2amazG5yX2ldRD5CeEskzhCnBE9pCCY/A kUGi50nQLESlq/8/Ruh+a8GZDPT50jn3x6RLPft1py7RqvuP0VmGJE4XFHS2Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795107593; 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=z/m+AM5nthhXlPPOCfaV1KOPinjxjZpyFZdZiby1e04=; b=jUHAMf3hQtxWdx9ZSmzrutif/ZNb+fNWDkVukE7L2OKKr7w8YgEVlZ/AGvgbdxvp9RBJa7 KsrnWIeMFP57kZ4wmrMi2e2UXvzGyVTBu+NuO02CrZ9qJOv/KSxYbkCBRkR8hVsD4ZDS90 8YlkaX5DhMj8o86+xIRp8BZRCM28MzAhs+Eev+8wlA3/nzhleFLH65K+G6dkcSQ1nloFr3 bRNnC7s5Vjon+VPvhrScwZoibTe68cL4VkC3J3OovE4dBP8J0iuptl71IHuruVNu9y89V6 4JBZOgdb0oWDXLH/z/XzDZcvOG+RHd/pPlxdHqi9ZGV0EVNpiTwzKlkZYSqpwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jVl7s4pLgz18k1 for ; Thu, 19 Nov 2026 16:59:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 14d23 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 19 Nov 2026 16:59:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 5131335c7d48 - main - pf tests: test pfTablesTblCount in snmp_pf List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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: 5131335c7d48eaec427aa9ed27862ca56e3e95bc Auto-Submitted: auto-generated Date: Thu, 19 Nov 2026 16:59:53 +0000 Message-Id: <6aff2b09.14d23.6f5d35fb@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=5131335c7d48eaec427aa9ed27862ca56e3e95bc commit 5131335c7d48eaec427aa9ed27862ca56e3e95bc Author: Kristof Provost AuthorDate: 2026-11-18 16:48:48 +0000 Commit: Kristof Provost CommitDate: 2026-11-19 16:59:21 +0000 pf tests: test pfTablesTblCount in snmp_pf This works fine on main, but not on stable/15 so add a test. PR: 300818 MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netpfil/pf/snmp.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/sys/netpfil/pf/snmp.sh b/tests/sys/netpfil/pf/snmp.sh index ad80fd457bb1..190e266f968e 100644 --- a/tests/sys/netpfil/pf/snmp.sh +++ b/tests/sys/netpfil/pf/snmp.sh @@ -100,6 +100,19 @@ table_body() atf_check -s exit:0 -o match:'pfTablesTblNumber.0 = 1' \ bsnmpwalk -s public@192.0.2.1 -i pf_tree.def begemot + # With one address in it + atf_check -s exit:0 -o match:'pfTablesTblCount.* = 1' \ + bsnmpwalk -s public@192.0.2.1 -i pf_tree.def pfTables + + jexec alcatraz pfctl -T add -t foo 198.51.100.0/24 + + # Give bsnmp time to refresh the table + sleep 6 + + # And now there are two + atf_check -s exit:0 -o match:'pfTablesTblCount.* = 2' \ + bsnmpwalk -s public@192.0.2.1 -i pf_tree.def pfTables + # We have the 'foo' table atf_check -s exit:0 -o match:'pfTablesTblDescr.* = foo' \ bsnmpwalk -s public@192.0.2.1 -i pf_tree.def pfTables