From nobody Wed Jun 4 06:22:36 2025 X-Original-To: dev-commits-src-main@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 4bByDX55pQz5xY3y; Wed, 04 Jun 2025 06:22: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bByDX2JHWz442d; Wed, 04 Jun 2025 06:22:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749018156; 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=8e0ax4CUbHi+PoZH5dUP/KChGMXsbi+ld2Ljn32HwJI=; b=Woq+4r+6sC9nHvdD0PI6jtfDwEeYYnUbQBqDG0v70Z6Y5xx+XCyQMrYU+IeTiZAMSoMFWQ Mv5wTcnpvzc5/E2gD/5gcvavzXhNUZ9Uw5mmDefXeOsk/EN5ahWYaKOEHnhmN5r6eQ1H4+ kDsB0MnqmWIHEhi5fGginfhrnzPvtZPfCUf9a1XFJoS4SrtrrWsAupXEp/hc3LiaAyCis3 KMnfHBsdg/++IruPz+kbJLw/824CvGWQRJRv7WU8DEvzXPeHdBzkoiPT3yyq3jtLifispt vgElVrlhw+S/Am/7G/sguoVMcjQPURjnD04VgXMEISvq7YYgQqaJJ+sK4B6T+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749018156; 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=8e0ax4CUbHi+PoZH5dUP/KChGMXsbi+ld2Ljn32HwJI=; b=g46hx1iepfVhYkglt+Wr+G6nS8Z6arZsq9lSx1PTZi2lGZ474LNJANjhxeUML3V1Dletx4 goB7uIPfeyq0MdvyJjTFaqJfJ//eL1UVNdYLcN9Nq1xls6oFL0R/IK0VencTQJpV9ryhIe 5LyGKD3XVZfX5ROfmA25PJtoRFDAMi2yGoFRvl2iT2HnyWuQWfAAFcjiyxlinjJfPlBux0 1eSktqBEEmvR0Bhyd2k9Kupn8mZ1A3Zjepb6tHKQnYGyxce+pH4zsvNQjd6a4WHgekw1K/ Y+nn+fN3Gw2IvjcBpOTDQ0VuiX04aNUzZ8mByaX6qf+vH66QQpApqx9Tgv9GwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749018156; a=rsa-sha256; cv=none; b=ArZimsENCcbZKk83pRGQdC/78nOb3MkiC3ogC0G+0JKu2HCmScnacDAv6oi1BsRyDtApoN T3NboNJZAF4Jj4X2wQ8gZZrb4/Fh4S6DdN1OdFoKxLseVHNfqJM0xTihtgK2sInUA6pPzq x38ibqs20QNxtHq41Tm7jtP2Pp7kULVDxoz8DKA6n2xlCZhf1+byvFT4V8gXpuZBAeGu+1 +JkXaRnQpoq4RLPYHX6lMu5p+wFMsoYi4+Te2WkKdxQQkvY1mcAn6INBlpYXoYcGDt9fQd Cnd55HbrVtj2JEittI/DPtvF0+7cgq0KFenNevAoaZf2qoasCYQmbkusW17yNg== 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 4bByDX1rVZz1Bqw; Wed, 04 Jun 2025 06:22:36 +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 5546MaLf032061; Wed, 4 Jun 2025 06:22:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5546MaVG032058; Wed, 4 Jun 2025 06:22:36 GMT (envelope-from git) Date: Wed, 4 Jun 2025 06:22:36 GMT Message-Id: <202506040622.5546MaVG032058@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Lexi Winter Subject: git: da9f1571dcd2 - main - tests/sys/net: run if_bridge_test in a jail List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ivy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: da9f1571dcd28201a235fa230329ae3b1aa8e020 Auto-Submitted: auto-generated The branch main has been updated by ivy: URL: https://cgit.FreeBSD.org/src/commit/?id=da9f1571dcd28201a235fa230329ae3b1aa8e020 commit da9f1571dcd28201a235fa230329ae3b1aa8e020 Author: Lexi Winter AuthorDate: 2025-06-04 05:37:18 +0000 Commit: Lexi Winter 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