git: a139b43c356d - main - pf tests: Skip unmapped_mbuf:dummynet without dummynet
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Nov 2026 16:28:44 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=a139b43c356d68fe4322b36015f3ce74aeb3c2ff
commit a139b43c356d68fe4322b36015f3ce74aeb3c2ff
Author: Jaswanth Saravanan <jaswanth.s006@gmail.com>
AuthorDate: 2026-11-15 09:43:55 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-11-18 16:28:22 +0000
pf tests: Skip unmapped_mbuf:dummynet without dummynet
The dummynet test case in unmapped_mbuf.sh calls pft_init but never
checks whether dummynet(4) is loaded. When it is not, dnctl fails with
"setsockopt(IP_DUMMYNET3): Protocol not available" and the test is
reported as failed instead of skipped.
Call dummynet_init instead. It runs pft_init and skips the test when
dummynet(4) is not loaded, as the other dummynet test cases in
tests/sys/netpfil/pf already do.
Fixes: 8a14fcd23a20 ("pf: fix a crash on sendfile()")
Signed-off-by: Jaswanth Saravanan <jaswanth.s006@gmail.com>
Reviewed-by: kp
Pull-Request: https://github.com/freebsd/freebsd-src/pull/2556
---
tests/sys/netpfil/pf/unmapped_mbuf.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/sys/netpfil/pf/unmapped_mbuf.sh b/tests/sys/netpfil/pf/unmapped_mbuf.sh
index d8005d12b44d..23a3ecd53f37 100644
--- a/tests/sys/netpfil/pf/unmapped_mbuf.sh
+++ b/tests/sys/netpfil/pf/unmapped_mbuf.sh
@@ -108,7 +108,7 @@ dummynet_head() {
}
dummynet_body() {
- pft_init
+ dummynet_init
l=$(vnet_mkepair)
vnet_mkjail a ${l}a