The branch main has been updated by ivy: URL: https://cgit.FreeBSD.org/src/commit/?id=da9f1571dcd28201a235fa230329ae3b1aa8e020
commit da9f1571dcd28201a235fa230329ae3b1aa8e020 Author: Lexi Winter <i...@freebsd.org> AuthorDate: 2025-06-04 05:37:18 +0000 Commit: Lexi Winter <i...@freebsd.org> CommitDate: 2025-06-04 05:37:18 +0000 tests/sys/net: run if_bridge_test in a jail Many of the tests in if_bridge_test create new epair interfaces and then add them to a bridge. If devd is running, devd will attempt to configure these interfaces based on the host's /etc/rc.conf, and may enable IPv6 on the new interface (for example, if ipv6_activate_all_interfaces is enabled), causing an IPv6 link-local address to be assigned to the epair. This causes the test to fail if net.link.bridge.member_ifaddrs is set to 0, which is the default. Fix this by running the tests in a jail, so there is no devd to interfere with our new interfaces. Reviewed by: kevans, kp, des Approved by: des (mentor), kevans (mentor) Differential Revision: https://reviews.freebsd.org/D50476 --- tests/sys/net/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/sys/net/Makefile b/tests/sys/net/Makefile index a76fca4e61fb..bc8f9c5e9c80 100644 --- a/tests/sys/net/Makefile +++ b/tests/sys/net/Makefile @@ -7,6 +7,8 @@ ATF_TESTS_C+= if_epair ATF_TESTS_SH+= if_epair_test ATF_TESTS_SH+= if_bridge_test TEST_METADATA.if_bridge_test+= required_programs="python" +TEST_METADATA.if_bridge_test+= execenv="jail" +TEST_METADATA.if_bridge_test+= execenv_jail_params="vnet allow.raw_sockets" ATF_TESTS_SH+= if_clone_test ATF_TESTS_SH+= if_gif ATF_TESTS_SH+= if_lagg_test