From nobody Thu Sep 25 12:41:35 2025 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 4cXYHh0q6lz68SJ5; Thu, 25 Sep 2025 12:41: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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cXYHg4Tcfz42Xg; Thu, 25 Sep 2025 12:41:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758804095; 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=QgOI+OLo2tYWvj1d24nACZCZObNhsRSqdkVvC86w/cQ=; b=VR32mesLUASh8ZATnhykB+DzEgKnrf/PTg60e6lCV2HBsiwiUxjwMfZTOdcDuvWAAEkdpi cCE9PVeN2jKGECZ6VP7EO6rXZzzY6bcKl2ltLsS3AYAXtBPXUO4n8HIDo6PTS9fAIJCpUj MH/q7Za1VF4hqmKKXFlDZ9LVs1SjL+gwhM4Amhp6KNYyZWUJsR4bhPanGQNX6owrS682vl W6uAZ5n2DbT5/50s+n+C3KoveYi5Z6mZ79RXdR3mHQuzuVtnTFALkfYWU2gQTEZB3qUrKL asnxQM8YL1to8lBAicc4AtH9qjbfao/ZDwW6KgGbASNb7U1jgKwQXhqO26Pahw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758804095; 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=QgOI+OLo2tYWvj1d24nACZCZObNhsRSqdkVvC86w/cQ=; b=KmrV58qwlinSjjX87xcH07nxp5RcuhKH+qqalL2yRF/heMRmwzQK1YS93ummryjc0Uh5pt HJwEZ6Aro8ty8Nw9R3zNh9MYqtEhZAYAAiBsK34G2+Q3+2umHECzRa63HcaTRQjiUdxSjx t630jXbB43FGWnFZEErFdm4s4CKleULUS5s04Db9h0ArUec9P2Fr0c+nST2w93Q/GmWBye GJgAE3h5nVbB7bX189orgx/qQhgOkur8tFI9JNJEm4WEs91o5Dz4m5SnwlZCTLIAuw3kxk t4fibAaDZWs7Eo3M/nbvVO0AwdLlcICuQDHf7Dxti6R0GBENBZEH9gGx6i6XXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758804095; a=rsa-sha256; cv=none; b=sV4UWij7+VYiPC9IsNxsCVJ5s/9ocg2rqPeokIkOP0wza8JXs+TLcR6D0RUo9SPC4m04ax xdcDng5bkxXZqbGI3D7eYocSDjppN3Djh2ursv7fF+fHC3avqJEMIdYoR42BYW+gwZXRQQ /qUb7ByqEIzdZ5uOynmm8dHdLOgzw9ZTAx1lhqma1e5dnB+D9fFmOAV3zyrimu436hZYgx jGDjj9xHyBhApNqa+k2CHB0Ag/R/sx8/LK2m1oAHr4KZ/Mrd8zKmIXPaLrIl3Ua6krn21s hIiVuEjRwMJ9B70uhqq9YodWdLrD0Lt7C+HsqkhxHY2XWE4/fr3VHAr8RITF9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cXYHg3wgXz1GsR; Thu, 25 Sep 2025 12:41:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58PCfZRO000852; Thu, 25 Sep 2025 12:41:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58PCfZ2i000849; Thu, 25 Sep 2025 12:41:35 GMT (envelope-from git) Date: Thu, 25 Sep 2025 12:41:35 GMT Message-Id: <202509251241.58PCfZ2i000849@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 8a4386142d05 - main - pfctl tests: basic 'once' rule test 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: 8a4386142d05d34a0f8fdce9b4dc2bf5fcfacf8b Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=8a4386142d05d34a0f8fdce9b4dc2bf5fcfacf8b commit 8a4386142d05d34a0f8fdce9b4dc2bf5fcfacf8b Author: Kristof Provost AuthorDate: 2025-08-27 13:56:02 +0000 Commit: Kristof Provost CommitDate: 2025-09-25 12:41:08 +0000 pfctl tests: basic 'once' rule test Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pfctl/tests/files/pf1075.in | 1 + sbin/pfctl/tests/files/pf1075.ok | 1 + sbin/pfctl/tests/pfctl_test_list.inc | 1 + 3 files changed, 3 insertions(+) diff --git a/sbin/pfctl/tests/files/pf1075.in b/sbin/pfctl/tests/files/pf1075.in new file mode 100644 index 000000000000..835a31a25c6a --- /dev/null +++ b/sbin/pfctl/tests/files/pf1075.in @@ -0,0 +1 @@ +pass inet from (lo0)/24 once diff --git a/sbin/pfctl/tests/files/pf1075.ok b/sbin/pfctl/tests/files/pf1075.ok new file mode 100644 index 000000000000..2369c9410cda --- /dev/null +++ b/sbin/pfctl/tests/files/pf1075.ok @@ -0,0 +1 @@ +pass inet from (lo0)/24 to any flags S/SA keep state once diff --git a/sbin/pfctl/tests/pfctl_test_list.inc b/sbin/pfctl/tests/pfctl_test_list.inc index 8bfccddf50e5..9dd4a590ad8f 100644 --- a/sbin/pfctl/tests/pfctl_test_list.inc +++ b/sbin/pfctl/tests/pfctl_test_list.inc @@ -183,3 +183,4 @@ PFCTL_TEST(1071, "mask length on (lo0)") PFCTL_TEST_FAIL(1072, "Invalid port range") PFCTL_TEST(1073, "Filter AF different than route-to AF, with prefer-ipv6-nexthop") PFCTL_TEST_FAIL(1074, "Filter AF different than route-to AF, without prefer-ipv6-nexthop") +PFCTL_TEST(1075, "One shot rule")