The branch main has been updated by kp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ad65e2de18529ffc5daca62c31f2688f057eec86

commit ad65e2de18529ffc5daca62c31f2688f057eec86
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2025-06-27 15:13:41 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2025-07-03 07:16:14 +0000

    pfctl tests: verify netmask on dynnode
    
    This was broken (in OpenBSD, not FreeBSD) by unmask() refactoring work.
    Test for this.
    
    Based on:               OpenBSD, kn <k...@openbsd.org>, 50befbbe2e
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sbin/pfctl/tests/files/pf1071.in     | 1 +
 sbin/pfctl/tests/files/pf1071.ok     | 1 +
 sbin/pfctl/tests/pfctl_test_list.inc | 1 +
 3 files changed, 3 insertions(+)

diff --git a/sbin/pfctl/tests/files/pf1071.in b/sbin/pfctl/tests/files/pf1071.in
new file mode 100644
index 000000000000..9e6c2abc0621
--- /dev/null
+++ b/sbin/pfctl/tests/files/pf1071.in
@@ -0,0 +1 @@
+pass inet from (lo0)/24
diff --git a/sbin/pfctl/tests/files/pf1071.ok b/sbin/pfctl/tests/files/pf1071.ok
new file mode 100644
index 000000000000..409b5dc4b068
--- /dev/null
+++ b/sbin/pfctl/tests/files/pf1071.ok
@@ -0,0 +1 @@
+pass inet from (lo0)/24 to any flags S/SA keep state
diff --git a/sbin/pfctl/tests/pfctl_test_list.inc 
b/sbin/pfctl/tests/pfctl_test_list.inc
index f87d8ba6bc73..51729bc9adad 100644
--- a/sbin/pfctl/tests/pfctl_test_list.inc
+++ b/sbin/pfctl/tests/pfctl_test_list.inc
@@ -179,3 +179,4 @@ PFCTL_TEST_FAIL(1067, "route-to can't be used on block 
rules")
 PFCTL_TEST(1068, "max-pkt-rate")
 PFCTL_TEST(1069, "max-pkt-size")
 PFCTL_TEST_FAIL(1070, "include line number")
+PFCTL_TEST(1071, "mask length on (lo0)")

Reply via email to