The branch main has been updated by kp:

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

commit dbfdda7b4398117f617f5fdf0957f916361682c8
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2025-07-08 09:47:52 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2025-07-15 07:55:29 +0000

    pfctl tests: verify port range validation
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sbin/pfctl/tests/files/pf1072.fail   | 1 +
 sbin/pfctl/tests/files/pf1072.in     | 1 +
 sbin/pfctl/tests/pfctl_test_list.inc | 1 +
 3 files changed, 3 insertions(+)

diff --git a/sbin/pfctl/tests/files/pf1072.fail 
b/sbin/pfctl/tests/files/pf1072.fail
new file mode 100644
index 000000000000..06ef5ae457e5
--- /dev/null
+++ b/sbin/pfctl/tests/files/pf1072.fail
@@ -0,0 +1 @@
+invalid port range
diff --git a/sbin/pfctl/tests/files/pf1072.in b/sbin/pfctl/tests/files/pf1072.in
new file mode 100644
index 000000000000..e09e92388ce1
--- /dev/null
+++ b/sbin/pfctl/tests/files/pf1072.in
@@ -0,0 +1 @@
+pass in proto tcp from any port 500:100 to any
diff --git a/sbin/pfctl/tests/pfctl_test_list.inc 
b/sbin/pfctl/tests/pfctl_test_list.inc
index 51729bc9adad..3a68cc06ec74 100644
--- a/sbin/pfctl/tests/pfctl_test_list.inc
+++ b/sbin/pfctl/tests/pfctl_test_list.inc
@@ -180,3 +180,4 @@ 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)")
+PFCTL_TEST_FAIL(1072, "Invalid port range")

Reply via email to